Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001288/0.001288, allocations: 80.8 kB / 22.29 MB, free: 2.203 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.001507/0.001507, allocations: 167.9 kB / 25.69 MB, free: 8.453 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9493/0.9493, allocations: 158.6 MB / 187.6 MB, free: 2.785 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Electrical.Spice3.Examples.Nor") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.463e-06/1.463e-06, allocations: 0 / 251.6 MB, free: 7.238 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.986e-05/3.132e-05, allocations: 2.312 kB / 251.6 MB, free: 7.234 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01365/0.01369, allocations: 12.62 MB / 264.2 MB, free: 10.55 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.03036/0.04405, allocations: 18.49 MB / 282.7 MB, free: 7.988 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002912/0.04696, allocations: 201.8 kB / 282.9 MB, free: 7.789 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00278/0.04974, allocations: 1.045 MB / 283.9 MB, free: 6.734 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006473/0.05621, allocations: 2.332 MB / 286.2 MB, free: 4.387 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005526/0.06174, allocations: 1.368 MB / 287.6 MB, free: 3.008 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.007579/0.06932, allocations: 6.555 MB / 294.2 MB, free: 12.43 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007273/0.07004, allocations: 285.7 kB / 294.4 MB, free: 12.11 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003578/0.07362, allocations: 2.818 MB / 297.3 MB, free: 9.289 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001364/0.07499, allocations: 0.7826 MB / 298.1 MB, free: 8.504 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002371/0.07522, allocations: 72 kB / 298.1 MB, free: 8.434 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003128/0.07835, allocations: 1.136 MB / 299.3 MB, free: 7.297 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002673/0.07862, allocations: 325.7 kB / 299.6 MB, free: 6.977 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001056/0.07967, allocations: 0.7398 MB / 300.3 MB, free: 6.234 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004078/0.08375, allocations: 2.774 MB / 303.1 MB, free: 3.449 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.927e-06/0.08376, allocations: 0 / 303.1 MB, free: 3.449 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.134e-06/0.08376, allocations: 0 / 303.1 MB, free: 3.449 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0001522/0.08392, allocations: 4 kB / 303.1 MB, free: 3.445 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.004094/0.08801, allocations: 3.557 MB / 306.6 MB, free: 15.83 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.163e-05/0.08805, allocations: 15.98 kB / 306.7 MB, free: 15.82 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003687/0.08842, allocations: 275.7 kB / 306.9 MB, free: 15.55 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00283/0.09125, allocations: 2.122 MB / 309.1 MB, free: 13.31 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.328e-05/0.09128, allocations: 36.98 kB / 309.1 MB, free: 13.27 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001071/0.09139, allocations: 51.95 kB / 309.1 MB, free: 13.22 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007442/0.09213, allocations: 487.2 kB / 309.6 MB, free: 12.74 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.485e-05/0.09215, allocations: 4 kB / 309.6 MB, free: 12.74 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.031e-05/0.0922, allocations: 20 kB / 309.6 MB, free: 12.72 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.237e-05/0.09222, allocations: 19.98 kB / 309.7 MB, free: 12.7 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004756/0.0927, allocations: 219.8 kB / 309.9 MB, free: 12.48 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00269/0.09539, allocations: 1.45 MB / 311.3 MB, free: 11 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005577/0.09595, allocations: 386.8 kB / 311.7 MB, free: 10.62 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006148/0.09656, allocations: 0.5126 MB / 312.2 MB, free: 10.11 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02898/0.1255, allocations: 22.96 MB / 335.2 MB, free: 2.285 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004374/0.126, allocations: 358.1 kB / 335.5 MB, free: 1.922 MB / 314.7 MB Notification: Performance of pre-optimization done (n=96): time 3.296e-06/0.126, allocations: 0 / 335.5 MB, free: 1.922 MB / 314.7 MB Notification: Performance of matching and sorting (n=99): time 0.003908/0.1299, allocations: 2.23 MB / 337.8 MB, free: 15.63 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.663e-05/0.1299, allocations: 64.41 kB / 337.8 MB, free: 15.56 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001458/0.1314, allocations: 2.439 MB / 340.3 MB, free: 13.11 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.102e-05/0.1314, allocations: 45.7 kB / 340.3 MB, free: 13.05 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003296/0.1318, allocations: 0.6038 MB / 340.9 MB, free: 12.44 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001992/0.132, allocations: 349 kB / 341.3 MB, free: 12.1 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002196/0.1322, allocations: 198.4 kB / 341.4 MB, free: 11.9 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001216/0.1323, allocations: 353.8 kB / 341.8 MB, free: 11.55 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001707/0.1325, allocations: 114.3 kB / 341.9 MB, free: 11.43 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002427/0.1327, allocations: 306.7 kB / 342.2 MB, free: 11.07 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005588/0.1333, allocations: 0.5124 MB / 342.7 MB, free: 10.49 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.879e-06/0.1333, allocations: 4 kB / 342.7 MB, free: 10.49 MB / 330.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.001016/0.1343, allocations: 0.8738 MB / 343.6 MB, free: 9.578 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.059e-05/0.1343, allocations: 8 kB / 343.6 MB, free: 9.57 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.088e-05/0.1344, allocations: 23.98 kB / 343.6 MB, free: 9.547 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003728/0.1348, allocations: 212.9 kB / 343.8 MB, free: 9.309 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004382/0.1352, allocations: 191.7 kB / 344 MB, free: 9.121 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1293/0.2645, allocations: 11.82 MB / 355.8 MB, free: 84.92 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001033/0.2655, allocations: 61.66 kB / 355.9 MB, free: 84.92 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001296/0.2657, allocations: 29 kB / 355.9 MB, free: 84.92 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.000443/0.2661, allocations: 169.3 kB / 356.1 MB, free: 84.81 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004084/0.2665, allocations: 261.7 kB / 356.3 MB, free: 84.81 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001546/0.2681, allocations: 1.208 MB / 357.6 MB, free: 84.64 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.641e-06/0.2681, allocations: 11.91 kB / 357.6 MB, free: 84.64 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.2681, allocations: 3.969 kB / 357.6 MB, free: 84.64 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.786e-06/0.2681, allocations: 4.781 kB / 357.6 MB, free: 84.64 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008917/0.269, allocations: 0.8742 MB / 358.4 MB, free: 84.55 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.307e-05/0.269, allocations: 19.05 kB / 358.5 MB, free: 84.55 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002839/0.2693, allocations: 114.6 kB / 358.6 MB, free: 84.55 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003078/0.2696, allocations: 219.5 kB / 358.8 MB, free: 84.47 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.919e-05/0.2697, allocations: 25.83 kB / 358.8 MB, free: 84.47 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003119/0.2728, allocations: 11.82 MB / 370.6 MB, free: 73.25 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.2728, allocations: 7.438 kB / 370.6 MB, free: 73.25 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001116/0.2739, allocations: 1.039 MB / 371.7 MB, free: 73.05 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004378/0.2744, allocations: 383.9 kB / 372.1 MB, free: 73.04 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001814/0.2745, allocations: 18.31 kB / 372.1 MB, free: 73.04 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000375/0.2749, allocations: 53.75 kB / 372.1 MB, free: 73.04 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002481/0.2752, allocations: 122.8 kB / 372.2 MB, free: 73.04 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.696e-05/0.2752, allocations: 24.72 kB / 372.3 MB, free: 73.04 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0008109/0.276, allocations: 1.314 MB / 373.6 MB, free: 72.91 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.7e-07/0.276, allocations: 0 / 373.6 MB, free: 72.91 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001073/0.2771, allocations: 0.6667 MB / 374.3 MB, free: 72.91 MB / 330.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.0009507/0.278, allocations: 0.9778 MB / 375.2 MB, free: 72.82 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001061/0.2791, allocations: 1.733 MB / 377 MB, free: 71.55 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.29e-05/0.2791, allocations: 36.22 kB / 377 MB, free: 71.55 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006473/0.2798, allocations: 1.514 MB / 378.5 MB, free: 70.3 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008972/0.2807, allocations: 0.5305 MB / 379 MB, free: 70.21 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003436/0.2841, allocations: 4.168 MB / 383.2 MB, free: 67.24 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002577/0.2844, allocations: 407.5 kB / 383.6 MB, free: 66.95 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0006225/0.285, allocations: 392.3 kB / 384 MB, free: 66.66 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007528/0.2857, allocations: 0.601 MB / 384.6 MB, free: 66.16 MB / 330.7 MB Notification: Performance of SimCode: time 8.11e-07/0.2857, allocations: 0 / 384.6 MB, free: 66.16 MB / 330.7 MB Notification: Performance of Templates: time 0.04131/0.3271, allocations: 44.4 MB / 429 MB, free: 22.71 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.sim & ./Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.7398576573468745]