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.001711/0.001711, allocations: 115.6 kB / 20.43 MB, free: 1.457 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.002173/0.002173, allocations: 213.6 kB / 23.75 MB, free: 4.668 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.008 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.001639/0.001639, allocations: 47.92 kB / 378.3 MB, free: 2.633 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2404/0.242, allocations: 53.36 MB / 431.6 MB, free: 6.781 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01536/0.2574, allocations: 14.24 MB / 445.9 MB, free: 8.477 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0252/0.2826, allocations: 20.43 MB / 466.3 MB, free: 3.973 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001927/0.2845, allocations: 185.9 kB / 466.5 MB, free: 3.789 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002875/0.2874, allocations: 1.13 MB / 467.6 MB, free: 2.656 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00714/0.2945, allocations: 2.343 MB / 469.9 MB, free: 300 kB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004521/0.2991, allocations: 1.461 MB / 471.4 MB, free: 14.83 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01065/0.3097, allocations: 6.536 MB / 477.9 MB, free: 8.273 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006141/0.3103, allocations: 253 kB / 478.2 MB, free: 7.992 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001728/0.3121, allocations: 1.139 MB / 479.3 MB, free: 6.848 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00145/0.3135, allocations: 1.091 MB / 480.4 MB, free: 5.75 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001676/0.3137, allocations: 76 kB / 480.5 MB, free: 5.676 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004295/0.318, allocations: 1.483 MB / 482 MB, free: 4.191 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003308/0.3183, allocations: 325.7 kB / 482.3 MB, free: 3.871 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001369/0.3197, allocations: 1.316 MB / 483.6 MB, free: 2.547 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005252/0.3249, allocations: 3.71 MB / 487.3 MB, free: 14.82 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.675e-06/0.3249, allocations: 0 / 487.3 MB, free: 14.82 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.3249, allocations: 0 / 487.3 MB, free: 14.82 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.64e-05/0.325, allocations: 0 / 487.3 MB, free: 14.82 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.006039/0.331, allocations: 3.61 MB / 490.9 MB, free: 11.16 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.23e-05/0.3311, allocations: 12.03 kB / 490.9 MB, free: 11.14 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004676/0.3315, allocations: 393.5 kB / 491.3 MB, free: 10.76 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004012/0.3356, allocations: 2.386 MB / 493.7 MB, free: 8.273 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.397e-05/0.3356, allocations: 29 kB / 493.7 MB, free: 8.242 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001296/0.3357, allocations: 48 kB / 493.8 MB, free: 8.195 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001551/0.3373, allocations: 0.7616 MB / 494.5 MB, free: 7.43 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.559e-05/0.3373, allocations: 4 kB / 494.5 MB, free: 7.426 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.074e-05/0.3374, allocations: 19.98 kB / 494.6 MB, free: 7.406 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.603e-05/0.3374, allocations: 23.98 kB / 494.6 MB, free: 7.383 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001915/0.3393, allocations: 0.8592 MB / 495.4 MB, free: 6.523 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00536/0.3447, allocations: 2.915 MB / 498.4 MB, free: 3.547 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001745/0.3464, allocations: 0.7285 MB / 499.1 MB, free: 2.812 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001536/0.3479, allocations: 0.8674 MB / 500 MB, free: 1.945 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02905/0.377, allocations: 13.76 MB / 0.5017 GB, free: 3.805 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001382/0.3784, allocations: 0.6035 MB / 0.5023 GB, free: 3.191 MB / 414.1 MB Notification: Performance of pre-optimization done (n=96): time 3.166e-06/0.3784, allocations: 0 / 0.5023 GB, free: 3.191 MB / 414.1 MB Notification: Performance of matching and sorting (n=99): time 0.0129/0.3913, allocations: 4.517 MB / 0.5067 GB, free: 14.6 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.656e-05/0.3913, allocations: 68.41 kB / 0.5067 GB, free: 14.52 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004414/0.3957, allocations: 2.7 MB / 0.5094 GB, free: 11.81 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 8.178e-05/0.3958, allocations: 41.7 kB / 0.5094 GB, free: 11.76 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00136/0.3972, allocations: 1.312 MB / 0.5107 GB, free: 10.45 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004438/0.3976, allocations: 340.9 kB / 0.511 GB, free: 10.11 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004378/0.3981, allocations: 238.4 kB / 0.5113 GB, free: 9.875 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001775/0.3982, allocations: 349.9 kB / 0.5116 GB, free: 9.527 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001329/0.3996, allocations: 474 kB / 0.512 GB, free: 9.066 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001478/0.401, allocations: 0.6457 MB / 0.5127 GB, free: 8.359 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002838/0.4039, allocations: 1.137 MB / 0.5138 GB, free: 7.16 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.487e-06/0.4039, allocations: 0 / 0.5138 GB, free: 7.16 MB / 430.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.004212/0.4081, allocations: 1.839 MB / 0.5156 GB, free: 5.277 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.511e-05/0.4081, allocations: 18.69 kB / 0.5156 GB, free: 5.262 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001775/0.4083, allocations: 116 kB / 0.5157 GB, free: 5.148 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007286/0.409, allocations: 268.7 kB / 0.516 GB, free: 4.855 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008997/0.4099, allocations: 199.6 kB / 0.5161 GB, free: 4.66 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01101/0.4209, allocations: 13.22 MB / 0.5291 GB, free: 6.297 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001379/0.4223, allocations: 91.95 kB / 0.5291 GB, free: 6.207 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000172/0.4225, allocations: 56 kB / 0.5292 GB, free: 6.152 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.0009298/0.4234, allocations: 432.9 kB / 0.5296 GB, free: 5.723 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005923/0.424, allocations: 385.6 kB / 0.53 GB, free: 5.344 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005026/0.429, allocations: 2.056 MB / 0.532 GB, free: 3.25 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.278e-05/0.4291, allocations: 11.98 kB / 0.532 GB, free: 3.238 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.113e-05/0.4291, allocations: 4 kB / 0.532 GB, free: 3.234 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.108e-06/0.4291, allocations: 3.984 kB / 0.532 GB, free: 3.23 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002264/0.4313, allocations: 1.511 MB / 0.5335 GB, free: 1.672 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001845/0.4315, allocations: 120 kB / 0.5336 GB, free: 1.555 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007327/0.4323, allocations: 135.8 kB / 0.5337 GB, free: 1.422 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000692/0.4329, allocations: 264.3 kB / 0.534 GB, free: 1.133 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000104/0.433, allocations: 43.98 kB / 0.534 GB, free: 1.09 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1956/0.6286, allocations: 13.22 MB / 0.5469 GB, free: 91.69 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.305e-06/0.6286, allocations: 2.766 kB / 0.5469 GB, free: 91.69 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004978/0.6336, allocations: 2.411 MB / 0.5493 GB, free: 91.04 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008639/0.6345, allocations: 433.8 kB / 0.5497 GB, free: 90.98 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000292/0.6348, allocations: 21.12 kB / 0.5497 GB, free: 90.97 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009018/0.6357, allocations: 84.03 kB / 0.5498 GB, free: 90.96 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003228/0.636, allocations: 147.9 kB / 0.5499 GB, free: 90.93 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.431e-05/0.6361, allocations: 51.8 kB / 0.55 GB, free: 90.92 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00221/0.6383, allocations: 1.766 MB / 0.5517 GB, free: 90.28 MB / 446.1 MB Notification: Performance of sort global known variables: time 8e-08/0.6383, allocations: 1.375 kB / 0.5517 GB, free: 90.28 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001412/0.6397, allocations: 0.6521 MB / 0.5524 GB, free: 90.24 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.0009701/0.6407, allocations: 0.8132 MB / 0.5531 GB, free: 90.08 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00311/0.6438, allocations: 2.457 MB / 0.5555 GB, free: 88.49 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.6438, allocations: 0 / 0.5555 GB, free: 88.49 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001897/0.6457, allocations: 1.896 MB / 0.5574 GB, free: 87.05 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001937/0.6476, allocations: 0.6223 MB / 0.558 GB, free: 86.81 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004957/0.6526, allocations: 4.76 MB / 0.5627 GB, free: 84.34 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007585/0.6533, allocations: 1.651 MB / 0.5643 GB, free: 83.06 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0008712/0.6542, allocations: 395.6 kB / 0.5646 GB, free: 82.71 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002457/0.6545, allocations: 171.4 kB / 0.5648 GB, free: 82.54 MB / 446.1 MB Notification: Performance of SimCode: time 6.01e-07/0.6545, allocations: 3.281 kB / 0.5648 GB, free: 82.54 MB / 446.1 MB Notification: Performance of Templates: time 0.0502/0.7047, allocations: 37.97 MB / 0.6019 GB, free: 44.89 MB / 446.1 MB " [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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/Nor/Nor.csv","/var/lib/jenkins/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: 6.199993326095864]