Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.0008971/0.0008971, allocations: 80.8 kB / 22.28 MB, free: 2.207 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.0009004/0.0009004, allocations: 168.6 kB / 25.7 MB, free: 8.422 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8727/0.8727, allocations: 158.6 MB / 187.6 MB, free: 2.773 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Electrical.Spice3.Examples.Nor") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.884e-06/1.884e-06, allocations: 0 / 251.5 MB, free: 7.277 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.044e-05/2.232e-05, allocations: 6.312 kB / 251.5 MB, free: 7.27 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01262/0.01265, allocations: 12.56 MB / 264.1 MB, free: 10.65 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01787/0.03051, allocations: 18.5 MB / 282.6 MB, free: 8.074 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001444/0.03196, allocations: 197.8 kB / 282.8 MB, free: 7.879 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001958/0.03392, allocations: 1.049 MB / 283.8 MB, free: 6.82 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004437/0.03835, allocations: 2.39 MB / 286.2 MB, free: 4.414 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002365/0.04072, allocations: 1.411 MB / 287.6 MB, free: 2.992 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.005427/0.04615, allocations: 6.574 MB / 294.2 MB, free: 12.4 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003638/0.04651, allocations: 281.8 kB / 294.5 MB, free: 12.08 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002154/0.04866, allocations: 2.81 MB / 297.3 MB, free: 9.262 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000694/0.04936, allocations: 0.7904 MB / 298.1 MB, free: 8.469 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001106/0.04947, allocations: 79.98 kB / 298.2 MB, free: 8.391 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001606/0.05107, allocations: 1.077 MB / 299.2 MB, free: 7.312 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002159/0.05129, allocations: 329.6 kB / 299.6 MB, free: 6.988 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006211/0.05191, allocations: 0.736 MB / 300.3 MB, free: 6.25 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002143/0.05405, allocations: 2.778 MB / 303.1 MB, free: 3.461 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.05406, allocations: 0 / 303.1 MB, free: 3.461 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.312e-06/0.05406, allocations: 0 / 303.1 MB, free: 3.461 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.604e-05/0.05408, allocations: 0 / 303.1 MB, free: 3.461 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.002725/0.05681, allocations: 3.561 MB / 306.6 MB, free: 15.84 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.423e-05/0.05684, allocations: 15.98 kB / 306.6 MB, free: 15.83 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002587/0.0571, allocations: 275.7 kB / 306.9 MB, free: 15.56 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001982/0.05908, allocations: 2.118 MB / 309 MB, free: 13.32 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.147e-05/0.05912, allocations: 44.98 kB / 309.1 MB, free: 13.28 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.991e-05/0.0592, allocations: 47.95 kB / 309.1 MB, free: 13.23 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000529/0.05973, allocations: 483.2 kB / 309.6 MB, free: 12.76 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.084e-05/0.05974, allocations: 0 / 309.6 MB, free: 12.76 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.131e-05/0.05978, allocations: 20 kB / 309.6 MB, free: 12.74 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.628e-05/0.05979, allocations: 23.98 kB / 309.6 MB, free: 12.71 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003471/0.06014, allocations: 219.8 kB / 309.8 MB, free: 12.5 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001958/0.0621, allocations: 1.45 MB / 311.3 MB, free: 11.02 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004143/0.06251, allocations: 378.8 kB / 311.7 MB, free: 10.64 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004682/0.06298, allocations: 0.5166 MB / 312.2 MB, free: 10.13 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02328/0.08626, allocations: 22.96 MB / 335.2 MB, free: 2.305 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003564/0.08662, allocations: 362 kB / 335.5 MB, free: 1.938 MB / 314.7 MB Notification: Performance of pre-optimization done (n=96): time 2.184e-06/0.08662, allocations: 0 / 335.5 MB, free: 1.938 MB / 314.7 MB Notification: Performance of matching and sorting (n=99): time 0.003456/0.09008, allocations: 2.23 MB / 337.7 MB, free: 15.65 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.516e-05/0.09011, allocations: 68.34 kB / 337.8 MB, free: 15.57 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001393/0.09151, allocations: 2.431 MB / 340.2 MB, free: 13.12 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.163e-05/0.09156, allocations: 49.69 kB / 340.3 MB, free: 13.07 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003235/0.09188, allocations: 0.6077 MB / 340.9 MB, free: 12.45 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001756/0.09206, allocations: 345 kB / 341.2 MB, free: 12.11 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001865/0.09224, allocations: 190.4 kB / 341.4 MB, free: 11.92 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 8.941e-05/0.09233, allocations: 357.8 kB / 341.8 MB, free: 11.57 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001593/0.09249, allocations: 114.3 kB / 341.9 MB, free: 11.45 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002472/0.09274, allocations: 306.7 kB / 342.2 MB, free: 11.09 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004588/0.0932, allocations: 0.5085 MB / 342.7 MB, free: 10.52 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.819e-06/0.0932, allocations: 7.984 kB / 342.7 MB, free: 10.51 MB / 330.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.0009246/0.09413, allocations: 0.8778 MB / 343.6 MB, free: 9.594 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.966e-05/0.09415, allocations: 8 kB / 343.6 MB, free: 9.586 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.18e-05/0.09421, allocations: 19.98 kB / 343.6 MB, free: 9.566 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003464/0.09455, allocations: 220.8 kB / 343.8 MB, free: 9.32 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003682/0.09492, allocations: 175.8 kB / 344 MB, free: 9.148 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1146/0.2096, allocations: 11.8 MB / 355.8 MB, free: 84.93 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000826/0.2104, allocations: 66.3 kB / 355.8 MB, free: 84.93 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.835e-05/0.2105, allocations: 33.03 kB / 355.9 MB, free: 84.93 MB / 330.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.0003474/0.2108, allocations: 171.4 kB / 356 MB, free: 84.82 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003078/0.2111, allocations: 256.8 kB / 356.3 MB, free: 84.82 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001391/0.2125, allocations: 1.209 MB / 357.5 MB, free: 84.65 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.08e-06/0.2125, allocations: 8.719 kB / 357.5 MB, free: 84.65 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/0.2125, allocations: 3.938 kB / 357.5 MB, free: 84.65 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.074e-06/0.2125, allocations: 9.359 kB / 357.5 MB, free: 84.65 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007311/0.2133, allocations: 0.8804 MB / 358.4 MB, free: 84.56 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.498e-05/0.2133, allocations: 13.5 kB / 358.4 MB, free: 84.56 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002447/0.2136, allocations: 111.4 kB / 358.5 MB, free: 84.56 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002973/0.2139, allocations: 219.9 kB / 358.7 MB, free: 84.48 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.514e-05/0.2139, allocations: 18.45 kB / 358.8 MB, free: 84.48 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002717/0.2166, allocations: 11.81 MB / 370.6 MB, free: 73.27 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-06/0.2166, allocations: 3.938 kB / 370.6 MB, free: 73.26 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001066/0.2177, allocations: 1.052 MB / 371.6 MB, free: 73.06 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003799/0.2181, allocations: 385.4 kB / 372 MB, free: 73.05 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001761/0.2183, allocations: 15.03 kB / 372 MB, free: 73.05 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003839/0.2186, allocations: 54.14 kB / 372.1 MB, free: 73.05 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001802/0.2188, allocations: 121 kB / 372.2 MB, free: 73.05 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.187e-05/0.2189, allocations: 24.5 kB / 372.2 MB, free: 73.05 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.000676/0.2195, allocations: 1.311 MB / 373.5 MB, free: 72.92 MB / 330.7 MB Notification: Performance of sort global known variables: time 9e-08/0.2195, allocations: 3.344 kB / 373.5 MB, free: 72.92 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0009184/0.2205, allocations: 0.6704 MB / 374.2 MB, free: 72.92 MB / 330.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.0008337/0.2213, allocations: 0.9693 MB / 375.2 MB, free: 72.82 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0009606/0.2223, allocations: 1.733 MB / 376.9 MB, free: 71.56 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-05/0.2223, allocations: 41 kB / 376.9 MB, free: 71.55 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006035/0.2229, allocations: 1.51 MB / 378.5 MB, free: 70.3 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009053/0.2238, allocations: 0.5318 MB / 379 MB, free: 70.21 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003326/0.2271, allocations: 4.156 MB / 383.1 MB, free: 67.28 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002273/0.2273, allocations: 411.8 kB / 383.5 MB, free: 66.98 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0005799/0.2279, allocations: 391.7 kB / 383.9 MB, free: 66.7 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007241/0.2286, allocations: 0.6056 MB / 384.5 MB, free: 66.19 MB / 330.7 MB Notification: Performance of SimCode: time 8.52e-07/0.2286, allocations: 0 / 384.5 MB, free: 66.19 MB / 330.7 MB Notification: Performance of Templates: time 0.03974/0.2684, allocations: 44.4 MB / 428.9 MB, free: 22.72 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.sim & ./Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.791184926405549]