Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001388/0.001388, allocations: 115.8 kB / 20.43 MB, free: 1.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001583/0.001583, allocations: 216.6 kB / 23.74 MB, free: 4.656 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.453/1.453, allocations: 230.6 MB / 257.5 MB, free: 8.035 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nor,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_Nor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nor,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_Nor",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002448/0.002448, allocations: 47.92 kB / 377.8 MB, free: 3.168 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2658/0.2682, allocations: 53.36 MB / 431.1 MB, free: 6.875 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01578/0.284, allocations: 14.24 MB / 445.4 MB, free: 8.574 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02914/0.3132, allocations: 20.42 MB / 465.8 MB, free: 4.074 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002548/0.3157, allocations: 193.8 kB / 466 MB, free: 3.883 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003366/0.3191, allocations: 1.13 MB / 467.1 MB, free: 2.75 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008895/0.328, allocations: 2.343 MB / 469.5 MB, free: 396 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005446/0.3334, allocations: 1.461 MB / 470.9 MB, free: 14.93 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01166/0.3451, allocations: 6.525 MB / 477.4 MB, free: 8.379 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008611/0.3459, allocations: 261 kB / 477.7 MB, free: 8.09 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002143/0.3481, allocations: 1.139 MB / 478.8 MB, free: 6.945 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00212/0.3502, allocations: 1.083 MB / 479.9 MB, free: 5.855 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004493/0.3507, allocations: 72 kB / 480 MB, free: 5.785 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005826/0.3565, allocations: 1.483 MB / 481.5 MB, free: 4.301 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005564/0.357, allocations: 325.7 kB / 481.8 MB, free: 3.98 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001893/0.3589, allocations: 1.324 MB / 483.1 MB, free: 2.648 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006949/0.3659, allocations: 3.706 MB / 486.8 MB, free: 14.93 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.492e-06/0.3659, allocations: 0 / 486.8 MB, free: 14.93 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.3659, allocations: 0 / 486.8 MB, free: 14.93 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.926e-05/0.366, allocations: 0 / 486.8 MB, free: 14.93 MB / 398.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.006146/0.3721, allocations: 3.613 MB / 490.4 MB, free: 11.26 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.692e-05/0.3721, allocations: 8.031 kB / 490.4 MB, free: 11.25 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001297/0.3723, allocations: 102.5 kB / 490.5 MB, free: 11.14 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004588/0.3727, allocations: 397.5 kB / 490.9 MB, free: 10.75 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003922/0.3767, allocations: 2.375 MB / 493.3 MB, free: 8.277 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.48e-05/0.3767, allocations: 33 kB / 493.3 MB, free: 8.242 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001359/0.3768, allocations: 51.98 kB / 493.4 MB, free: 8.191 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001529/0.3784, allocations: 0.7616 MB / 494.1 MB, free: 7.426 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.571e-05/0.3784, allocations: 0 / 494.1 MB, free: 7.426 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.221e-05/0.3784, allocations: 24 kB / 494.2 MB, free: 7.402 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.39e-05/0.3785, allocations: 19.98 kB / 494.2 MB, free: 7.383 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001826/0.3803, allocations: 0.8592 MB / 495 MB, free: 6.523 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005743/0.386, allocations: 2.922 MB / 498 MB, free: 3.539 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001653/0.3877, allocations: 0.7169 MB / 498.7 MB, free: 2.816 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001498/0.3892, allocations: 0.8674 MB / 499.6 MB, free: 1.949 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02795/0.4171, allocations: 13.76 MB / 0.5013 GB, free: 3.801 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001447/0.4186, allocations: 0.5957 MB / 0.5019 GB, free: 3.195 MB / 414.1 MB Notification: Performance of pre-optimization done (n=96): time 3.617e-06/0.4186, allocations: 0 / 0.5019 GB, free: 3.195 MB / 414.1 MB Notification: Performance of matching and sorting (n=99): time 0.01253/0.4311, allocations: 4.521 MB / 0.5063 GB, free: 14.61 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.341e-05/0.4312, allocations: 72.39 kB / 0.5064 GB, free: 14.52 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004327/0.4355, allocations: 2.7 MB / 0.509 GB, free: 11.81 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001233/0.4356, allocations: 41.7 kB / 0.509 GB, free: 11.76 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001289/0.4369, allocations: 1.308 MB / 0.5103 GB, free: 10.45 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003743/0.4373, allocations: 345 kB / 0.5106 GB, free: 10.11 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004137/0.4377, allocations: 242.4 kB / 0.5109 GB, free: 9.867 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001714/0.4379, allocations: 341.9 kB / 0.5112 GB, free: 9.527 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001299/0.4392, allocations: 481.9 kB / 0.5117 GB, free: 9.059 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001449/0.4406, allocations: 0.6509 MB / 0.5123 GB, free: 8.344 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002648/0.4433, allocations: 1.133 MB / 0.5134 GB, free: 7.148 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.001e-06/0.4433, allocations: 0 / 0.5134 GB, free: 7.148 MB / 430.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.004243/0.4475, allocations: 1.835 MB / 0.5152 GB, free: 5.27 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.385e-05/0.4475, allocations: 8 kB / 0.5152 GB, free: 5.262 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001871/0.4477, allocations: 120 kB / 0.5153 GB, free: 5.145 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007758/0.4485, allocations: 264.6 kB / 0.5156 GB, free: 4.859 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008894/0.4494, allocations: 203.7 kB / 0.5158 GB, free: 4.66 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0112/0.4606, allocations: 13.22 MB / 0.5287 GB, free: 6.301 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001513/0.4621, allocations: 91.95 kB / 0.5288 GB, free: 6.211 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002316/0.4623, allocations: 56 kB / 0.5288 GB, free: 6.156 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.001057/0.4634, allocations: 430.2 kB / 0.5292 GB, free: 5.727 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007057/0.4641, allocations: 393.5 kB / 0.5296 GB, free: 5.34 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00531/0.4694, allocations: 2.056 MB / 0.5316 GB, free: 3.246 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.417e-05/0.4694, allocations: 8 kB / 0.5316 GB, free: 3.238 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.683e-05/0.4694, allocations: 4 kB / 0.5316 GB, free: 3.234 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.678e-06/0.4695, allocations: 3.984 kB / 0.5316 GB, free: 3.23 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002806/0.4723, allocations: 1.515 MB / 0.5331 GB, free: 1.668 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001776/0.4724, allocations: 116 kB / 0.5332 GB, free: 1.555 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007156/0.4732, allocations: 135.8 kB / 0.5333 GB, free: 1.422 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000697/0.4738, allocations: 268.3 kB / 0.5336 GB, free: 1.129 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001055/0.474, allocations: 51.92 kB / 0.5336 GB, free: 1.078 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2085/0.6825, allocations: 13.21 MB / 0.5465 GB, free: 91.79 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.6825, allocations: 5.125 kB / 0.5465 GB, free: 91.79 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005093/0.6876, allocations: 2.417 MB / 0.5489 GB, free: 91.14 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001027/0.6886, allocations: 431.6 kB / 0.5493 GB, free: 91.08 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003453/0.689, allocations: 21.39 kB / 0.5493 GB, free: 91.07 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009704/0.6899, allocations: 83.23 kB / 0.5494 GB, free: 91.06 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004046/0.6903, allocations: 144.1 kB / 0.5496 GB, free: 91.03 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001012/0.6904, allocations: 51.44 kB / 0.5496 GB, free: 91.02 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002493/0.6929, allocations: 1.773 MB / 0.5513 GB, free: 90.38 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.6929, allocations: 0 / 0.5513 GB, free: 90.38 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001865/0.6948, allocations: 0.654 MB / 0.552 GB, free: 90.34 MB / 446.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.005836/0.7006, allocations: 3.678 MB / 0.5556 GB, free: 88.79 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003491/0.7041, allocations: 2.455 MB / 0.558 GB, free: 87.19 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.7041, allocations: 0 / 0.558 GB, free: 87.19 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00197/0.7061, allocations: 1.896 MB / 0.5598 GB, free: 85.75 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002227/0.7083, allocations: 0.6258 MB / 0.5604 GB, free: 85.51 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02205/0.7304, allocations: 17.92 MB / 0.5779 GB, free: 68.45 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007291/0.7311, allocations: 1.662 MB / 0.5795 GB, free: 66.76 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001036/0.7321, allocations: 391.4 kB / 0.5799 GB, free: 66.38 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008918/0.733, allocations: 1.194 MB / 0.5811 GB, free: 65.18 MB / 446.1 MB Notification: Performance of SimCode: time 9.12e-07/0.733, allocations: 0 / 0.5811 GB, free: 65.18 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1253/0.8583, allocations: 67.69 MB / 0.6472 GB, free: 13.92 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.32/20.18, allocations: 14 kB / 0.6472 GB, free: 13.91 MB / 462.1 MB " [Timeout remaining time 640] (rm -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nor.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nor.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nor.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nor_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_Nor_fmu --startTime=0 --stopTime=5 --stepSize=0.000997606 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_Nor.fmu > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/Nor/Nor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 23.54420337313786]