Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nor,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Nor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nor,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Nor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001295/0.001295, allocations: 112.7 kB / 17.07 MB, free: 5.988 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001372/0.001372, allocations: 193.4 kB / 18 MB, free: 5.074 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.455/1.455, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001488/0.001488, allocations: 48.02 kB / 350.8 MB, free: 3.766 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2711/0.2726, allocations: 49.43 MB / 400.2 MB, free: 8.555 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01531/0.2879, allocations: 14.19 MB / 414.4 MB, free: 10.7 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02886/0.3168, allocations: 20.31 MB / 434.7 MB, free: 6.316 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003356/0.3203, allocations: 126.9 kB / 434.8 MB, free: 6.191 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003958/0.3242, allocations: 1.107 MB / 435.9 MB, free: 5.082 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01009/0.3344, allocations: 2.293 MB / 438.2 MB, free: 2.773 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006171/0.3407, allocations: 1.439 MB / 439.7 MB, free: 1.324 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01239/0.3531, allocations: 6.41 MB / 446.1 MB, free: 10.89 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009412/0.3541, allocations: 428.5 kB / 446.5 MB, free: 10.44 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001834/0.3559, allocations: 1.077 MB / 447.6 MB, free: 9.359 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001434/0.3574, allocations: 1.079 MB / 448.7 MB, free: 8.273 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002108/0.3576, allocations: 76 kB / 448.7 MB, free: 8.199 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004692/0.3623, allocations: 1.486 MB / 450.2 MB, free: 6.711 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000498/0.3628, allocations: 317.8 kB / 450.5 MB, free: 6.398 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001833/0.3647, allocations: 1.32 MB / 451.9 MB, free: 5.07 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007572/0.3723, allocations: 3.706 MB / 455.6 MB, free: 1.348 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.663e-06/0.3723, allocations: 0 / 455.6 MB, free: 1.348 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.3723, allocations: 0 / 455.6 MB, free: 1.348 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000103/0.3724, allocations: 0 / 455.6 MB, free: 1.348 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 149 * Number of variables: 149 Notification: Performance of Generate backend data structure: time 0.006331/0.3788, allocations: 3.681 MB / 459.2 MB, free: 13.59 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.871e-05/0.3788, allocations: 11.89 kB / 459.3 MB, free: 13.57 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001567/0.379, allocations: 102.5 kB / 459.4 MB, free: 13.46 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000564/0.3796, allocations: 401.5 kB / 459.7 MB, free: 13.07 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004294/0.3839, allocations: 2.559 MB / 462.3 MB, free: 10.44 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.377e-05/0.3839, allocations: 33 kB / 462.3 MB, free: 10.41 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001422/0.3841, allocations: 55.94 kB / 462.4 MB, free: 10.35 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001637/0.3857, allocations: 0.7577 MB / 463.2 MB, free: 9.586 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.831e-05/0.3858, allocations: 0 / 463.2 MB, free: 9.586 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.052e-05/0.3858, allocations: 16 kB / 463.2 MB, free: 9.57 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.441e-05/0.3859, allocations: 19.98 kB / 463.2 MB, free: 9.551 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001844/0.3877, allocations: 0.8553 MB / 464 MB, free: 8.695 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005099/0.3928, allocations: 2.974 MB / 467 MB, free: 5.652 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001817/0.3947, allocations: 0.7871 MB / 467.8 MB, free: 4.859 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001565/0.3963, allocations: 0.9682 MB / 468.8 MB, free: 3.887 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03284/0.4291, allocations: 30.06 MB / 498.8 MB, free: 1.723 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001269/0.4304, allocations: 0.5996 MB / 499.4 MB, free: 1.113 MB / 414.1 MB Notification: Performance of pre-optimization done (n=96): time 2.595e-06/0.4304, allocations: 4 kB / 499.4 MB, free: 1.109 MB / 414.1 MB Notification: Performance of matching and sorting (n=99): time 0.01377/0.4442, allocations: 5.274 MB / 0.4929 GB, free: 11.59 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.329e-05/0.4443, allocations: 68.39 kB / 0.4929 GB, free: 11.51 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004067/0.4484, allocations: 2.696 MB / 0.4956 GB, free: 8.797 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001438/0.4486, allocations: 45.69 kB / 0.4956 GB, free: 8.746 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001336/0.4499, allocations: 1.308 MB / 0.4969 GB, free: 7.434 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004593/0.4504, allocations: 353 kB / 0.4972 GB, free: 7.086 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004619/0.4509, allocations: 230.5 kB / 0.4975 GB, free: 6.852 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.000229/0.4511, allocations: 349.9 kB / 0.4978 GB, free: 6.504 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001351/0.4525, allocations: 481.9 kB / 0.4982 GB, free: 6.031 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001455/0.4539, allocations: 0.6446 MB / 0.4989 GB, free: 5.328 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002789/0.4567, allocations: 1.129 MB / 0.5 GB, free: 4.137 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.018e-06/0.4567, allocations: 0 / 0.5 GB, free: 4.137 MB / 430.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.004455/0.4612, allocations: 1.997 MB / 0.5019 GB, free: 2.062 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.962e-05/0.4613, allocations: 8 kB / 0.5019 GB, free: 2.055 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001658/0.4614, allocations: 124 kB / 0.5021 GB, free: 1.934 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00076/0.4622, allocations: 268.9 kB / 0.5023 GB, free: 1.641 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008821/0.4631, allocations: 191.7 kB / 0.5025 GB, free: 1.453 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01164/0.4747, allocations: 14.24 MB / 0.5164 GB, free: 1.816 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001488/0.4763, allocations: 95.95 kB / 0.5165 GB, free: 1.723 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001414/0.4764, allocations: 56 kB / 0.5165 GB, free: 1.668 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 21 (v.counter,$PRE.v.counter,vin2.counter,$PRE.vin2.counter,vin1.counter,$PRE.vin1.counter,v.counter2,$PRE.v.counter2,v.T0,$PRE.v.T0,vin2.counter2,$PRE.vin2.counter2,vin2.T0,$PRE.vin2.T0,vin1.counter2,$PRE.vin1.counter2,vin1.T0,$PRE.vin1.T0,$whenCondition1,$whenCondition2,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (97): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 10 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,3,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0009108/0.4773, allocations: 432.5 kB / 0.517 GB, free: 1.238 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005209/0.4779, allocations: 389.6 kB / 0.5173 GB, free: 0.8555 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005184/0.4831, allocations: 2.222 MB / 0.5195 GB, free: 14.55 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.364e-05/0.4831, allocations: 8 kB / 0.5195 GB, free: 14.54 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.337e-06/0.4831, allocations: 4 kB / 0.5195 GB, free: 14.54 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.978e-06/0.4831, allocations: 3.984 kB / 0.5195 GB, free: 14.53 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002188/0.4853, allocations: 1.546 MB / 0.521 GB, free: 12.94 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001563/0.4855, allocations: 120 kB / 0.5211 GB, free: 12.82 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007444/0.4862, allocations: 131.8 kB / 0.5213 GB, free: 12.69 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006804/0.4869, allocations: 268.3 kB / 0.5215 GB, free: 12.4 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.773e-05/0.487, allocations: 39.98 kB / 0.5216 GB, free: 12.36 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2109/0.698, allocations: 14.24 MB / 0.5355 GB, free: 131.8 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.698, allocations: 0.6875 kB / 0.5355 GB, free: 131.8 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006068/0.7041, allocations: 2.568 MB / 0.538 GB, free: 131.5 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008504/0.705, allocations: 0.5078 MB / 0.5385 GB, free: 131.4 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002861/0.7053, allocations: 19.3 kB / 0.5385 GB, free: 131.4 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000917/0.7062, allocations: 81.41 kB / 0.5386 GB, free: 131.4 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003408/0.7065, allocations: 143.5 kB / 0.5387 GB, free: 131.4 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.701e-05/0.7066, allocations: 50.84 kB / 0.5388 GB, free: 131.4 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001897/0.7085, allocations: 1.767 MB / 0.5405 GB, free: 131 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.7085, allocations: 0 / 0.5405 GB, free: 131 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001302/0.7098, allocations: 0.653 MB / 0.5411 GB, free: 130.9 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (mp1.Dinternal,mp1.Sinternal,mp2.Dinternal,mp2.Sinternal,mn1.Dinternal,mn1.Sinternal,mn2.Dinternal,mn2.Sinternal) * Number of discrete variables: 12 ($whenCondition3,$whenCondition2,$whenCondition1,vin1.T0,vin1.counter,vin1.counter2,vin2.T0,vin2.counter,vin2.counter2,v.T0,v.counter,v.counter2) * Number of discrete states: 6 (vin1.counter,vin2.counter,v.counter,vin1.counter2,vin2.counter2,v.counter2) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 9 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 10 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,3,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.005945/0.7158, allocations: 3.846 MB / 0.5449 GB, free: 129.3 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003545/0.7194, allocations: 2.517 MB / 0.5473 GB, free: 127.7 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/0.7194, allocations: 0 / 0.5473 GB, free: 127.7 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002068/0.7215, allocations: 1.956 MB / 0.5492 GB, free: 126.2 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002415/0.7239, allocations: 0.6107 MB / 0.5498 GB, free: 126 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02237/0.7463, allocations: 18.24 MB / 0.5676 GB, free: 108 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007542/0.7471, allocations: 1.65 MB / 0.5693 GB, free: 106.3 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001111/0.7482, allocations: 392.3 kB / 0.5696 GB, free: 105.9 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009005/0.7491, allocations: 1.194 MB / 0.5708 GB, free: 104.8 MB / 462.1 MB Notification: Performance of SimCode: time 8.62e-07/0.7491, allocations: 1.312 kB / 0.5708 GB, free: 104.8 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1583/0.9074, allocations: 66.53 MB / 0.6358 GB, free: 38.61 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.92/18.83, allocations: 15.69 kB / 0.6358 GB, free: 38.59 MB / 462.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Nor_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Nor.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/Nor/Nor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches