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.001417/0.001417, allocations: 116 kB / 18.45 MB, free: 4.562 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.001399/0.001399, allocations: 213.6 kB / 21.42 MB, free: 1.605 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.476/1.476, allocations: 230.6 MB / 254.8 MB, free: 15.08 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: translateModel(Modelica.Electrical.Spice3.Examples.Nor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|mn1.Dinternal|mn1.Sinternal|mn2.Dinternal|mn2.Sinternal|mp1.Dinternal|mp1.Sinternal|mp2.Dinternal|mp2.Sinternal",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nor") translateModel(Modelica.Electrical.Spice3.Examples.Nor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|mn1.Dinternal|mn1.Sinternal|mn2.Dinternal|mn2.Sinternal|mp1.Dinternal|mp1.Sinternal|mp2.Dinternal|mp2.Sinternal",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nor") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001638/0.001638, allocations: 51.92 kB / 374.1 MB, free: 9.703 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1045/0.1061, allocations: 53.33 MB / 427.5 MB, free: 4.281 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.2133/0.3194, allocations: 14.24 MB / 441.7 MB, free: 2.785 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02626/0.3457, allocations: 20.41 MB / 462.1 MB, free: 4.309 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003809/0.3495, allocations: 192.9 kB / 462.3 MB, free: 4.172 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004072/0.3535, allocations: 1.126 MB / 463.4 MB, free: 3.582 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01106/0.3646, allocations: 2.311 MB / 465.7 MB, free: 2.168 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006173/0.3708, allocations: 1.444 MB / 467.2 MB, free: 1.414 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01196/0.3827, allocations: 6.52 MB / 473.7 MB, free: 14.41 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000796/0.3835, allocations: 257 kB / 474 MB, free: 14.23 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002397/0.3859, allocations: 1.133 MB / 475.1 MB, free: 13.7 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001786/0.3877, allocations: 1.082 MB / 476.2 MB, free: 13.06 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002185/0.3879, allocations: 74.91 kB / 476.2 MB, free: 13.06 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00531/0.3932, allocations: 1.485 MB / 477.7 MB, free: 12.43 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004735/0.3937, allocations: 321.1 kB / 478 MB, free: 12.18 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001986/0.3957, allocations: 1.319 MB / 479.4 MB, free: 11.31 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007439/0.4031, allocations: 3.71 MB / 483.1 MB, free: 8.781 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.602e-06/0.4031, allocations: 0 / 483.1 MB, free: 8.781 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.4031, allocations: 0 / 483.1 MB, free: 8.781 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.931e-05/0.4032, allocations: 4 kB / 483.1 MB, free: 8.777 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.006332/0.4095, allocations: 3.689 MB / 486.8 MB, free: 5.008 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.594e-05/0.4096, allocations: 12.03 kB / 486.8 MB, free: 4.996 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004736/0.4101, allocations: 393.5 kB / 487.2 MB, free: 4.609 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003813/0.4139, allocations: 2.551 MB / 489.7 MB, free: 1.984 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.955e-05/0.4139, allocations: 39.25 kB / 489.8 MB, free: 1.949 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00014/0.4141, allocations: 51.98 kB / 489.8 MB, free: 1.898 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001618/0.4157, allocations: 0.7576 MB / 490.6 MB, free: 1.137 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.689e-05/0.4157, allocations: 0 / 490.6 MB, free: 1.137 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.705e-05/0.4158, allocations: 20 kB / 490.6 MB, free: 1.117 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.286e-05/0.4158, allocations: 19.98 kB / 490.6 MB, free: 1.098 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001907/0.4177, allocations: 0.8514 MB / 491.4 MB, free: 248 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005271/0.423, allocations: 2.974 MB / 494.4 MB, free: 13.2 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00183/0.4248, allocations: 0.7234 MB / 495.1 MB, free: 12.47 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001536/0.4263, allocations: 0.8627 MB / 496 MB, free: 11.61 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03483/0.4612, allocations: 30.69 MB / 0.5144 GB, free: 8.664 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001277/0.4624, allocations: 0.5996 MB / 0.5149 GB, free: 8.055 MB / 430.1 MB Notification: Performance of pre-optimization done (n=96): time 3.216e-06/0.4625, allocations: 0 / 0.5149 GB, free: 8.055 MB / 430.1 MB Notification: Performance of matching and sorting (n=99): time 0.01394/0.4764, allocations: 5.268 MB / 0.5201 GB, free: 2.543 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.055e-05/0.4765, allocations: 72.38 kB / 0.5202 GB, free: 2.461 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004333/0.4808, allocations: 2.692 MB / 0.5228 GB, free: 15.75 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001312/0.4809, allocations: 45.69 kB / 0.5228 GB, free: 15.7 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001264/0.4822, allocations: 1.308 MB / 0.5241 GB, free: 14.39 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003584/0.4826, allocations: 352.9 kB / 0.5244 GB, free: 14.04 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004097/0.483, allocations: 234.4 kB / 0.5247 GB, free: 13.8 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001708/0.4831, allocations: 349.9 kB / 0.525 GB, free: 13.46 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001376/0.4845, allocations: 470 kB / 0.5254 GB, free: 13 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001522/0.486, allocations: 0.6509 MB / 0.5261 GB, free: 12.29 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002872/0.4889, allocations: 1.137 MB / 0.5272 GB, free: 11.08 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.468e-06/0.4889, allocations: 0 / 0.5272 GB, free: 11.08 MB / 446.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.00456/0.4935, allocations: 1.977 MB / 0.5291 GB, free: 9.031 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.582e-05/0.4935, allocations: 12.47 kB / 0.5291 GB, free: 9.02 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001637/0.4937, allocations: 116 kB / 0.5292 GB, free: 8.906 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008019/0.4945, allocations: 270.1 kB / 0.5295 GB, free: 8.613 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000915/0.4954, allocations: 195.7 kB / 0.5297 GB, free: 8.422 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01155/0.5069, allocations: 14.25 MB / 0.5436 GB, free: 8.797 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001712/0.5086, allocations: 91.83 kB / 0.5437 GB, free: 8.707 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001443/0.5088, allocations: 57.56 kB / 0.5437 GB, free: 8.652 MB / 462.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.0008713/0.5096, allocations: 421.7 kB / 0.5442 GB, free: 8.23 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004899/0.5101, allocations: 397.5 kB / 0.5445 GB, free: 7.84 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005243/0.5154, allocations: 2.208 MB / 0.5467 GB, free: 5.551 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.224e-05/0.5154, allocations: 8 kB / 0.5467 GB, free: 5.543 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.547e-05/0.5154, allocations: 8 kB / 0.5467 GB, free: 5.535 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.098e-05/0.5154, allocations: 7.984 kB / 0.5467 GB, free: 5.527 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002363/0.5178, allocations: 1.539 MB / 0.5482 GB, free: 3.938 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001681/0.5179, allocations: 119.9 kB / 0.5483 GB, free: 3.82 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007477/0.5187, allocations: 135.8 kB / 0.5485 GB, free: 3.688 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007068/0.5194, allocations: 264.3 kB / 0.5487 GB, free: 3.398 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001064/0.5195, allocations: 39.98 kB / 0.5487 GB, free: 3.359 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01159/0.5311, allocations: 14.24 MB / 0.5627 GB, free: 3.715 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.5311, allocations: 0 / 0.5627 GB, free: 3.715 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006111/0.5372, allocations: 2.561 MB / 0.5652 GB, free: 1.066 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001188/0.5384, allocations: 0.5024 MB / 0.5656 GB, free: 0.543 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005926/0.539, allocations: 24 kB / 0.5657 GB, free: 0.5195 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001321/0.5403, allocations: 79.83 kB / 0.5657 GB, free: 452 kB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000396/0.5407, allocations: 144.8 kB / 0.5659 GB, free: 304 kB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001179/0.5408, allocations: 51.97 kB / 0.5659 GB, free: 252 kB / 478.1 MB Notification: Performance of sorting global known variables: time 0.00261/0.5434, allocations: 1.766 MB / 0.5677 GB, free: 14.47 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5434, allocations: 4 kB / 0.5677 GB, free: 14.47 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.001928/0.5454, allocations: 0.6556 MB / 0.5683 GB, free: 13.81 MB / 494.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.001325/0.5467, allocations: 0.8113 MB / 0.5691 GB, free: 12.99 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.004465/0.5512, allocations: 2.444 MB / 0.5715 GB, free: 10.39 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 4.779e-06/0.5512, allocations: 0 / 0.5715 GB, free: 10.39 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002864/0.554, allocations: 1.905 MB / 0.5733 GB, free: 8.332 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003245/0.5573, allocations: 0.611 MB / 0.5739 GB, free: 7.715 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008014/0.5653, allocations: 4.826 MB / 0.5787 GB, free: 2.844 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001295/0.5666, allocations: 1.662 MB / 0.5803 GB, free: 1.156 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005151/0.5671, allocations: 167.4 kB / 0.5804 GB, free: 0.9922 MB / 494.1 MB Notification: Performance of SimCode: time 1.563e-06/0.5671, allocations: 0 / 0.5804 GB, free: 0.9922 MB / 494.1 MB Notification: Performance of Templates: time 0.3269/0.894, allocations: 154.4 MB / 0.7312 GB, free: 69.65 MB / 0.5137 GB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nor.makefile [Timeout 660] (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 & ./Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1) [Timeout 480] 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: 14.174308756017126]