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.001869/0.001869, allocations: 95.61 kB / 20.96 MB, free: 3.457 MB / 18.57 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.00205/0.00205, allocations: 165.3 kB / 24.27 MB, free: 148 kB / 18.57 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.554/1.554, allocations: 177.1 MB / 204.6 MB, free: 5.621 MB / 186.7 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 1.362e-06/1.362e-06, allocations: 0 / 272.3 MB, free: 1.875 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.427e-05/2.563e-05, allocations: 2.312 kB / 272.3 MB, free: 1.871 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01743/0.01746, allocations: 13.5 MB / 285.8 MB, free: 4.312 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1325/0.15, allocations: 19.38 MB / 305.2 MB, free: 11.04 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001795/0.1517, allocations: 192.2 kB / 305.4 MB, free: 10.9 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002395/0.1541, allocations: 1.033 MB / 306.4 MB, free: 10.4 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006303/0.1604, allocations: 2.4 MB / 308.8 MB, free: 8.914 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005016/0.1655, allocations: 1.449 MB / 310.3 MB, free: 8 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.008504/0.174, allocations: 6.707 MB / 317 MB, free: 4.703 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005626/0.1745, allocations: 243.6 kB / 317.2 MB, free: 4.539 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001757/0.1763, allocations: 1.536 MB / 318.7 MB, free: 3.344 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008639/0.1772, allocations: 0.7901 MB / 319.5 MB, free: 2.551 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001887/0.1773, allocations: 76 kB / 319.6 MB, free: 2.477 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003284/0.1806, allocations: 1.21 MB / 320.8 MB, free: 1.266 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002467/0.1809, allocations: 325.6 kB / 321.1 MB, free: 0.9453 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009558/0.1818, allocations: 0.7204 MB / 321.8 MB, free: 228 kB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006325/0.1882, allocations: 3.698 MB / 325.5 MB, free: 12.51 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.552e-05/0.1882, allocations: 8 kB / 325.6 MB, free: 12.5 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.412e-06/0.1882, allocations: 0 / 325.6 MB, free: 12.5 MB / 282.7 MB Notification: Performance of Transformations before backend: time 8.342e-05/0.1883, allocations: 0 / 325.6 MB, free: 12.5 MB / 282.7 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.0072/0.1955, allocations: 3.931 MB / 329.5 MB, free: 8.516 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.655e-05/0.1955, allocations: 12.03 kB / 329.5 MB, free: 8.504 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000677/0.1962, allocations: 429.5 kB / 329.9 MB, free: 8.082 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004815/0.201, allocations: 2.725 MB / 332.6 MB, free: 5.258 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.134e-05/0.201, allocations: 29 kB / 332.7 MB, free: 5.227 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001449/0.2012, allocations: 51.95 kB / 332.7 MB, free: 5.176 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001703/0.2029, allocations: 0.6523 MB / 333.4 MB, free: 4.52 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.677e-05/0.2029, allocations: 4 kB / 333.4 MB, free: 4.516 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.402e-05/0.203, allocations: 31.92 kB / 333.4 MB, free: 4.484 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.702e-05/0.203, allocations: 19.98 kB / 333.4 MB, free: 4.465 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001716/0.2047, allocations: 0.7227 MB / 334.1 MB, free: 3.746 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006583/0.2113, allocations: 3.201 MB / 337.3 MB, free: 0.4961 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001624/0.2129, allocations: 0.6158 MB / 338 MB, free: 15.87 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001481/0.2144, allocations: 0.7616 MB / 338.7 MB, free: 15.1 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03256/0.247, allocations: 15.3 MB / 354 MB, free: 15.41 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001443/0.2484, allocations: 0.5661 MB / 354.6 MB, free: 14.84 MB / 314.7 MB Notification: Performance of pre-optimization done (n=96): time 3.076e-06/0.2484, allocations: 0 / 354.6 MB, free: 14.84 MB / 314.7 MB Notification: Performance of matching and sorting (n=99): time 0.01179/0.2602, allocations: 4.144 MB / 358.7 MB, free: 10.61 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.993e-05/0.2603, allocations: 68.39 kB / 358.8 MB, free: 10.53 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005822/0.2661, allocations: 3.626 MB / 362.4 MB, free: 6.891 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000215/0.2663, allocations: 45.69 kB / 362.5 MB, free: 6.84 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00186/0.2682, allocations: 1.584 MB / 364.1 MB, free: 5.25 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005859/0.2688, allocations: 377.1 kB / 364.4 MB, free: 4.879 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004861/0.2693, allocations: 260.1 kB / 364.7 MB, free: 4.617 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0003507/0.2696, allocations: 0.5433 MB / 365.2 MB, free: 4.066 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001146/0.2708, allocations: 406.1 kB / 365.6 MB, free: 3.672 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001357/0.2721, allocations: 0.6621 MB / 366.3 MB, free: 2.922 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002475/0.2746, allocations: 1.156 MB / 367.4 MB, free: 1.68 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.659e-06/0.2746, allocations: 4 kB / 367.4 MB, free: 1.676 MB / 314.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.004414/0.279, allocations: 1.777 MB / 369.2 MB, free: 15.84 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.478e-05/0.279, allocations: 8 kB / 369.2 MB, free: 15.84 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000187/0.2792, allocations: 116 kB / 369.3 MB, free: 15.72 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009224/0.2801, allocations: 321.1 kB / 369.6 MB, free: 15.37 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008517/0.281, allocations: 175.7 kB / 369.8 MB, free: 15.2 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01614/0.2971, allocations: 18.23 MB / 388.1 MB, free: 11.75 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001335/0.2985, allocations: 59.95 kB / 388.1 MB, free: 11.7 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001483/0.2986, allocations: 60.05 kB / 388.2 MB, free: 11.64 MB / 346.7 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.0009542/0.2996, allocations: 476.3 kB / 388.6 MB, free: 11.16 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006323/0.3002, allocations: 421.5 kB / 389 MB, free: 10.75 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005099/0.3053, allocations: 1.953 MB / 391 MB, free: 8.746 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.25e-05/0.3053, allocations: 8 kB / 391 MB, free: 8.738 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.09e-05/0.3053, allocations: 7.938 kB / 391 MB, free: 8.73 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.438e-06/0.3053, allocations: 3.984 kB / 391 MB, free: 8.727 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00288/0.3082, allocations: 1.853 MB / 392.9 MB, free: 6.84 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001797/0.3084, allocations: 108 kB / 393 MB, free: 6.734 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006338/0.309, allocations: 119.8 kB / 393.1 MB, free: 6.617 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008989/0.3099, allocations: 312.6 kB / 393.4 MB, free: 6.27 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001095/0.31, allocations: 43.98 kB / 393.4 MB, free: 6.227 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01618/0.3262, allocations: 18.24 MB / 411.7 MB, free: 2.758 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.502e-06/0.3262, allocations: 0 / 411.7 MB, free: 2.758 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00604/0.3323, allocations: 2.259 MB / 413.9 MB, free: 440 kB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001301/0.3336, allocations: 451.4 kB / 414.4 MB, free: 15.98 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00038/0.334, allocations: 23.94 kB / 414.4 MB, free: 15.96 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001055/0.335, allocations: 55.89 kB / 414.5 MB, free: 15.91 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004541/0.3355, allocations: 144.7 kB / 414.6 MB, free: 15.77 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001251/0.3356, allocations: 51.98 kB / 414.7 MB, free: 15.72 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.003753/0.3393, allocations: 2.07 MB / 416.7 MB, free: 13.64 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.01e-07/0.3393, allocations: 0 / 416.7 MB, free: 13.64 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002279/0.3416, allocations: 0.6635 MB / 417.4 MB, free: 12.98 MB / 378.7 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.001727/0.3433, allocations: 0.8784 MB / 418.3 MB, free: 12.09 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.005385/0.3487, allocations: 2.942 MB / 421.2 MB, free: 8.945 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.4e-06/0.3487, allocations: 3.938 kB / 421.2 MB, free: 8.941 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003784/0.3525, allocations: 2.438 MB / 423.6 MB, free: 6.301 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003018/0.3555, allocations: 0.659 MB / 424.3 MB, free: 5.641 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008516/0.3641, allocations: 4.633 MB / 428.9 MB, free: 0.9453 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1045/0.4686, allocations: 1.1 MB / 430 MB, free: 120.8 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001324/0.4699, allocations: 393.4 kB / 430.4 MB, free: 120.8 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003425/0.4702, allocations: 167.4 kB / 430.6 MB, free: 120.8 MB / 378.7 MB Notification: Performance of SimCode: time 2.234e-06/0.4702, allocations: 0 / 430.6 MB, free: 120.8 MB / 378.7 MB Notification: Performance of Templates: time 0.05449/0.5247, allocations: 39.26 MB / 469.8 MB, free: 94.68 MB / 378.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1) [Timeout 240] 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.290142092038877]