Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001807/0.001807, allocations: 111.1 kB / 20.44 MB, free: 1.062 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002172/0.002172, allocations: 214.6 kB / 23.73 MB, free: 4.164 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.518/1.518, allocations: 230.5 MB / 257.4 MB, free: 7.785 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nor,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_Nor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nor,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_Nor",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001931/0.001931, allocations: 63.88 kB / 377.7 MB, free: 2.918 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2574/0.2593, allocations: 53.42 MB / 431.1 MB, free: 6.457 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.0136/0.2729, allocations: 11.96 MB / 443.1 MB, free: 10.45 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02437/0.2973, allocations: 17.58 MB / 460.7 MB, free: 8.797 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00219/0.2995, allocations: 185.9 kB / 460.9 MB, free: 8.613 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002822/0.3023, allocations: 1.036 MB / 461.9 MB, free: 7.574 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007331/0.3097, allocations: 2.327 MB / 464.2 MB, free: 5.227 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004539/0.3142, allocations: 1.414 MB / 465.6 MB, free: 3.812 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01085/0.325, allocations: 6.544 MB / 472.2 MB, free: 13.25 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007542/0.3258, allocations: 249 kB / 472.4 MB, free: 12.97 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002116/0.3279, allocations: 1.143 MB / 473.6 MB, free: 11.82 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001629/0.3295, allocations: 1.032 MB / 474.6 MB, free: 10.78 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002683/0.3298, allocations: 76 kB / 474.7 MB, free: 10.71 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004849/0.3347, allocations: 1.21 MB / 475.9 MB, free: 9.496 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004884/0.3352, allocations: 321.7 kB / 476.2 MB, free: 9.18 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001387/0.3365, allocations: 0.9741 MB / 477.2 MB, free: 8.199 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005584/0.3421, allocations: 3.745 MB / 480.9 MB, free: 4.438 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.3421, allocations: 0 / 480.9 MB, free: 4.438 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.3421, allocations: 0 / 480.9 MB, free: 4.438 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.483e-05/0.3422, allocations: 0 / 480.9 MB, free: 4.438 MB / 382.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.006187/0.3484, allocations: 3.613 MB / 484.5 MB, free: 0.7695 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.151e-05/0.3484, allocations: 15.98 kB / 484.5 MB, free: 0.7539 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001397/0.3486, allocations: 94.5 kB / 484.6 MB, free: 0.6523 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005082/0.3491, allocations: 397.5 kB / 485 MB, free: 268 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004315/0.3534, allocations: 2.374 MB / 487.4 MB, free: 13.79 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.599e-05/0.3534, allocations: 40.94 kB / 487.4 MB, free: 13.75 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000141/0.3536, allocations: 48 kB / 487.5 MB, free: 13.7 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001606/0.3552, allocations: 0.7655 MB / 488.3 MB, free: 12.93 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.571e-05/0.3552, allocations: 0 / 488.3 MB, free: 12.93 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.695e-05/0.3553, allocations: 23.98 kB / 488.3 MB, free: 12.91 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.005e-05/0.3553, allocations: 23.97 kB / 488.3 MB, free: 12.88 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001906/0.3572, allocations: 0.8514 MB / 489.2 MB, free: 12.03 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005746/0.363, allocations: 2.77 MB / 491.9 MB, free: 9.199 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001836/0.3648, allocations: 0.7175 MB / 492.6 MB, free: 8.477 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001568/0.3664, allocations: 0.8637 MB / 493.5 MB, free: 7.613 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02906/0.3954, allocations: 13.67 MB / 0.4953 GB, free: 9.559 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00142/0.3968, allocations: 0.6113 MB / 0.4959 GB, free: 8.938 MB / 414.1 MB Notification: Performance of pre-optimization done (n=96): time 3.687e-06/0.3968, allocations: 0 / 0.4959 GB, free: 8.938 MB / 414.1 MB Notification: Performance of matching and sorting (n=99): time 0.01331/0.4101, allocations: 4.517 MB / 0.5003 GB, free: 4.355 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001233/0.4103, allocations: 68.34 kB / 0.5004 GB, free: 4.273 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003947/0.4142, allocations: 2.704 MB / 0.503 GB, free: 1.555 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001569/0.4144, allocations: 41.7 kB / 0.503 GB, free: 1.508 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001393/0.4158, allocations: 1.308 MB / 0.5043 GB, free: 200 kB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004195/0.4162, allocations: 349.2 kB / 0.5046 GB, free: 15.85 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003889/0.4166, allocations: 234.5 kB / 0.5049 GB, free: 15.61 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002704/0.4168, allocations: 341.9 kB / 0.5052 GB, free: 15.27 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001345/0.4182, allocations: 485.9 kB / 0.5057 GB, free: 14.8 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001475/0.4197, allocations: 0.6431 MB / 0.5063 GB, free: 14.09 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002834/0.4225, allocations: 1.133 MB / 0.5074 GB, free: 12.89 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.204e-06/0.4225, allocations: 4 kB / 0.5074 GB, free: 12.89 MB / 430.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.00454/0.4271, allocations: 1.838 MB / 0.5092 GB, free: 11.02 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.507e-05/0.4271, allocations: 8 kB / 0.5092 GB, free: 11.01 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002022/0.4273, allocations: 116 kB / 0.5093 GB, free: 10.89 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000765/0.428, allocations: 268.9 kB / 0.5096 GB, free: 10.6 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009694/0.429, allocations: 203.6 kB / 0.5098 GB, free: 10.4 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01174/0.4408, allocations: 13.18 MB / 0.5226 GB, free: 12.08 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001531/0.4423, allocations: 91.88 kB / 0.5227 GB, free: 11.99 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001461/0.4424, allocations: 56 kB / 0.5228 GB, free: 11.93 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.0009367/0.4434, allocations: 440.9 kB / 0.5232 GB, free: 11.5 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005126/0.4439, allocations: 385.6 kB / 0.5236 GB, free: 11.12 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005158/0.449, allocations: 2.056 MB / 0.5256 GB, free: 9.02 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.237e-05/0.4491, allocations: 8 kB / 0.5256 GB, free: 9.012 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.175e-06/0.4491, allocations: 4 kB / 0.5256 GB, free: 9.008 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.051e-05/0.4491, allocations: 3.984 kB / 0.5256 GB, free: 9.004 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002196/0.4513, allocations: 1.39 MB / 0.5269 GB, free: 7.57 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.00017/0.4514, allocations: 115.9 kB / 0.5271 GB, free: 7.457 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007413/0.4522, allocations: 139.8 kB / 0.5272 GB, free: 7.32 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006951/0.4529, allocations: 264.3 kB / 0.5274 GB, free: 7.031 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001574/0.453, allocations: 47.92 kB / 0.5275 GB, free: 6.984 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01214/0.4652, allocations: 13.19 MB / 0.5404 GB, free: 8.637 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.985e-06/0.4652, allocations: 0 / 0.5404 GB, free: 8.637 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006447/0.4716, allocations: 2.399 MB / 0.5427 GB, free: 6.184 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00162/0.4732, allocations: 439.3 kB / 0.5431 GB, free: 5.754 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003701/0.4736, allocations: 20 kB / 0.5432 GB, free: 5.734 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00103/0.4746, allocations: 79.89 kB / 0.5432 GB, free: 5.656 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003848/0.475, allocations: 140.8 kB / 0.5434 GB, free: 5.52 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001185/0.4751, allocations: 55.92 kB / 0.5434 GB, free: 5.465 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002738/0.4779, allocations: 1.77 MB / 0.5451 GB, free: 3.688 MB / 462.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4779, allocations: 0 / 0.5451 GB, free: 3.688 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001852/0.4797, allocations: 0.6557 MB / 0.5458 GB, free: 3.031 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.2084/0.6881, allocations: 3.675 MB / 0.5494 GB, free: 119.6 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005044/0.6932, allocations: 2.451 MB / 0.5518 GB, free: 118.4 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.799e-06/0.6932, allocations: 1.625 kB / 0.5518 GB, free: 118.4 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002663/0.6958, allocations: 1.905 MB / 0.5536 GB, free: 117.2 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002663/0.6985, allocations: 0.6155 MB / 0.5542 GB, free: 117.1 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02582/0.7243, allocations: 17.91 MB / 0.5717 GB, free: 105 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007569/0.7251, allocations: 1.104 MB / 0.5728 GB, free: 103.9 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00119/0.7263, allocations: 395.1 kB / 0.5732 GB, free: 103.5 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009727/0.7272, allocations: 1.194 MB / 0.5743 GB, free: 102.3 MB / 462.1 MB Notification: Performance of SimCode: time 9.62e-07/0.7272, allocations: 0 / 0.5743 GB, free: 102.3 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1554/0.8826, allocations: 70.73 MB / 0.6434 GB, free: 32.09 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.07/16.96, allocations: 0 / 0.6434 GB, free: 32.09 MB / 462.1 MB " [Timeout remaining time 643] (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Spice3_Examples_Nor_fmu --startTime=0 --stopTime=5 --stepSize=0.000997606 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Spice3_Examples_Nor.fmu > Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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: 20.454140613786876]