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.001338/0.001338, allocations: 72.08 kB / 21.69 MB, free: 2.863 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.001394/0.001394, allocations: 141.8 kB / 24.97 MB, free: 8.824 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.9325/0.9325, allocations: 173.4 MB / 201.5 MB, free: 9.324 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.052e-06/1.052e-06, allocations: 0 / 268.1 MB, free: 6.742 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.351e-05/1.456e-05, allocations: 2.312 kB / 268.1 MB, free: 6.738 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.00884/0.008854, allocations: 13.51 MB / 281.6 MB, free: 9.172 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1169/0.1257, allocations: 19.35 MB / 300.9 MB, free: 13.97 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001114/0.1268, allocations: 192.8 kB / 301.1 MB, free: 13.91 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001733/0.1286, allocations: 1.034 MB / 302.1 MB, free: 13.48 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003847/0.1324, allocations: 2.405 MB / 304.5 MB, free: 12.54 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002316/0.1347, allocations: 1.446 MB / 306 MB, free: 12.14 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004775/0.1395, allocations: 6.631 MB / 312.6 MB, free: 9.477 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003462/0.1398, allocations: 247.2 kB / 312.9 MB, free: 9.316 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009847/0.1408, allocations: 1.538 MB / 314.4 MB, free: 8.559 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005468/0.1414, allocations: 0.7808 MB / 315.2 MB, free: 8.25 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 9.037e-05/0.1415, allocations: 81.69 kB / 315.3 MB, free: 8.246 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001478/0.1429, allocations: 1.198 MB / 316.5 MB, free: 7.918 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001429/0.1431, allocations: 329.5 kB / 316.8 MB, free: 7.668 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004408/0.1435, allocations: 0.7212 MB / 317.5 MB, free: 6.996 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001727/0.1453, allocations: 2.747 MB / 320.2 MB, free: 4.547 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.1453, allocations: 3.938 kB / 320.3 MB, free: 4.543 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.01e-07/0.1453, allocations: 0 / 320.3 MB, free: 4.543 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.921e-05/0.1453, allocations: 0 / 320.3 MB, free: 4.543 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.002231/0.1475, allocations: 3.777 MB / 324 MB, free: 0.7109 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.391e-05/0.1475, allocations: 8.922 kB / 324 MB, free: 0.7031 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002949/0.1478, allocations: 437.5 kB / 324.5 MB, free: 280 kB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00226/0.1501, allocations: 2.714 MB / 327.2 MB, free: 13.54 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.523e-05/0.1501, allocations: 36.98 kB / 327.2 MB, free: 13.5 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.792e-05/0.1502, allocations: 51.95 kB / 327.3 MB, free: 13.45 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007315/0.1509, allocations: 0.5475 MB / 327.8 MB, free: 12.89 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.079e-05/0.151, allocations: 0 / 327.8 MB, free: 12.89 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.084e-05/0.151, allocations: 23.98 kB / 327.8 MB, free: 12.87 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.809e-05/0.151, allocations: 19.94 kB / 327.9 MB, free: 12.85 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006082/0.1516, allocations: 486.4 kB / 328.3 MB, free: 12.38 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00294/0.1546, allocations: 2.717 MB / 331 MB, free: 9.645 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006312/0.1552, allocations: 442.8 kB / 331.5 MB, free: 9.203 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006617/0.1559, allocations: 0.6294 MB / 332.1 MB, free: 8.57 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01481/0.1707, allocations: 15.13 MB / 347.2 MB, free: 9.121 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000524/0.1712, allocations: 439.8 kB / 347.7 MB, free: 8.676 MB / 298.7 MB Notification: Performance of pre-optimization done (n=96): time 2.264e-06/0.1712, allocations: 0 / 347.7 MB, free: 8.676 MB / 298.7 MB Notification: Performance of matching and sorting (n=99): time 0.00444/0.1756, allocations: 3.144 MB / 350.8 MB, free: 5.457 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.633e-05/0.1757, allocations: 68.39 kB / 350.9 MB, free: 5.375 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002915/0.1786, allocations: 2.896 MB / 353.8 MB, free: 2.465 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.778e-05/0.1787, allocations: 45.69 kB / 353.8 MB, free: 2.414 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001144/0.1798, allocations: 1.466 MB / 355.3 MB, free: 0.9375 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002437/0.1801, allocations: 350.1 kB / 355.6 MB, free: 0.6016 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002972/0.1804, allocations: 240.1 kB / 355.9 MB, free: 368 kB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001607/0.1805, allocations: 0.5199 MB / 356.4 MB, free: 15.83 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004219/0.1809, allocations: 206.2 kB / 356.6 MB, free: 15.63 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005581/0.1815, allocations: 456.9 kB / 357 MB, free: 15.1 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009783/0.1825, allocations: 0.7034 MB / 357.7 MB, free: 14.31 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.598e-06/0.1825, allocations: 4 kB / 357.7 MB, free: 14.3 MB / 314.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.001939/0.1844, allocations: 1.359 MB / 359.1 MB, free: 12.89 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.901e-05/0.1844, allocations: 8.625 kB / 359.1 MB, free: 12.89 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001312/0.1846, allocations: 120 kB / 359.2 MB, free: 12.77 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005502/0.1851, allocations: 260.7 kB / 359.5 MB, free: 12.47 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005422/0.1857, allocations: 179.7 kB / 359.7 MB, free: 12.3 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007639/0.1933, allocations: 17.59 MB / 377.2 MB, free: 9.5 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006795/0.194, allocations: 59.95 kB / 377.3 MB, free: 9.441 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000104/0.1941, allocations: 59.98 kB / 377.4 MB, free: 9.383 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.0004005/0.1945, allocations: 216.4 kB / 377.6 MB, free: 9.16 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003711/0.1949, allocations: 413.6 kB / 378 MB, free: 8.754 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002575/0.1974, allocations: 1.583 MB / 379.6 MB, free: 7.125 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.725e-06/0.1974, allocations: 8 kB / 379.6 MB, free: 7.117 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.092e-06/0.1974, allocations: 4 kB / 379.6 MB, free: 7.113 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.067e-06/0.1975, allocations: 7.922 kB / 379.6 MB, free: 7.105 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001676/0.1991, allocations: 1.513 MB / 381.1 MB, free: 5.578 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001241/0.1993, allocations: 112 kB / 381.2 MB, free: 5.469 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003838/0.1996, allocations: 111.9 kB / 381.3 MB, free: 5.359 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004963/0.2001, allocations: 256.6 kB / 381.6 MB, free: 5.066 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.708e-05/0.2002, allocations: 43.98 kB / 381.6 MB, free: 5.023 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007388/0.2076, allocations: 17.59 MB / 399.2 MB, free: 2.211 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.2076, allocations: 4.094 kB / 399.2 MB, free: 2.207 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00229/0.2099, allocations: 1.588 MB / 400.8 MB, free: 0.5508 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005862/0.2105, allocations: 462.4 kB / 401.2 MB, free: 104 kB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002555/0.2107, allocations: 16 kB / 401.2 MB, free: 88 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006167/0.2113, allocations: 59.89 kB / 401.3 MB, free: 28 kB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002945/0.2116, allocations: 148.7 kB / 401.4 MB, free: 15.88 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.136e-05/0.2117, allocations: 47.98 kB / 401.5 MB, free: 15.84 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001751/0.2135, allocations: 1.606 MB / 403.1 MB, free: 14.22 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.2135, allocations: 0 / 403.1 MB, free: 14.22 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001292/0.2148, allocations: 0.6596 MB / 403.8 MB, free: 13.56 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.001067/0.2158, allocations: 0.888 MB / 404.6 MB, free: 12.81 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002092/0.2179, allocations: 2.538 MB / 407.2 MB, free: 10.07 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.2179, allocations: 192 / 407.2 MB, free: 10.07 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001439/0.2194, allocations: 2.231 MB / 409.4 MB, free: 7.637 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001851/0.2212, allocations: 0.661 MB / 410.1 MB, free: 6.969 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004755/0.226, allocations: 4.304 MB / 414.4 MB, free: 2.605 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003277/0.2263, allocations: 412.8 kB / 414.8 MB, free: 2.18 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.000812/0.2271, allocations: 395.4 kB / 415.2 MB, free: 1.789 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002641/0.2274, allocations: 168.5 kB / 415.3 MB, free: 1.625 MB / 362.7 MB Notification: Performance of SimCode: time 8.21e-07/0.2274, allocations: 0 / 415.3 MB, free: 1.625 MB / 362.7 MB Notification: Performance of Templates: time 0.1316/0.359, allocations: 39.38 MB / 454.7 MB, free: 119.9 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: 3.938259996008128]