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.0008292/0.0008292, allocations: 85.05 kB / 21.5 MB, free: 2.988 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.000965/0.000965, allocations: 142.1 kB / 24.89 MB, free: 8.781 MB / 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 0.9653/0.9653, allocations: 173.4 MB / 201.5 MB, free: 8.777 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 7.82e-07/7.82e-07, allocations: 0 / 268.5 MB, free: 6.023 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.298e-06/1.008e-05, allocations: 5.688 kB / 268.5 MB, free: 6.02 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.008809/0.008819, allocations: 13.26 MB / 281.8 MB, free: 8.703 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1169/0.1257, allocations: 19.41 MB / 301.2 MB, free: 14.26 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009897/0.1267, allocations: 195.8 kB / 301.4 MB, free: 14.12 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001658/0.1284, allocations: 1.074 MB / 302.4 MB, free: 13.68 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003786/0.1321, allocations: 2.356 MB / 304.8 MB, free: 12.71 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002397/0.1345, allocations: 1.413 MB / 306.2 MB, free: 12.3 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004736/0.1393, allocations: 6.702 MB / 312.9 MB, free: 9.629 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003929/0.1397, allocations: 290.4 kB / 313.2 MB, free: 9.422 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00209/0.1418, allocations: 2.933 MB / 316.1 MB, free: 8.145 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006666/0.1424, allocations: 0.821 MB / 316.9 MB, free: 7.535 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 9.158e-05/0.1425, allocations: 72 kB / 317 MB, free: 7.465 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00167/0.1442, allocations: 1.254 MB / 318.3 MB, free: 6.246 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001292/0.1443, allocations: 330.5 kB / 318.6 MB, free: 5.934 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004148/0.1447, allocations: 0.7229 MB / 319.3 MB, free: 5.223 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001663/0.1464, allocations: 2.758 MB / 322.1 MB, free: 2.734 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.014e-06/0.1464, allocations: 0 / 322.1 MB, free: 2.734 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.02e-07/0.1464, allocations: 0 / 322.1 MB, free: 2.734 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.85e-05/0.1464, allocations: 4 kB / 322.1 MB, free: 2.73 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.002022/0.1484, allocations: 3.526 MB / 325.6 MB, free: 15.35 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.975e-05/0.1485, allocations: 12.92 kB / 325.6 MB, free: 15.34 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002117/0.1487, allocations: 275.7 kB / 325.9 MB, free: 15.07 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001843/0.1505, allocations: 2.109 MB / 328 MB, free: 12.93 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.398e-05/0.1505, allocations: 40.98 kB / 328 MB, free: 12.88 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.073e-05/0.1506, allocations: 47.95 kB / 328.1 MB, free: 12.84 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005162/0.1511, allocations: 479.5 kB / 328.5 MB, free: 12.36 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.199e-05/0.1511, allocations: 3.938 kB / 328.5 MB, free: 12.35 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.805e-05/0.1512, allocations: 20 kB / 328.6 MB, free: 12.33 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.55e-05/0.1512, allocations: 23.92 kB / 328.6 MB, free: 12.31 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003309/0.1515, allocations: 219.8 kB / 328.8 MB, free: 12.09 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002077/0.1536, allocations: 1.468 MB / 330.3 MB, free: 10.61 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003993/0.154, allocations: 382.2 kB / 330.6 MB, free: 10.22 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004426/0.1544, allocations: 0.5096 MB / 331.2 MB, free: 9.711 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02152/0.176, allocations: 22.84 MB / 354 MB, free: 2.008 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003443/0.1763, allocations: 358 kB / 354.3 MB, free: 1.641 MB / 298.7 MB Notification: Performance of pre-optimization done (n=96): time 2.264e-06/0.1763, allocations: 3.938 kB / 354.3 MB, free: 1.637 MB / 298.7 MB Notification: Performance of matching and sorting (n=99): time 0.003492/0.1798, allocations: 2.227 MB / 356.6 MB, free: 15.36 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.315e-05/0.1798, allocations: 68.41 kB / 356.6 MB, free: 15.27 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00135/0.1812, allocations: 2.422 MB / 359.1 MB, free: 12.84 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.865e-05/0.1812, allocations: 41.7 kB / 359.1 MB, free: 12.79 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003024/0.1815, allocations: 0.5997 MB / 359.7 MB, free: 12.18 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001723/0.1817, allocations: 349 kB / 360 MB, free: 11.84 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001858/0.1819, allocations: 198.3 kB / 360.2 MB, free: 11.64 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.74e-05/0.182, allocations: 349.8 kB / 360.6 MB, free: 11.29 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001601/0.1821, allocations: 118.2 kB / 360.7 MB, free: 11.18 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002339/0.1824, allocations: 310.7 kB / 361 MB, free: 10.81 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004548/0.1828, allocations: 0.5163 MB / 361.5 MB, free: 10.23 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.1828, allocations: 0 / 361.5 MB, free: 10.23 MB / 314.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.0008932/0.1837, allocations: 0.8778 MB / 362.4 MB, free: 9.312 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.326e-05/0.1837, allocations: 8 kB / 362.4 MB, free: 9.305 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.015e-05/0.1838, allocations: 19.98 kB / 362.4 MB, free: 9.285 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003131/0.1841, allocations: 216.9 kB / 362.6 MB, free: 9.043 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003848/0.1845, allocations: 191.7 kB / 362.8 MB, free: 8.855 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004282/0.1888, allocations: 11.81 MB / 374.6 MB, free: 12.18 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004123/0.1892, allocations: 64.05 kB / 374.7 MB, free: 12.12 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.557e-05/0.1893, allocations: 32 kB / 374.7 MB, free: 12.09 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.0002676/0.1895, allocations: 173.6 kB / 374.9 MB, free: 11.91 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001976/0.1897, allocations: 259.6 kB / 375.1 MB, free: 11.65 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001398/0.1911, allocations: 1.194 MB / 376.3 MB, free: 10.43 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.3e-06/0.1911, allocations: 8 kB / 376.4 MB, free: 10.42 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/0.1911, allocations: 7.984 kB / 376.4 MB, free: 10.41 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.791e-06/0.1911, allocations: 3.984 kB / 376.4 MB, free: 10.41 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007272/0.1919, allocations: 0.8762 MB / 377.2 MB, free: 9.512 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.079e-05/0.1919, allocations: 8 kB / 377.2 MB, free: 9.504 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002804/0.1922, allocations: 119.8 kB / 377.4 MB, free: 9.387 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002935/0.1925, allocations: 228.3 kB / 377.6 MB, free: 9.133 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.212e-05/0.1926, allocations: 27.92 kB / 377.6 MB, free: 9.105 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004197/0.1968, allocations: 11.81 MB / 389.4 MB, free: 12.42 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.1968, allocations: 3.938 kB / 389.4 MB, free: 12.42 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00108/0.1978, allocations: 1.048 MB / 390.5 MB, free: 11.32 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003534/0.1982, allocations: 377.4 kB / 390.8 MB, free: 10.95 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001599/0.1983, allocations: 19.94 kB / 390.9 MB, free: 10.93 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003756/0.1987, allocations: 47.95 kB / 390.9 MB, free: 10.88 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001862/0.1989, allocations: 132.6 kB / 391 MB, free: 10.75 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.521e-05/0.199, allocations: 19.98 kB / 391.1 MB, free: 10.73 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0007568/0.1997, allocations: 1.306 MB / 392.4 MB, free: 9.414 MB / 346.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1997, allocations: 4 kB / 392.4 MB, free: 9.41 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008149/0.2005, allocations: 0.6596 MB / 393 MB, free: 8.75 MB / 346.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.0009832/0.2015, allocations: 0.9687 MB / 394 MB, free: 7.777 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001076/0.2026, allocations: 1.74 MB / 395.7 MB, free: 5.883 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.061e-05/0.2026, allocations: 36 kB / 395.8 MB, free: 5.848 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007522/0.2034, allocations: 1.509 MB / 397.3 MB, free: 4.18 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001153/0.2045, allocations: 0.6238 MB / 397.9 MB, free: 3.551 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00351/0.208, allocations: 4.132 MB / 402 MB, free: 15.36 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002401/0.2083, allocations: 408.9 kB / 402.4 MB, free: 14.94 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0005866/0.2088, allocations: 387.4 kB / 402.8 MB, free: 14.56 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008086/0.2097, allocations: 0.6045 MB / 403.4 MB, free: 13.95 MB / 362.7 MB Notification: Performance of SimCode: time 9.32e-07/0.2097, allocations: 0 / 403.4 MB, free: 13.95 MB / 362.7 MB Notification: Performance of Templates: time 0.1362/0.3459, allocations: 44.2 MB / 447.6 MB, free: 107 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 -s gbode -gbm=radauIIA3 -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: 3.729072459973395]