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.0008995/0.0008995, allocations: 84 kB / 21.43 MB, free: 3.129 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.004637/0.004637, allocations: 145.8 kB / 24.68 MB, free: 9.426 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.8479/0.8479, allocations: 173.4 MB / 201.2 MB, free: 9.434 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.312e-06/1.312e-06, allocations: 0 / 319.7 MB, free: 5.871 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.471e-05/1.602e-05, allocations: 6.281 kB / 319.7 MB, free: 5.863 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.007446/0.007462, allocations: 11.98 MB / 331.7 MB, free: 9.824 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01411/0.02157, allocations: 17.54 MB / 349.2 MB, free: 8.211 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000853/0.02243, allocations: 189.9 kB / 349.4 MB, free: 8.023 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001409/0.02384, allocations: 1.032 MB / 350.4 MB, free: 6.984 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002995/0.02683, allocations: 2.401 MB / 352.8 MB, free: 4.562 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001702/0.02853, allocations: 1.449 MB / 354.3 MB, free: 3.109 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.004731/0.03326, allocations: 6.632 MB / 360.9 MB, free: 12.45 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003108/0.03358, allocations: 241 kB / 361.1 MB, free: 12.18 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009743/0.03455, allocations: 1.535 MB / 362.7 MB, free: 10.64 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008418/0.03539, allocations: 0.7823 MB / 363.4 MB, free: 9.859 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 8.945e-05/0.03548, allocations: 76 kB / 363.5 MB, free: 9.785 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001487/0.03697, allocations: 1.206 MB / 364.7 MB, free: 8.578 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000156/0.03712, allocations: 325.7 kB / 365 MB, free: 8.258 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004475/0.03757, allocations: 0.7164 MB / 365.8 MB, free: 7.539 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002364/0.03994, allocations: 3.682 MB / 369.4 MB, free: 3.844 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.03994, allocations: 0 / 369.4 MB, free: 3.844 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.293e-06/0.03994, allocations: 0 / 369.4 MB, free: 3.844 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.933e-05/0.03996, allocations: 0 / 369.4 MB, free: 3.844 MB / 330.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.002924/0.04288, allocations: 3.582 MB / 373 MB, free: 212 kB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.194e-05/0.04293, allocations: 8.922 kB / 373 MB, free: 204 kB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002517/0.04318, allocations: 397.7 kB / 373.4 MB, free: 15.8 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002128/0.0453, allocations: 2.371 MB / 375.8 MB, free: 13.34 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.284e-05/0.04533, allocations: 33 kB / 375.8 MB, free: 13.3 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.096e-05/0.04541, allocations: 55.7 kB / 375.9 MB, free: 13.25 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008446/0.04625, allocations: 0.7694 MB / 376.7 MB, free: 12.47 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.331e-05/0.04627, allocations: 0 / 376.7 MB, free: 12.47 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.626e-05/0.04631, allocations: 19.98 kB / 376.7 MB, free: 12.45 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.489e-05/0.04633, allocations: 19.98 kB / 376.7 MB, free: 12.43 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001222/0.04755, allocations: 0.8553 MB / 377.5 MB, free: 11.58 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003206/0.05076, allocations: 2.659 MB / 380.2 MB, free: 8.875 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001055/0.05181, allocations: 0.7247 MB / 380.9 MB, free: 8.141 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008901/0.0527, allocations: 0.872 MB / 381.8 MB, free: 7.266 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01458/0.06728, allocations: 13.64 MB / 395.4 MB, free: 9.246 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007291/0.06801, allocations: 0.5919 MB / 396 MB, free: 8.641 MB / 362.7 MB Notification: Performance of pre-optimization done (n=96): time 2.374e-06/0.06802, allocations: 0 / 396 MB, free: 8.641 MB / 362.7 MB Notification: Performance of matching and sorting (n=99): time 0.006523/0.07454, allocations: 4.521 MB / 400.6 MB, free: 4.059 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.893e-05/0.07459, allocations: 72.33 kB / 400.6 MB, free: 3.973 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002265/0.07685, allocations: 2.696 MB / 403.3 MB, free: 1.262 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.948e-05/0.07691, allocations: 45.69 kB / 403.4 MB, free: 1.211 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007483/0.07766, allocations: 1.316 MB / 404.7 MB, free: 15.89 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002006/0.07786, allocations: 345 kB / 405 MB, free: 15.55 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002238/0.07808, allocations: 230.4 kB / 405.2 MB, free: 15.32 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.739e-05/0.07817, allocations: 349.9 kB / 405.6 MB, free: 14.97 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000678/0.07885, allocations: 474 kB / 406 MB, free: 14.51 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007517/0.0796, allocations: 0.6508 MB / 406.7 MB, free: 13.79 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001391/0.08099, allocations: 1.133 MB / 407.8 MB, free: 12.59 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.467e-06/0.081, allocations: 0 / 407.8 MB, free: 12.59 MB / 378.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002277/0.08327, allocations: 1.831 MB / 409.7 MB, free: 10.73 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.068e-05/0.08329, allocations: 8 kB / 409.7 MB, free: 10.72 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.028e-05/0.08339, allocations: 116 kB / 409.8 MB, free: 10.61 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004173/0.0838, allocations: 276.9 kB / 410.1 MB, free: 10.3 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004286/0.08423, allocations: 203.6 kB / 410.2 MB, free: 10.11 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005815/0.09005, allocations: 12.97 MB / 423.2 MB, free: 12.12 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001036/0.09108, allocations: 87.89 kB / 423.3 MB, free: 12.04 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.363e-05/0.09118, allocations: 59.94 kB / 423.4 MB, free: 11.98 MB / 394.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.0006961/0.09187, allocations: 424.7 kB / 423.8 MB, free: 11.55 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000283/0.09215, allocations: 393.5 kB / 424.2 MB, free: 11.17 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002738/0.09489, allocations: 2.056 MB / 426.2 MB, free: 9.062 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.543e-06/0.0949, allocations: 8 kB / 426.2 MB, free: 9.055 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.703e-06/0.09491, allocations: 4 kB / 426.2 MB, free: 9.051 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.785e-06/0.09491, allocations: 7.984 kB / 426.2 MB, free: 9.043 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001287/0.0962, allocations: 1.297 MB / 427.5 MB, free: 7.719 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.625e-05/0.09629, allocations: 116 kB / 427.6 MB, free: 7.605 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003411/0.09663, allocations: 135.8 kB / 427.8 MB, free: 7.473 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000364/0.09699, allocations: 264.3 kB / 428 MB, free: 7.184 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.994e-05/0.09705, allocations: 47.92 kB / 428.1 MB, free: 7.137 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00549/0.1025, allocations: 12.96 MB / 441 MB, free: 9.148 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.1025, allocations: 11.97 kB / 441.1 MB, free: 9.137 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003129/0.1057, allocations: 2.399 MB / 443.5 MB, free: 6.684 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007503/0.1064, allocations: 435.3 kB / 443.9 MB, free: 6.258 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001678/0.1066, allocations: 20 kB / 443.9 MB, free: 6.238 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004827/0.1071, allocations: 83.89 kB / 444 MB, free: 6.156 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002703/0.1073, allocations: 144.8 kB / 444.1 MB, free: 6.016 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.604e-05/0.1074, allocations: 43.98 kB / 444.2 MB, free: 5.973 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001781/0.1092, allocations: 1.778 MB / 445.9 MB, free: 4.188 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.31e-07/0.1092, allocations: 0 / 445.9 MB, free: 4.188 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001141/0.1103, allocations: 0.6479 MB / 446.6 MB, free: 3.539 MB / 410.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.0009474/0.1113, allocations: 0.8641 MB / 447.5 MB, free: 2.672 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002394/0.1137, allocations: 2.456 MB / 449.9 MB, free: 60 kB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.288e-06/0.1137, allocations: 0 / 449.9 MB, free: 60 kB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.1272/0.2409, allocations: 1.89 MB / 451.8 MB, free: 122.1 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001944/0.2429, allocations: 0.6211 MB / 452.4 MB, free: 122.1 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004365/0.2472, allocations: 4.607 MB / 457 MB, free: 120.2 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005435/0.2478, allocations: 1.101 MB / 458.1 MB, free: 120 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002236/0.248, allocations: 170.7 kB / 458.3 MB, free: 120 MB / 410.7 MB Notification: Performance of SimCode: time 1.283e-06/0.248, allocations: 4 kB / 458.3 MB, free: 120 MB / 410.7 MB Notification: Performance of Templates: time 0.06922/0.3172, allocations: 155.8 MB / 0.5997 GB, free: 14.36 MB / 458.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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.842884617857635]