Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001189/0.001189, allocations: 91.5 kB / 21.19 MB, free: 3.375 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009475/0.0009475, allocations: 160.5 kB / 24.56 MB, free: 16 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9019/0.9019, allocations: 177 MB / 204.8 MB, free: 5.086 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Spice3.Examples.Nor") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.673e-06/1.673e-06, allocations: 0 / 272.9 MB, free: 1.316 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.608e-05/1.775e-05, allocations: 5.547 kB / 272.9 MB, free: 1.312 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.009042/0.00906, allocations: 13.56 MB / 286.5 MB, free: 3.695 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1143/0.1234, allocations: 19.43 MB / 305.9 MB, free: 10.73 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001233/0.1246, allocations: 195.4 kB / 306.1 MB, free: 10.59 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001713/0.1263, allocations: 1.041 MB / 307.1 MB, free: 10.09 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004512/0.1309, allocations: 2.403 MB / 309.5 MB, free: 8.598 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002673/0.1335, allocations: 1.451 MB / 311 MB, free: 7.621 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004828/0.1384, allocations: 6.829 MB / 317.8 MB, free: 4.328 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003602/0.1387, allocations: 249.2 kB / 318 MB, free: 4.156 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001986/0.1407, allocations: 3.032 MB / 321.1 MB, free: 1.188 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005846/0.1413, allocations: 0.8136 MB / 321.9 MB, free: 380 kB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001139/0.1414, allocations: 76 kB / 322 MB, free: 304 kB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00193/0.1433, allocations: 1.21 MB / 323.2 MB, free: 15.09 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001922/0.1435, allocations: 333.6 kB / 323.5 MB, free: 14.76 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005595/0.1441, allocations: 0.7243 MB / 324.2 MB, free: 14.03 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002305/0.1464, allocations: 2.759 MB / 327 MB, free: 11.26 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.1464, allocations: 0 / 327 MB, free: 11.26 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.363e-06/0.1464, allocations: 4 kB / 327 MB, free: 11.26 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.651e-05/0.1464, allocations: 0 / 327 MB, free: 11.26 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.002932/0.1494, allocations: 3.79 MB / 330.8 MB, free: 7.41 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.904e-05/0.1494, allocations: 15.98 kB / 330.8 MB, free: 7.395 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003312/0.1497, allocations: 429.5 kB / 331.2 MB, free: 6.973 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002536/0.1523, allocations: 2.639 MB / 333.8 MB, free: 4.234 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.292e-05/0.1523, allocations: 40.98 kB / 333.9 MB, free: 4.191 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.047e-05/0.1524, allocations: 48 kB / 333.9 MB, free: 4.145 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000731/0.1531, allocations: 0.5475 MB / 334.5 MB, free: 3.586 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.486e-05/0.1532, allocations: 4 kB / 334.5 MB, free: 3.582 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.543e-05/0.1532, allocations: 27.92 kB / 334.5 MB, free: 3.555 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.548e-05/0.1533, allocations: 19.98 kB / 334.5 MB, free: 3.535 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005832/0.1538, allocations: 478.3 kB / 335 MB, free: 3.074 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002859/0.1567, allocations: 2.716 MB / 337.7 MB, free: 312 kB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005874/0.1573, allocations: 451.4 kB / 338.2 MB, free: 15.86 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005995/0.1579, allocations: 0.6248 MB / 338.8 MB, free: 15.23 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01409/0.172, allocations: 15.15 MB / 353.9 MB, free: 15.69 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004756/0.1725, allocations: 439.8 kB / 354.4 MB, free: 15.24 MB / 314.7 MB Notification: Performance of pre-optimization done (n=96): time 2.345e-06/0.1725, allocations: 0 / 354.4 MB, free: 15.24 MB / 314.7 MB Notification: Performance of matching and sorting (n=99): time 0.003928/0.1764, allocations: 3.144 MB / 357.5 MB, free: 12.02 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.52e-05/0.1764, allocations: 68.39 kB / 357.6 MB, free: 11.93 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002137/0.1786, allocations: 2.896 MB / 360.5 MB, free: 9.023 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.4e-05/0.1786, allocations: 45.69 kB / 360.5 MB, free: 8.973 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008426/0.1795, allocations: 1.466 MB / 362 MB, free: 7.5 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001892/0.1796, allocations: 353 kB / 362.3 MB, free: 7.152 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002182/0.1799, allocations: 248.1 kB / 362.6 MB, free: 6.902 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001212/0.18, allocations: 0.5237 MB / 363.1 MB, free: 6.371 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000295/0.1803, allocations: 206.1 kB / 363.3 MB, free: 6.172 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003925/0.1807, allocations: 446.2 kB / 363.7 MB, free: 5.645 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007013/0.1814, allocations: 0.7074 MB / 364.4 MB, free: 4.852 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.1814, allocations: 4 kB / 364.4 MB, free: 4.848 MB / 314.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.0014/0.1828, allocations: 1.355 MB / 365.8 MB, free: 3.441 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.777e-05/0.1828, allocations: 8 kB / 365.8 MB, free: 3.434 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.254e-05/0.1829, allocations: 120 kB / 365.9 MB, free: 3.316 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004267/0.1833, allocations: 258.2 kB / 366.2 MB, free: 3.023 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000398/0.1837, allocations: 179.7 kB / 366.3 MB, free: 2.848 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006364/0.1901, allocations: 17.58 MB / 383.9 MB, free: 56 kB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005642/0.1906, allocations: 60.05 kB / 384 MB, free: 15.99 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.571e-05/0.1907, allocations: 64 kB / 384 MB, free: 15.93 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.0003383/0.1911, allocations: 212.4 kB / 384.3 MB, free: 15.71 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002769/0.1913, allocations: 417.5 kB / 384.7 MB, free: 15.3 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001907/0.1932, allocations: 1.58 MB / 386.2 MB, free: 13.68 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.44e-06/0.1932, allocations: 8 kB / 386.3 MB, free: 13.67 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/0.1933, allocations: 7.938 kB / 386.3 MB, free: 13.66 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.063e-06/0.1933, allocations: 3.984 kB / 386.3 MB, free: 13.66 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001273/0.1945, allocations: 1.517 MB / 387.8 MB, free: 12.11 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.905e-05/0.1946, allocations: 119.5 kB / 387.9 MB, free: 12 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000287/0.1949, allocations: 107.9 kB / 388 MB, free: 11.89 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004046/0.1953, allocations: 260.6 kB / 388.3 MB, free: 11.59 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.445e-05/0.1954, allocations: 43.98 kB / 388.3 MB, free: 11.55 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006826/0.2022, allocations: 17.58 MB / 405.9 MB, free: 8.738 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.2022, allocations: 0 / 405.9 MB, free: 8.738 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001834/0.204, allocations: 1.603 MB / 407.5 MB, free: 7.066 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004695/0.2045, allocations: 451.3 kB / 407.9 MB, free: 6.625 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001846/0.2047, allocations: 19.94 kB / 407.9 MB, free: 6.605 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004154/0.2051, allocations: 55.94 kB / 408 MB, free: 6.551 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002431/0.2054, allocations: 140.7 kB / 408.1 MB, free: 6.414 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.671e-05/0.2054, allocations: 51.98 kB / 408.2 MB, free: 6.363 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001299/0.2067, allocations: 1.606 MB / 409.8 MB, free: 4.75 MB / 362.7 MB Notification: Performance of sort global known variables: time 9e-08/0.2067, allocations: 3.938 kB / 409.8 MB, free: 4.746 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001034/0.2078, allocations: 0.6673 MB / 410.5 MB, free: 4.078 MB / 362.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.0008598/0.2086, allocations: 0.8814 MB / 411.3 MB, free: 3.191 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001914/0.2105, allocations: 2.54 MB / 413.9 MB, free: 456 kB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.2105, allocations: 0 / 413.9 MB, free: 456 kB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001245/0.2118, allocations: 2.239 MB / 416.1 MB, free: 14 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001432/0.2132, allocations: 0.6529 MB / 416.8 MB, free: 13.36 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004065/0.2173, allocations: 4.33 MB / 421.1 MB, free: 8.965 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002564/0.2175, allocations: 412.9 kB / 421.5 MB, free: 8.535 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0006034/0.2181, allocations: 383.4 kB / 421.9 MB, free: 8.156 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001973/0.2183, allocations: 172.5 kB / 422.1 MB, free: 7.988 MB / 378.7 MB Notification: Performance of SimCode: time 9.51e-07/0.2183, allocations: 0 / 422.1 MB, free: 7.988 MB / 378.7 MB Notification: Performance of Templates: time 0.1514/0.3698, allocations: 46 MB / 468.1 MB, free: 87.17 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.sim & ./Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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","",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.808001914061606]