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.0009773/0.0009773, allocations: 83.89 kB / 21.19 MB, free: 3.391 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.0009118/0.0009118, allocations: 141.1 kB / 24.54 MB, free: 40 kB / 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 1.042/1.042, allocations: 173.3 MB / 201.1 MB, free: 8.492 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.873e-06/1.873e-06, allocations: 0 / 268 MB, free: 6.172 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.184e-05/3.371e-05, allocations: 9.766 kB / 268 MB, free: 6.164 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.0148/0.01484, allocations: 13.53 MB / 281.5 MB, free: 8.57 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1703/0.1852, allocations: 19.4 MB / 300.9 MB, free: 13.63 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001949/0.1871, allocations: 193 kB / 301.1 MB, free: 13.51 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002225/0.1893, allocations: 1.032 MB / 302.1 MB, free: 13.09 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0069/0.1962, allocations: 2.407 MB / 304.5 MB, free: 12.14 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004738/0.201, allocations: 1.441 MB / 306 MB, free: 11.75 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.007002/0.208, allocations: 6.762 MB / 312.7 MB, free: 9.516 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005591/0.2085, allocations: 242.1 kB / 313 MB, free: 9.359 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001753/0.2103, allocations: 1.535 MB / 314.5 MB, free: 8.605 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008409/0.2111, allocations: 0.7822 MB / 315.3 MB, free: 8.297 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001797/0.2113, allocations: 76.66 kB / 315.4 MB, free: 8.297 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002809/0.2141, allocations: 1.208 MB / 316.6 MB, free: 7.824 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001603/0.2143, allocations: 327.4 kB / 316.9 MB, free: 7.516 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006048/0.2149, allocations: 0.7159 MB / 317.6 MB, free: 6.812 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002653/0.2175, allocations: 2.751 MB / 320.4 MB, free: 4.359 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.09e-06/0.2175, allocations: 4 kB / 320.4 MB, free: 4.355 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.282e-06/0.2175, allocations: 3.938 kB / 320.4 MB, free: 4.352 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.803e-05/0.2176, allocations: 0 / 320.4 MB, free: 4.352 MB / 266.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.00292/0.2205, allocations: 3.777 MB / 324.1 MB, free: 0.5195 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.845e-05/0.2206, allocations: 8.922 kB / 324.2 MB, free: 0.5117 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003087/0.2209, allocations: 437.5 kB / 324.6 MB, free: 84 kB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002451/0.2233, allocations: 2.704 MB / 327.3 MB, free: 13.36 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.979e-05/0.2233, allocations: 41 kB / 327.3 MB, free: 13.32 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.581e-05/0.2234, allocations: 51.95 kB / 327.4 MB, free: 13.27 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007818/0.2242, allocations: 0.5553 MB / 327.9 MB, free: 12.7 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.345e-05/0.2242, allocations: 0 / 327.9 MB, free: 12.7 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.062e-05/0.2243, allocations: 20 kB / 328 MB, free: 12.68 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.249e-05/0.2243, allocations: 23.92 kB / 328 MB, free: 12.66 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006031/0.2249, allocations: 474.4 kB / 328.4 MB, free: 12.2 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003251/0.2282, allocations: 2.722 MB / 331.2 MB, free: 9.457 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006612/0.2288, allocations: 446.8 kB / 331.6 MB, free: 9.012 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006812/0.2295, allocations: 0.6294 MB / 332.2 MB, free: 8.379 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01611/0.2456, allocations: 15.13 MB / 347.4 MB, free: 8.887 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005814/0.2462, allocations: 435.8 kB / 347.8 MB, free: 8.445 MB / 298.7 MB Notification: Performance of pre-optimization done (n=96): time 4.929e-06/0.2462, allocations: 0 / 347.8 MB, free: 8.445 MB / 298.7 MB Notification: Performance of matching and sorting (n=99): time 0.004528/0.2507, allocations: 3.144 MB / 350.9 MB, free: 5.223 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.169e-05/0.2508, allocations: 72.41 kB / 351 MB, free: 5.137 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002668/0.2535, allocations: 2.896 MB / 353.9 MB, free: 2.227 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.694e-05/0.2535, allocations: 41.7 kB / 353.9 MB, free: 2.18 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008834/0.2544, allocations: 1.47 MB / 355.4 MB, free: 0.6992 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001985/0.2546, allocations: 353 kB / 355.7 MB, free: 360 kB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002307/0.2548, allocations: 236.1 kB / 356 MB, free: 116 kB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001312/0.255, allocations: 0.5199 MB / 356.5 MB, free: 15.59 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003154/0.2553, allocations: 206.2 kB / 356.7 MB, free: 15.39 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004139/0.2557, allocations: 454.1 kB / 357.1 MB, free: 14.85 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007758/0.2565, allocations: 0.7035 MB / 357.8 MB, free: 14.06 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.406e-06/0.2565, allocations: 0 / 357.8 MB, free: 14.06 MB / 314.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.00158/0.258, allocations: 1.355 MB / 359.2 MB, free: 12.66 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.162e-05/0.2581, allocations: 8.531 kB / 359.2 MB, free: 12.65 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001086/0.2582, allocations: 128 kB / 359.3 MB, free: 12.52 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004715/0.2586, allocations: 256.6 kB / 359.6 MB, free: 12.23 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005718/0.2592, allocations: 188.4 kB / 359.8 MB, free: 12.05 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006965/0.2662, allocations: 17.59 MB / 377.4 MB, free: 9.246 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006658/0.2668, allocations: 59.95 kB / 377.4 MB, free: 9.188 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.931e-05/0.2669, allocations: 56 kB / 377.5 MB, free: 9.133 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.00037/0.2673, allocations: 220.3 kB / 377.7 MB, free: 8.906 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003209/0.2676, allocations: 409.6 kB / 378.1 MB, free: 8.504 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002219/0.2698, allocations: 1.578 MB / 379.7 MB, free: 6.875 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.914e-06/0.2699, allocations: 12 kB / 379.7 MB, free: 6.863 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.037e-06/0.2699, allocations: 4 kB / 379.7 MB, free: 6.859 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.115e-06/0.2699, allocations: 7.922 kB / 379.7 MB, free: 6.852 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001536/0.2714, allocations: 1.517 MB / 381.2 MB, free: 5.301 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.314e-05/0.2715, allocations: 112 kB / 381.3 MB, free: 5.191 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002778/0.2718, allocations: 111.8 kB / 381.4 MB, free: 5.082 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003961/0.2722, allocations: 256.6 kB / 381.7 MB, free: 4.789 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.479e-05/0.2722, allocations: 39.98 kB / 381.7 MB, free: 4.75 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006873/0.2791, allocations: 17.58 MB / 399.3 MB, free: 1.938 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.2791, allocations: 0 / 399.3 MB, free: 1.938 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002049/0.2812, allocations: 1.599 MB / 400.9 MB, free: 276 kB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006126/0.2818, allocations: 455.6 kB / 401.3 MB, free: 15.82 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001789/0.282, allocations: 27.98 kB / 401.4 MB, free: 15.79 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004013/0.2824, allocations: 55.69 kB / 401.4 MB, free: 15.74 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002611/0.2826, allocations: 144.7 kB / 401.6 MB, free: 15.6 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.886e-05/0.2827, allocations: 51.92 kB / 401.6 MB, free: 15.55 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001713/0.2844, allocations: 1.61 MB / 403.2 MB, free: 13.93 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.2844, allocations: 0 / 403.2 MB, free: 13.93 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001288/0.2857, allocations: 0.6596 MB / 403.9 MB, free: 13.27 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.001013/0.2867, allocations: 0.8754 MB / 404.8 MB, free: 12.39 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002133/0.2888, allocations: 2.539 MB / 407.3 MB, free: 9.645 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.2888, allocations: 0 / 407.3 MB, free: 9.645 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001259/0.2901, allocations: 2.243 MB / 409.5 MB, free: 7.199 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001533/0.2916, allocations: 0.6454 MB / 410.2 MB, free: 6.547 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004278/0.2959, allocations: 4.321 MB / 414.5 MB, free: 2.164 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002956/0.2962, allocations: 408.9 kB / 414.9 MB, free: 1.742 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0007003/0.2969, allocations: 387.4 kB / 415.3 MB, free: 1.359 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002128/0.2971, allocations: 168.5 kB / 415.4 MB, free: 1.195 MB / 362.7 MB Notification: Performance of SimCode: time 1.011e-06/0.2971, allocations: 0 / 415.4 MB, free: 1.195 MB / 362.7 MB Notification: Performance of Templates: time 0.1724/0.4695, allocations: 39.38 MB / 454.8 MB, free: 100.4 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: 4.331536835990846]