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.001681/0.001681, allocations: 107.6 kB / 21.19 MB, free: 0.6484 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.002144/0.002144, allocations: 209 kB / 24.48 MB, free: 3.938 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.588/1.588, allocations: 230.6 MB / 258.2 MB, free: 7.793 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.001634/0.001634, allocations: 43.94 kB / 378.9 MB, free: 2.48 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2512/0.2529, allocations: 53.36 MB / 432.3 MB, free: 6.723 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01468/0.2675, allocations: 11.98 MB / 444.3 MB, free: 10.7 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02619/0.2937, allocations: 17.58 MB / 461.9 MB, free: 9.051 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002836/0.2966, allocations: 193.8 kB / 462.1 MB, free: 8.859 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003544/0.3001, allocations: 1.031 MB / 463.1 MB, free: 7.828 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008023/0.3081, allocations: 2.327 MB / 465.4 MB, free: 5.48 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005054/0.3132, allocations: 1.422 MB / 466.8 MB, free: 4.059 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01186/0.3251, allocations: 6.54 MB / 473.4 MB, free: 13.5 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007701/0.3258, allocations: 253 kB / 473.6 MB, free: 13.21 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002087/0.3279, allocations: 1.14 MB / 474.8 MB, free: 12.07 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001969/0.3299, allocations: 1.087 MB / 475.9 MB, free: 10.98 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002569/0.3301, allocations: 72 kB / 475.9 MB, free: 10.91 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003804/0.334, allocations: 1.237 MB / 477.2 MB, free: 9.668 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005052/0.3345, allocations: 321.7 kB / 477.5 MB, free: 9.352 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001581/0.336, allocations: 0.9858 MB / 478.5 MB, free: 8.359 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006312/0.3423, allocations: 3.733 MB / 482.2 MB, free: 4.609 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.691e-06/0.3424, allocations: 0 / 482.2 MB, free: 4.609 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.3424, allocations: 4 kB / 482.2 MB, free: 4.605 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.996e-05/0.3424, allocations: 0 / 482.2 MB, free: 4.605 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.006204/0.3486, allocations: 3.617 MB / 485.8 MB, free: 0.9336 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.142e-05/0.3487, allocations: 8.031 kB / 485.8 MB, free: 0.9258 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005072/0.3492, allocations: 397.5 kB / 486.2 MB, free: 0.5352 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004307/0.3535, allocations: 2.375 MB / 488.6 MB, free: 14.06 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.323e-05/0.3535, allocations: 37 kB / 488.6 MB, free: 14.02 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001529/0.3537, allocations: 52 kB / 488.7 MB, free: 13.97 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001638/0.3553, allocations: 0.7576 MB / 489.4 MB, free: 13.21 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.666e-05/0.3553, allocations: 0 / 489.4 MB, free: 13.21 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.881e-05/0.3554, allocations: 23.98 kB / 489.5 MB, free: 13.18 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.801e-05/0.3554, allocations: 20 kB / 489.5 MB, free: 13.16 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001952/0.3574, allocations: 0.8592 MB / 490.3 MB, free: 12.3 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005649/0.363, allocations: 2.678 MB / 493 MB, free: 9.582 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001765/0.3648, allocations: 0.713 MB / 493.7 MB, free: 8.863 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00152/0.3663, allocations: 0.8684 MB / 494.6 MB, free: 7.996 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02868/0.395, allocations: 13.68 MB / 0.4964 GB, free: 9.926 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001324/0.3963, allocations: 0.5957 MB / 0.4969 GB, free: 9.32 MB / 414.1 MB Notification: Performance of pre-optimization done (n=96): time 4.087e-06/0.3963, allocations: 0 / 0.4969 GB, free: 9.32 MB / 414.1 MB Notification: Performance of matching and sorting (n=99): time 0.01278/0.4091, allocations: 4.517 MB / 0.5014 GB, free: 4.738 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.403e-05/0.4092, allocations: 72.38 kB / 0.5014 GB, free: 4.652 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003966/0.4131, allocations: 2.696 MB / 0.5041 GB, free: 1.941 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002128/0.4133, allocations: 45.69 kB / 0.5041 GB, free: 1.891 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001312/0.4147, allocations: 1.308 MB / 0.5054 GB, free: 0.5781 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004373/0.4151, allocations: 353 kB / 0.5057 GB, free: 236 kB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004059/0.4155, allocations: 230.4 kB / 0.5059 GB, free: 0 / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001689/0.4157, allocations: 350 kB / 0.5063 GB, free: 15.65 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00132/0.417, allocations: 481.9 kB / 0.5067 GB, free: 15.18 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001429/0.4184, allocations: 0.6487 MB / 0.5074 GB, free: 14.47 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002685/0.4211, allocations: 1.129 MB / 0.5085 GB, free: 13.28 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.362e-06/0.4211, allocations: 7.938 kB / 0.5085 GB, free: 13.27 MB / 430.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.004449/0.4256, allocations: 1.827 MB / 0.5103 GB, free: 11.41 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.869e-05/0.4256, allocations: 12.06 kB / 0.5103 GB, free: 11.39 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001836/0.4258, allocations: 127.9 kB / 0.5104 GB, free: 11.27 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007627/0.4265, allocations: 264.4 kB / 0.5106 GB, free: 10.98 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009417/0.4275, allocations: 199.7 kB / 0.5108 GB, free: 10.79 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01097/0.4385, allocations: 12.97 MB / 0.5235 GB, free: 12.79 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00153/0.44, allocations: 92.02 kB / 0.5236 GB, free: 12.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000159/0.4401, allocations: 59.98 kB / 0.5236 GB, free: 12.64 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.0008544/0.441, allocations: 436.7 kB / 0.5241 GB, free: 12.21 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005303/0.4415, allocations: 385.6 kB / 0.5244 GB, free: 11.83 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005159/0.4467, allocations: 2.052 MB / 0.5264 GB, free: 9.738 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.4e-05/0.4467, allocations: 8 kB / 0.5264 GB, free: 9.73 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.877e-06/0.4467, allocations: 4 kB / 0.5264 GB, free: 9.727 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.849e-06/0.4467, allocations: 3.984 kB / 0.5264 GB, free: 9.723 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00222/0.4489, allocations: 1.297 MB / 0.5277 GB, free: 8.398 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001709/0.4491, allocations: 123.9 kB / 0.5278 GB, free: 8.277 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008137/0.4499, allocations: 131.8 kB / 0.528 GB, free: 8.148 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007482/0.4507, allocations: 264.3 kB / 0.5282 GB, free: 7.859 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001089/0.4508, allocations: 39.98 kB / 0.5282 GB, free: 7.82 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2084/0.6592, allocations: 12.98 MB / 0.5409 GB, free: 99.56 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.384e-06/0.6592, allocations: 0.5312 kB / 0.5409 GB, free: 99.56 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005469/0.6647, allocations: 2.398 MB / 0.5433 GB, free: 99.39 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001153/0.6658, allocations: 441.2 kB / 0.5437 GB, free: 99.37 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003476/0.6662, allocations: 19.73 kB / 0.5437 GB, free: 99.36 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001061/0.6673, allocations: 84.38 kB / 0.5438 GB, free: 99.35 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004347/0.6677, allocations: 142.9 kB / 0.5439 GB, free: 99.32 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001165/0.6678, allocations: 52.03 kB / 0.544 GB, free: 99.31 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002754/0.6706, allocations: 1.766 MB / 0.5457 GB, free: 98.67 MB / 446.1 MB Notification: Performance of sort global known variables: time 2e-07/0.6706, allocations: 0 / 0.5457 GB, free: 98.67 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001688/0.6722, allocations: 0.662 MB / 0.5463 GB, free: 98.63 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.001191/0.6734, allocations: 0.823 MB / 0.5472 GB, free: 98.46 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003679/0.6771, allocations: 2.451 MB / 0.5495 GB, free: 96.9 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.631e-06/0.6771, allocations: 0 / 0.5495 GB, free: 96.9 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002057/0.6792, allocations: 1.903 MB / 0.5514 GB, free: 95.46 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002391/0.6816, allocations: 0.6109 MB / 0.552 GB, free: 95.23 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005695/0.6873, allocations: 4.822 MB / 0.5567 GB, free: 91.04 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007516/0.688, allocations: 1.105 MB / 0.5578 GB, free: 90.25 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004084/0.6884, allocations: 171.4 kB / 0.558 GB, free: 90.08 MB / 446.1 MB Notification: Performance of SimCode: time 1.413e-06/0.6884, allocations: 0 / 0.558 GB, free: 90.08 MB / 446.1 MB Notification: Performance of Templates: time 0.1269/0.8153, allocations: 155.8 MB / 0.7101 GB, free: 14.51 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.43020947498735]