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.0009737/0.0009737, allocations: 82.59 kB / 21.43 MB, free: 3.07 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.0009855/0.0009855, allocations: 171.8 kB / 24.82 MB, free: 9.254 MB / 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.9555/0.9555, allocations: 177 MB / 205.1 MB, free: 5.473 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.182e-06/1.182e-06, allocations: 0 / 273.3 MB, free: 1.23 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.078e-05/2.196e-05, allocations: 2.312 kB / 273.3 MB, free: 1.227 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.008317/0.008339, allocations: 13.22 MB / 286.5 MB, free: 3.945 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1584/0.1667, allocations: 19.06 MB / 305.6 MB, free: 11.11 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005504/0.1722, allocations: 192.2 kB / 305.8 MB, free: 10.97 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00535/0.1776, allocations: 1.037 MB / 306.8 MB, free: 10.47 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00714/0.1847, allocations: 2.405 MB / 309.2 MB, free: 8.977 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004503/0.1892, allocations: 1.451 MB / 310.7 MB, free: 8.027 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.006939/0.1961, allocations: 6.835 MB / 317.5 MB, free: 4.727 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006898/0.1968, allocations: 245.6 kB / 317.8 MB, free: 4.551 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003108/0.1999, allocations: 3.026 MB / 320.8 MB, free: 1.52 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008233/0.2008, allocations: 0.8175 MB / 321.6 MB, free: 0.6992 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001389/0.2009, allocations: 72 kB / 321.7 MB, free: 0.6289 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003272/0.2042, allocations: 1.213 MB / 322.9 MB, free: 15.41 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001798/0.2043, allocations: 333.7 kB / 323.2 MB, free: 15.09 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007043/0.2051, allocations: 0.7243 MB / 323.9 MB, free: 14.36 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003076/0.2081, allocations: 2.755 MB / 326.7 MB, free: 11.59 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.416e-06/0.2081, allocations: 0 / 326.7 MB, free: 11.59 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.202e-06/0.2081, allocations: 0 / 326.7 MB, free: 11.59 MB / 282.7 MB Notification: Performance of Transformations before backend: time 7.804e-05/0.2082, allocations: 0 / 326.7 MB, free: 11.59 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.003274/0.2115, allocations: 3.84 MB / 330.5 MB, free: 7.695 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.86e-05/0.2115, allocations: 11.98 kB / 330.5 MB, free: 7.684 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003657/0.2119, allocations: 433.5 kB / 331 MB, free: 7.258 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002345/0.2142, allocations: 2.631 MB / 333.6 MB, free: 4.527 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.453e-05/0.2143, allocations: 36.98 kB / 333.6 MB, free: 4.488 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.015e-05/0.2143, allocations: 51.94 kB / 333.7 MB, free: 4.438 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006074/0.2149, allocations: 0.5006 MB / 334.2 MB, free: 3.926 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.095e-05/0.215, allocations: 0 / 334.2 MB, free: 3.926 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.592e-05/0.215, allocations: 27.92 kB / 334.2 MB, free: 3.898 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.497e-05/0.215, allocations: 16 kB / 334.2 MB, free: 3.883 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004407/0.2155, allocations: 419.7 kB / 334.6 MB, free: 3.477 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002549/0.218, allocations: 2.231 MB / 336.9 MB, free: 1.199 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004512/0.2185, allocations: 400 kB / 337.3 MB, free: 0.8008 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004992/0.219, allocations: 0.5585 MB / 337.8 MB, free: 244 kB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01418/0.2331, allocations: 15.21 MB / 353 MB, free: 0.6797 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003863/0.2335, allocations: 403.7 kB / 353.4 MB, free: 276 kB / 298.7 MB Notification: Performance of pre-optimization done (n=96): time 2.224e-06/0.2335, allocations: 0 / 353.4 MB, free: 276 kB / 298.7 MB Notification: Performance of matching and sorting (n=99): time 0.003279/0.2368, allocations: 2.461 MB / 355.9 MB, free: 13.73 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.045e-05/0.2369, allocations: 76.33 kB / 356 MB, free: 13.64 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00188/0.2387, allocations: 2.862 MB / 358.8 MB, free: 10.76 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.204e-05/0.2388, allocations: 41.7 kB / 358.9 MB, free: 10.71 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008795/0.2397, allocations: 1.501 MB / 360.4 MB, free: 9.207 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001947/0.2399, allocations: 357 kB / 360.7 MB, free: 8.855 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002221/0.2401, allocations: 248 kB / 361 MB, free: 8.605 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001323/0.2402, allocations: 0.5198 MB / 361.5 MB, free: 8.078 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001934/0.2404, allocations: 158.2 kB / 361.6 MB, free: 7.926 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003136/0.2407, allocations: 418 kB / 362 MB, free: 7.43 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005402/0.2413, allocations: 0.6331 MB / 362.7 MB, free: 6.711 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.2413, allocations: 0 / 362.7 MB, free: 6.711 MB / 314.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.001176/0.2424, allocations: 1.261 MB / 363.9 MB, free: 5.398 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.983e-05/0.2425, allocations: 8 kB / 363.9 MB, free: 5.391 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.231e-05/0.2425, allocations: 124 kB / 364.1 MB, free: 5.27 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003674/0.2429, allocations: 253.1 kB / 364.3 MB, free: 4.98 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003635/0.2433, allocations: 171.8 kB / 364.5 MB, free: 4.812 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005667/0.2489, allocations: 17.36 MB / 381.8 MB, free: 2.316 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000449/0.2494, allocations: 72.05 kB / 381.9 MB, free: 2.246 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.174e-05/0.2495, allocations: 48 kB / 382 MB, free: 2.199 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.0003011/0.2498, allocations: 220.3 kB / 382.2 MB, free: 1.973 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002486/0.25, allocations: 417.6 kB / 382.6 MB, free: 1.562 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001622/0.2516, allocations: 1.501 MB / 384.1 MB, free: 12 kB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.889e-06/0.2516, allocations: 8 kB / 384.1 MB, free: 4 kB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.414e-05/0.2517, allocations: 4.203 kB / 384.1 MB, free: 16 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.163e-06/0.2517, allocations: 11.92 kB / 384.1 MB, free: 15.98 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009114/0.2526, allocations: 1.071 MB / 385.2 MB, free: 14.89 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.562e-05/0.2527, allocations: 116 kB / 385.3 MB, free: 14.78 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002625/0.2529, allocations: 111.8 kB / 385.4 MB, free: 14.67 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003324/0.2533, allocations: 252.6 kB / 385.6 MB, free: 14.38 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.298e-05/0.2533, allocations: 51.91 kB / 385.7 MB, free: 14.33 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005629/0.2589, allocations: 17.35 MB / 403 MB, free: 11.83 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.2589, allocations: 0 / 403 MB, free: 11.83 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00138/0.2603, allocations: 1.474 MB / 404.5 MB, free: 10.29 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004214/0.2607, allocations: 463.3 kB / 405 MB, free: 9.832 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001461/0.2609, allocations: 19.98 kB / 405 MB, free: 9.812 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003738/0.2613, allocations: 55.89 kB / 405 MB, free: 9.758 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001991/0.2615, allocations: 140.8 kB / 405.2 MB, free: 9.621 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.646e-05/0.2615, allocations: 47.97 kB / 405.2 MB, free: 9.574 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0009372/0.2625, allocations: 1.507 MB / 406.7 MB, free: 8.059 MB / 362.7 MB Notification: Performance of sort global known variables: time 4e-08/0.2625, allocations: 8 kB / 406.7 MB, free: 8.051 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009596/0.2634, allocations: 0.6596 MB / 407.4 MB, free: 7.391 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.0008921/0.2643, allocations: 0.9655 MB / 408.4 MB, free: 6.422 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001376/0.2657, allocations: 2.457 MB / 410.8 MB, free: 3.762 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.2657, allocations: 0 / 410.8 MB, free: 3.762 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001032/0.2667, allocations: 2.211 MB / 413 MB, free: 1.348 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001312/0.268, allocations: 0.6487 MB / 413.7 MB, free: 0.6953 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003963/0.272, allocations: 4.299 MB / 418 MB, free: 12.33 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002712/0.2723, allocations: 404.9 kB / 418.4 MB, free: 11.91 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0006503/0.2729, allocations: 395.3 kB / 418.8 MB, free: 11.52 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008783/0.2738, allocations: 0.7283 MB / 419.5 MB, free: 10.79 MB / 378.7 MB Notification: Performance of SimCode: time 7.21e-07/0.2738, allocations: 4 kB / 419.5 MB, free: 10.79 MB / 378.7 MB Notification: Performance of Templates: time 0.1516/0.4254, allocations: 44.8 MB / 464.3 MB, free: 89.09 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.877514366991818]