Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001036/0.001036, allocations: 80.72 kB / 22.21 MB, free: 2.293 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001042/0.001042, allocations: 140.4 kB / 25.59 MB, free: 8.906 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8862/0.8862, allocations: 173.4 MB / 202.3 MB, free: 8.289 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Electrical.Spice3.Examples.Nor") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.473e-06/1.473e-06, allocations: 0 / 269.2 MB, free: 9.793 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.365e-05/1.512e-05, allocations: 2.312 kB / 269.2 MB, free: 9.789 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.008888/0.008903, allocations: 13.21 MB / 282.4 MB, free: 12.54 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01669/0.0256, allocations: 19.03 MB / 301.4 MB, free: 9.445 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001681/0.02728, allocations: 189.8 kB / 301.6 MB, free: 9.258 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001896/0.02917, allocations: 1.04 MB / 302.7 MB, free: 8.207 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005069/0.03424, allocations: 2.401 MB / 305.1 MB, free: 5.789 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00309/0.03733, allocations: 1.453 MB / 306.5 MB, free: 4.328 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.007051/0.04438, allocations: 6.738 MB / 313.2 MB, free: 13.57 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004759/0.04486, allocations: 257 kB / 313.5 MB, free: 13.29 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003163/0.04802, allocations: 2.952 MB / 316.4 MB, free: 10.33 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008425/0.04886, allocations: 0.8019 MB / 317.3 MB, free: 9.523 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001126/0.04898, allocations: 76 kB / 317.3 MB, free: 9.449 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002495/0.05147, allocations: 1.213 MB / 318.5 MB, free: 8.234 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002017/0.05167, allocations: 333.7 kB / 318.9 MB, free: 7.906 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006657/0.05234, allocations: 0.7204 MB / 319.6 MB, free: 7.184 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002864/0.0552, allocations: 2.755 MB / 322.3 MB, free: 4.418 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.069e-06/0.05521, allocations: 0 / 322.3 MB, free: 4.418 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.05521, allocations: 0 / 322.3 MB, free: 4.418 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.207e-05/0.05525, allocations: 0 / 322.3 MB, free: 4.418 MB / 298.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.003507/0.05876, allocations: 3.838 MB / 326.2 MB, free: 0.5234 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.588e-05/0.0588, allocations: 8.031 kB / 326.2 MB, free: 0.5156 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003276/0.05912, allocations: 433.5 kB / 326.6 MB, free: 92 kB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002236/0.06136, allocations: 2.639 MB / 329.2 MB, free: 13.35 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.951e-05/0.06139, allocations: 37 kB / 329.3 MB, free: 13.31 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.867e-05/0.06148, allocations: 55.89 kB / 329.3 MB, free: 13.26 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008826/0.06236, allocations: 0.4967 MB / 329.8 MB, free: 12.75 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.724e-05/0.06238, allocations: 0 / 329.8 MB, free: 12.75 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.915e-05/0.06243, allocations: 20 kB / 329.9 MB, free: 12.73 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.561e-05/0.06244, allocations: 19.98 kB / 329.9 MB, free: 12.71 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004348/0.06288, allocations: 411.7 kB / 330.3 MB, free: 12.31 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002472/0.06535, allocations: 2.238 MB / 332.5 MB, free: 10.03 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004873/0.06584, allocations: 406.8 kB / 332.9 MB, free: 9.629 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000506/0.06634, allocations: 0.5782 MB / 333.5 MB, free: 9.051 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1303/0.1966, allocations: 15.08 MB / 348.6 MB, free: 47.02 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004042/0.1971, allocations: 406.8 kB / 349 MB, free: 46.96 MB / 314.7 MB Notification: Performance of pre-optimization done (n=96): time 2.495e-06/0.1971, allocations: 0 / 349 MB, free: 46.96 MB / 314.7 MB Notification: Performance of matching and sorting (n=99): time 0.003354/0.2004, allocations: 2.471 MB / 351.4 MB, free: 46.57 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.648e-05/0.2004, allocations: 68.97 kB / 351.5 MB, free: 46.5 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001491/0.2019, allocations: 2.86 MB / 354.4 MB, free: 46.14 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.742e-05/0.202, allocations: 46.86 kB / 354.4 MB, free: 46.11 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007608/0.2027, allocations: 1.498 MB / 355.9 MB, free: 45.9 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001669/0.2029, allocations: 347.3 kB / 356.3 MB, free: 45.72 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002066/0.2031, allocations: 248.8 kB / 356.5 MB, free: 45.68 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.892e-05/0.2032, allocations: 0.5226 MB / 357 MB, free: 45.2 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001906/0.2034, allocations: 165 kB / 357.2 MB, free: 45.19 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002679/0.2036, allocations: 407.5 kB / 357.6 MB, free: 44.93 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005336/0.2042, allocations: 0.6362 MB / 358.2 MB, free: 44.67 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.356e-06/0.2042, allocations: 3.938 kB / 358.2 MB, free: 44.67 MB / 314.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.001285/0.2055, allocations: 1.261 MB / 359.5 MB, free: 44.3 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.061e-05/0.2055, allocations: 10.28 kB / 359.5 MB, free: 44.3 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001012/0.2056, allocations: 117.8 kB / 359.6 MB, free: 44.3 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003552/0.2059, allocations: 249.2 kB / 359.8 MB, free: 44.18 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004073/0.2063, allocations: 181.3 kB / 360 MB, free: 44.18 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003844/0.2102, allocations: 17.35 MB / 377.4 MB, free: 27.18 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000674/0.2109, allocations: 64.97 kB / 377.4 MB, free: 27.18 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.262e-05/0.2109, allocations: 48.27 kB / 377.5 MB, free: 27.18 MB / 314.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.0003432/0.2113, allocations: 220.3 kB / 377.7 MB, free: 27.02 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002314/0.2115, allocations: 415 kB / 378.1 MB, free: 26.82 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001617/0.2131, allocations: 1.491 MB / 379.6 MB, free: 26.49 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.639e-06/0.2131, allocations: 7.688 kB / 379.6 MB, free: 26.49 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.9e-06/0.2131, allocations: 3.75 kB / 379.6 MB, free: 26.49 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.515e-06/0.2131, allocations: 3.984 kB / 379.6 MB, free: 26.49 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008654/0.214, allocations: 1.092 MB / 380.7 MB, free: 26.34 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.17e-05/0.2141, allocations: 113.2 kB / 380.8 MB, free: 26.34 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000282/0.2144, allocations: 109.4 kB / 380.9 MB, free: 26.34 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003212/0.2147, allocations: 248.3 kB / 381.2 MB, free: 26.21 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.087e-05/0.2147, allocations: 47.11 kB / 381.2 MB, free: 26.21 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0033/0.218, allocations: 17.35 MB / 398.6 MB, free: 8.23 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.218, allocations: 0 / 398.6 MB, free: 8.23 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001439/0.2195, allocations: 1.481 MB / 400 MB, free: 6.836 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004297/0.2199, allocations: 456.5 kB / 400.5 MB, free: 6.414 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001755/0.2201, allocations: 20 kB / 400.5 MB, free: 6.395 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004293/0.2205, allocations: 55.94 kB / 400.6 MB, free: 6.34 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002048/0.2207, allocations: 140.3 kB / 400.7 MB, free: 6.207 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.773e-05/0.2208, allocations: 43.92 kB / 400.7 MB, free: 6.164 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0008138/0.2216, allocations: 1.508 MB / 402.2 MB, free: 4.812 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.2216, allocations: 0 / 402.2 MB, free: 4.812 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001058/0.2226, allocations: 0.6643 MB / 402.9 MB, free: 4.184 MB / 314.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.0008355/0.2235, allocations: 0.9734 MB / 403.9 MB, free: 3.402 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001161/0.2246, allocations: 2.464 MB / 406.3 MB, free: 0.7734 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.2246, allocations: 0 / 406.3 MB, free: 0.7734 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001031/0.2257, allocations: 2.196 MB / 408.5 MB, free: 14.41 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001361/0.227, allocations: 0.6558 MB / 409.2 MB, free: 13.75 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003865/0.2309, allocations: 4.295 MB / 413.5 MB, free: 9.434 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002887/0.2312, allocations: 408.9 kB / 413.9 MB, free: 9.012 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0007028/0.2319, allocations: 391.4 kB / 414.3 MB, free: 8.625 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009144/0.2328, allocations: 0.7283 MB / 415 MB, free: 7.91 MB / 330.7 MB Notification: Performance of SimCode: time 1.062e-06/0.2328, allocations: 0 / 415 MB, free: 7.91 MB / 330.7 MB Notification: Performance of Templates: time 0.05112/0.2839, allocations: 45.11 MB / 460.1 MB, free: 11.51 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.sim & ./Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/Nor/Nor.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.8933687820099294]