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.001474/0.001474, allocations: 83.59 kB / 21.18 MB, free: 3.383 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.001551/0.001551, allocations: 165 kB / 24.56 MB, free: 12 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.9267/0.9267, allocations: 177.1 MB / 205 MB, free: 5.602 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.513e-06/1.513e-06, allocations: 0 / 273 MB, free: 1.535 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.574e-05/1.725e-05, allocations: 6.25 kB / 273 MB, free: 1.527 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.00918/0.009198, allocations: 13.55 MB / 286.5 MB, free: 3.922 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.117/0.1262, allocations: 19.43 MB / 306 MB, free: 10.88 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001359/0.1275, allocations: 196.2 kB / 306.1 MB, free: 10.74 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00177/0.1293, allocations: 1.043 MB / 307.2 MB, free: 10.23 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004151/0.1335, allocations: 2.398 MB / 309.6 MB, free: 8.746 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002642/0.1361, allocations: 1.451 MB / 311 MB, free: 7.793 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004631/0.1407, allocations: 6.823 MB / 317.9 MB, free: 4.5 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003526/0.1411, allocations: 243.3 kB / 318.1 MB, free: 4.336 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001948/0.143, allocations: 3.035 MB / 321.1 MB, free: 1.375 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005802/0.1436, allocations: 0.8175 MB / 321.9 MB, free: 0.5547 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001084/0.1437, allocations: 76 kB / 322 MB, free: 492 kB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001714/0.1454, allocations: 1.206 MB / 323.2 MB, free: 15.27 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001923/0.1456, allocations: 333.7 kB / 323.6 MB, free: 14.94 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005583/0.1462, allocations: 0.7243 MB / 324.3 MB, free: 14.21 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0025/0.1487, allocations: 2.755 MB / 327 MB, free: 11.45 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.1487, allocations: 0 / 327 MB, free: 11.45 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.515e-06/0.1487, allocations: 4 kB / 327 MB, free: 11.45 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.878e-05/0.1488, allocations: 0 / 327 MB, free: 11.45 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.002977/0.1517, allocations: 3.794 MB / 330.8 MB, free: 7.598 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.285e-05/0.1518, allocations: 12.03 kB / 330.8 MB, free: 7.586 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003359/0.1521, allocations: 437.4 kB / 331.3 MB, free: 7.156 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002286/0.1544, allocations: 2.639 MB / 333.9 MB, free: 4.418 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.347e-05/0.1544, allocations: 33 kB / 333.9 MB, free: 4.383 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.167e-05/0.1545, allocations: 51.95 kB / 334 MB, free: 4.332 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007088/0.1552, allocations: 0.5514 MB / 334.5 MB, free: 3.773 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.331e-05/0.1552, allocations: 4 kB / 334.5 MB, free: 3.77 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.781e-05/0.1553, allocations: 27.88 kB / 334.6 MB, free: 3.742 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.654e-05/0.1553, allocations: 19.98 kB / 334.6 MB, free: 3.723 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005451/0.1558, allocations: 478.4 kB / 335.1 MB, free: 3.258 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00268/0.1585, allocations: 2.719 MB / 337.8 MB, free: 496 kB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005649/0.1591, allocations: 446.8 kB / 338.2 MB, free: 40 kB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005991/0.1597, allocations: 0.6132 MB / 338.8 MB, free: 15.42 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0144/0.1741, allocations: 15.16 MB / 354 MB, free: 15.88 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004733/0.1745, allocations: 443.8 kB / 354.4 MB, free: 15.43 MB / 314.7 MB Notification: Performance of pre-optimization done (n=96): time 2.314e-06/0.1745, allocations: 0 / 354.4 MB, free: 15.43 MB / 314.7 MB Notification: Performance of matching and sorting (n=99): time 0.003987/0.1785, allocations: 3.144 MB / 357.6 MB, free: 12.21 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.555e-05/0.1786, allocations: 68.34 kB / 357.6 MB, free: 12.12 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002274/0.1808, allocations: 2.899 MB / 360.5 MB, free: 9.211 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.128e-05/0.1809, allocations: 45.7 kB / 360.6 MB, free: 9.16 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008289/0.1817, allocations: 1.47 MB / 362 MB, free: 7.684 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001807/0.1819, allocations: 345.1 kB / 362.4 MB, free: 7.344 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002247/0.1821, allocations: 244.1 kB / 362.6 MB, free: 7.098 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001206/0.1822, allocations: 0.5199 MB / 363.1 MB, free: 6.57 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002957/0.1825, allocations: 202.2 kB / 363.3 MB, free: 6.375 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003925/0.1829, allocations: 450.2 kB / 363.8 MB, free: 5.848 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007051/0.1836, allocations: 0.7161 MB / 364.5 MB, free: 5.043 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.407e-06/0.1836, allocations: 4 kB / 364.5 MB, free: 5.039 MB / 314.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.001374/0.185, allocations: 1.351 MB / 365.8 MB, free: 3.641 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.739e-05/0.185, allocations: 8 kB / 365.9 MB, free: 3.633 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.999e-05/0.1851, allocations: 120.5 kB / 366 MB, free: 3.516 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000411/0.1855, allocations: 256.6 kB / 366.2 MB, free: 3.223 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003984/0.1859, allocations: 183.7 kB / 366.4 MB, free: 3.043 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00647/0.1924, allocations: 17.59 MB / 384 MB, free: 248 kB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004765/0.1929, allocations: 64.05 kB / 384.1 MB, free: 184 kB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.5e-05/0.193, allocations: 56 kB / 384.1 MB, free: 128 kB / 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.0003173/0.1933, allocations: 212.4 kB / 384.3 MB, free: 15.91 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002581/0.1935, allocations: 417.5 kB / 384.7 MB, free: 15.5 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00185/0.1954, allocations: 1.573 MB / 386.3 MB, free: 13.88 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.074e-06/0.1954, allocations: 8 kB / 386.3 MB, free: 13.87 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.562e-06/0.1954, allocations: 11.94 kB / 386.3 MB, free: 13.86 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.782e-06/0.1954, allocations: 7.969 kB / 386.3 MB, free: 13.85 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001209/0.1966, allocations: 1.521 MB / 387.8 MB, free: 12.29 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.303e-05/0.1967, allocations: 112 kB / 388 MB, free: 12.18 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002895/0.197, allocations: 107.9 kB / 388.1 MB, free: 12.08 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003745/0.1974, allocations: 256.6 kB / 388.3 MB, free: 11.79 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.103e-05/0.1974, allocations: 43.98 kB / 388.4 MB, free: 11.74 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006404/0.2038, allocations: 17.6 MB / 406 MB, free: 8.914 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.123e-06/0.2038, allocations: 0 / 406 MB, free: 8.914 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001707/0.2055, allocations: 1.599 MB / 407.5 MB, free: 7.246 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004224/0.206, allocations: 451.3 kB / 408 MB, free: 6.805 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001757/0.2061, allocations: 19.94 kB / 408 MB, free: 6.785 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004098/0.2065, allocations: 55.94 kB / 408.1 MB, free: 6.73 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002478/0.2068, allocations: 140.8 kB / 408.2 MB, free: 6.594 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.982e-05/0.2069, allocations: 47.98 kB / 408.2 MB, free: 6.547 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001309/0.2082, allocations: 1.61 MB / 409.9 MB, free: 4.93 MB / 362.7 MB Notification: Performance of sort global known variables: time 9e-08/0.2082, allocations: 0 / 409.9 MB, free: 4.93 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001268/0.2094, allocations: 0.6635 MB / 410.5 MB, free: 4.266 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.0008845/0.2103, allocations: 0.8829 MB / 411.4 MB, free: 3.371 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001638/0.212, allocations: 2.54 MB / 413.9 MB, free: 0.6328 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.564e-06/0.212, allocations: 0 / 413.9 MB, free: 0.6328 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00111/0.2131, allocations: 2.247 MB / 416.2 MB, free: 14.18 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001342/0.2144, allocations: 0.6495 MB / 416.8 MB, free: 13.53 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004009/0.2184, allocations: 4.319 MB / 421.2 MB, free: 9.152 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002743/0.2187, allocations: 412.9 kB / 421.6 MB, free: 8.723 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0006378/0.2193, allocations: 387.4 kB / 421.9 MB, free: 8.34 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002136/0.2195, allocations: 168.5 kB / 422.1 MB, free: 8.176 MB / 378.7 MB Notification: Performance of SimCode: time 7.51e-07/0.2195, allocations: 4 kB / 422.1 MB, free: 8.172 MB / 378.7 MB Notification: Performance of Templates: time 0.14/0.3596, allocations: 46.01 MB / 468.1 MB, free: 87.49 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: 3.916096102911979]