Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001009/0.001009, allocations: 79.59 kB / 21.18 MB, free: 3.387 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.0009813/0.0009813, allocations: 161 kB / 24.56 MB, free: 16 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.977/0.977, allocations: 177.1 MB / 205 MB, free: 5.629 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4.1.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.1.0_Modelica.Electrical.Spice3.Examples.Nor") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.663e-06/1.663e-06, allocations: 0 / 273 MB, free: 1.559 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.891e-05/2.057e-05, allocations: 2.312 kB / 273 MB, free: 1.555 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.02443/0.02445, allocations: 13.55 MB / 286.5 MB, free: 3.949 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1587/0.1831, allocations: 19.44 MB / 305.9 MB, free: 10.88 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001756/0.1849, allocations: 192.5 kB / 306.1 MB, free: 10.74 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002095/0.187, allocations: 1.042 MB / 307.2 MB, free: 10.23 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006215/0.1932, allocations: 2.391 MB / 309.6 MB, free: 8.754 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004189/0.1974, allocations: 1.454 MB / 311 MB, free: 7.793 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.006336/0.2037, allocations: 6.826 MB / 317.8 MB, free: 4.5 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005351/0.2043, allocations: 246.2 kB / 318.1 MB, free: 4.332 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00151/0.2058, allocations: 1.541 MB / 319.6 MB, free: 2.883 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007417/0.2065, allocations: 0.7785 MB / 320.4 MB, free: 2.102 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001215/0.2066, allocations: 76 kB / 320.5 MB, free: 2.027 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002464/0.2091, allocations: 1.217 MB / 321.7 MB, free: 0.8086 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000149/0.2093, allocations: 325.7 kB / 322 MB, free: 500 kB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006511/0.2099, allocations: 0.7126 MB / 322.7 MB, free: 15.77 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003123/0.213, allocations: 2.759 MB / 325.5 MB, free: 13 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.615e-06/0.213, allocations: 0 / 325.5 MB, free: 13 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.733e-06/0.213, allocations: 4 kB / 325.5 MB, free: 13 MB / 282.7 MB Notification: Performance of Transformations before backend: time 8.095e-05/0.2131, allocations: 0 / 325.5 MB, free: 13 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.003751/0.2169, allocations: 3.774 MB / 329.3 MB, free: 9.168 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.189e-05/0.2169, allocations: 12.03 kB / 329.3 MB, free: 9.156 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004032/0.2173, allocations: 437.5 kB / 329.7 MB, free: 8.727 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002635/0.2199, allocations: 2.709 MB / 332.4 MB, free: 5.918 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.71e-05/0.22, allocations: 37 kB / 332.4 MB, free: 5.879 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.678e-05/0.2201, allocations: 59.88 kB / 332.5 MB, free: 5.82 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007706/0.2208, allocations: 0.5475 MB / 333.1 MB, free: 5.266 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.256e-05/0.2209, allocations: 4 kB / 333.1 MB, free: 5.262 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.085e-05/0.2209, allocations: 23.94 kB / 333.1 MB, free: 5.238 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.95e-05/0.2209, allocations: 19.98 kB / 333.1 MB, free: 5.219 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005903/0.2215, allocations: 482.3 kB / 333.6 MB, free: 4.75 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003237/0.2248, allocations: 2.723 MB / 336.3 MB, free: 1.977 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006385/0.2254, allocations: 446.8 kB / 336.7 MB, free: 1.531 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006421/0.226, allocations: 0.6132 MB / 337.3 MB, free: 0.9141 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02057/0.2466, allocations: 15.15 MB / 352.5 MB, free: 1.375 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009629/0.2476, allocations: 439.8 kB / 352.9 MB, free: 0.9297 MB / 298.7 MB Notification: Performance of pre-optimization done (n=96): time 3.156e-06/0.2476, allocations: 0 / 352.9 MB, free: 0.9297 MB / 298.7 MB Notification: Performance of matching and sorting (n=99): time 0.005528/0.2531, allocations: 3.149 MB / 356.1 MB, free: 13.7 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.628e-05/0.2531, allocations: 64.41 kB / 356.1 MB, free: 13.62 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00298/0.2561, allocations: 2.903 MB / 359 MB, free: 10.7 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.425e-05/0.2562, allocations: 41.7 kB / 359.1 MB, free: 10.66 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001292/0.2575, allocations: 1.47 MB / 360.6 MB, free: 9.18 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002575/0.2577, allocations: 345 kB / 360.9 MB, free: 8.844 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003049/0.258, allocations: 244.1 kB / 361.1 MB, free: 8.598 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001439/0.2582, allocations: 0.5238 MB / 361.7 MB, free: 8.066 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003991/0.2586, allocations: 206.2 kB / 361.9 MB, free: 7.867 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005303/0.2591, allocations: 450.1 kB / 362.3 MB, free: 7.34 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009498/0.2601, allocations: 0.7044 MB / 363 MB, free: 6.547 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.588e-06/0.2601, allocations: 4 kB / 363 MB, free: 6.543 MB / 314.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.001948/0.262, allocations: 1.363 MB / 364.4 MB, free: 5.133 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.153e-05/0.262, allocations: 8 kB / 364.4 MB, free: 5.125 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001471/0.2622, allocations: 120 kB / 364.5 MB, free: 5.008 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005651/0.2628, allocations: 257.1 kB / 364.7 MB, free: 4.715 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005549/0.2633, allocations: 175.8 kB / 364.9 MB, free: 4.543 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008058/0.2714, allocations: 17.59 MB / 382.5 MB, free: 1.746 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00086/0.2722, allocations: 59.95 kB / 382.6 MB, free: 1.688 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001113/0.2723, allocations: 60 kB / 382.6 MB, free: 1.629 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.0004096/0.2727, allocations: 220.4 kB / 382.8 MB, free: 1.402 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003922/0.2731, allocations: 421.5 kB / 383.2 MB, free: 0.9883 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002568/0.2757, allocations: 1.577 MB / 384.8 MB, free: 15.36 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.019e-05/0.2757, allocations: 8 kB / 384.8 MB, free: 15.36 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.977e-06/0.2757, allocations: 11.94 kB / 384.8 MB, free: 15.34 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.315e-06/0.2757, allocations: 3.984 kB / 384.8 MB, free: 15.34 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001697/0.2774, allocations: 1.509 MB / 386.4 MB, free: 13.8 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001427/0.2776, allocations: 116 kB / 386.5 MB, free: 13.68 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003232/0.2779, allocations: 115.8 kB / 386.6 MB, free: 13.57 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000417/0.2783, allocations: 256.6 kB / 386.8 MB, free: 13.28 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.231e-05/0.2784, allocations: 43.98 kB / 386.9 MB, free: 13.23 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006338/0.2847, allocations: 17.6 MB / 404.5 MB, free: 10.41 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-06/0.2847, allocations: 0 / 404.5 MB, free: 10.41 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00203/0.2867, allocations: 1.595 MB / 406.1 MB, free: 8.742 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005899/0.2873, allocations: 451.3 kB / 406.5 MB, free: 8.301 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001674/0.2875, allocations: 31.92 kB / 406.5 MB, free: 8.27 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005824/0.2881, allocations: 51.95 kB / 406.6 MB, free: 8.219 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002575/0.2883, allocations: 132.8 kB / 406.7 MB, free: 8.09 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.337e-05/0.2884, allocations: 55.97 kB / 406.8 MB, free: 8.035 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001428/0.2898, allocations: 1.606 MB / 408.4 MB, free: 6.422 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.71e-07/0.2898, allocations: 0 / 408.4 MB, free: 6.422 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001202/0.291, allocations: 0.6635 MB / 409 MB, free: 5.758 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.0009999/0.292, allocations: 0.8923 MB / 409.9 MB, free: 4.859 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001709/0.2938, allocations: 2.536 MB / 412.5 MB, free: 2.125 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.2938, allocations: 0 / 412.5 MB, free: 2.125 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001133/0.2949, allocations: 2.235 MB / 414.7 MB, free: 15.69 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001352/0.2962, allocations: 0.6494 MB / 415.4 MB, free: 15.04 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003937/0.3002, allocations: 4.324 MB / 419.7 MB, free: 10.65 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002737/0.3005, allocations: 408.9 kB / 420.1 MB, free: 10.22 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0006699/0.3011, allocations: 387.4 kB / 420.5 MB, free: 9.84 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002066/0.3013, allocations: 172.5 kB / 420.6 MB, free: 9.672 MB / 378.7 MB Notification: Performance of SimCode: time 9.82e-07/0.3013, allocations: 4 kB / 420.6 MB, free: 9.668 MB / 378.7 MB Notification: Performance of Templates: time 0.1479/0.4492, allocations: 39.42 MB / 460 MB, free: 94.97 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nor.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nor.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nor.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nor.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nor.sim & ./Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nor -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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: 4.202682355884463]