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.001927/0.001927, allocations: 123.4 kB / 17.79 MB, free: 5.227 MB / 14.72 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.002453/0.002453, allocations: 208.3 kB / 20.75 MB, free: 2.273 MB / 14.72 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 1.529/1.529, allocations: 230.6 MB / 254.1 MB, free: 15.08 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001646/0.001646, allocations: 47.92 kB / 373.5 MB, free: 9.727 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09748/0.09913, allocations: 53.33 MB / 426.8 MB, free: 4.305 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.1895/0.2886, allocations: 14.24 MB / 441 MB, free: 2.82 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02661/0.3152, allocations: 20.4 MB / 461.4 MB, free: 4.332 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002764/0.318, allocations: 191.9 kB / 461.6 MB, free: 4.195 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00356/0.3215, allocations: 1.134 MB / 462.7 MB, free: 3.598 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008939/0.3305, allocations: 2.304 MB / 465.1 MB, free: 2.191 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005324/0.3358, allocations: 1.443 MB / 466.5 MB, free: 1.441 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01118/0.347, allocations: 6.524 MB / 473 MB, free: 14.45 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006093/0.3476, allocations: 252.6 kB / 473.3 MB, free: 14.28 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001972/0.3496, allocations: 1.14 MB / 474.4 MB, free: 13.74 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00154/0.3511, allocations: 1.082 MB / 475.5 MB, free: 13.11 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001902/0.3513, allocations: 75.09 kB / 475.6 MB, free: 13.11 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004554/0.3558, allocations: 1.485 MB / 477 MB, free: 12.48 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003701/0.3562, allocations: 315.4 kB / 477.4 MB, free: 12.23 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001598/0.3578, allocations: 1.321 MB / 478.7 MB, free: 11.36 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005631/0.3634, allocations: 3.708 MB / 482.4 MB, free: 8.844 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.027e-06/0.3634, allocations: 0 / 482.4 MB, free: 8.844 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.3634, allocations: 0 / 482.4 MB, free: 8.844 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.672e-05/0.3635, allocations: 0 / 482.4 MB, free: 8.844 MB / 382.1 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.00592/0.3694, allocations: 3.689 MB / 486.1 MB, free: 5.074 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.495e-05/0.3694, allocations: 11.97 kB / 486.1 MB, free: 5.062 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004823/0.3699, allocations: 393.5 kB / 486.5 MB, free: 4.676 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003885/0.3738, allocations: 2.563 MB / 489 MB, free: 2.039 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.328e-05/0.3739, allocations: 33 kB / 489.1 MB, free: 2.008 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001389/0.374, allocations: 51.98 kB / 489.1 MB, free: 1.957 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001659/0.3757, allocations: 0.7538 MB / 489.9 MB, free: 1.199 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.468e-05/0.3757, allocations: 7.938 kB / 489.9 MB, free: 1.191 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.765e-05/0.3757, allocations: 16 kB / 489.9 MB, free: 1.176 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.439e-05/0.3758, allocations: 19.98 kB / 489.9 MB, free: 1.156 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002025/0.3778, allocations: 0.8514 MB / 490.8 MB, free: 308 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005542/0.3833, allocations: 2.982 MB / 493.7 MB, free: 13.25 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001933/0.3853, allocations: 0.7196 MB / 494.5 MB, free: 12.52 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001581/0.3869, allocations: 0.8589 MB / 495.3 MB, free: 11.66 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03747/0.4243, allocations: 30.69 MB / 0.5137 GB, free: 8.727 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001346/0.4257, allocations: 0.6035 MB / 0.5143 GB, free: 8.113 MB / 430.1 MB Notification: Performance of pre-optimization done (n=96): time 3.145e-06/0.4257, allocations: 0 / 0.5143 GB, free: 8.113 MB / 430.1 MB Notification: Performance of matching and sorting (n=99): time 0.01415/0.4398, allocations: 5.263 MB / 0.5194 GB, free: 2.605 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.295e-05/0.4399, allocations: 80.33 kB / 0.5195 GB, free: 2.516 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003728/0.4436, allocations: 2.692 MB / 0.5221 GB, free: 15.81 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000117/0.4437, allocations: 45.69 kB / 0.5222 GB, free: 15.76 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001287/0.445, allocations: 1.304 MB / 0.5234 GB, free: 14.45 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003459/0.4454, allocations: 353 kB / 0.5238 GB, free: 14.1 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004052/0.4458, allocations: 230.4 kB / 0.524 GB, free: 13.87 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001741/0.4459, allocations: 349.9 kB / 0.5243 GB, free: 13.52 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001439/0.4474, allocations: 474 kB / 0.5248 GB, free: 13.05 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001573/0.4489, allocations: 0.6431 MB / 0.5254 GB, free: 12.35 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002993/0.4519, allocations: 1.137 MB / 0.5265 GB, free: 11.15 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.197e-06/0.4519, allocations: 0 / 0.5265 GB, free: 11.15 MB / 446.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.004699/0.4566, allocations: 1.983 MB / 0.5285 GB, free: 9.094 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.641e-05/0.4567, allocations: 11.94 kB / 0.5285 GB, free: 9.082 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001883/0.4569, allocations: 124 kB / 0.5286 GB, free: 8.961 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000798/0.4577, allocations: 264.8 kB / 0.5288 GB, free: 8.672 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009792/0.4586, allocations: 195.7 kB / 0.529 GB, free: 8.48 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01219/0.4708, allocations: 14.24 MB / 0.5429 GB, free: 8.863 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001782/0.4726, allocations: 91.95 kB / 0.543 GB, free: 8.773 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000137/0.4727, allocations: 56 kB / 0.5431 GB, free: 8.719 MB / 462.1 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.0008736/0.4736, allocations: 429.5 kB / 0.5435 GB, free: 8.289 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005143/0.4741, allocations: 385.6 kB / 0.5438 GB, free: 7.91 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005595/0.4797, allocations: 2.223 MB / 0.546 GB, free: 5.609 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.356e-05/0.4797, allocations: 12 kB / 0.546 GB, free: 5.598 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.738e-06/0.4798, allocations: 7.984 kB / 0.546 GB, free: 5.59 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.187e-06/0.4798, allocations: 3.984 kB / 0.546 GB, free: 5.586 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002357/0.4821, allocations: 1.539 MB / 0.5475 GB, free: 3.996 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001588/0.4823, allocations: 112 kB / 0.5476 GB, free: 3.887 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007976/0.4831, allocations: 135.8 kB / 0.5478 GB, free: 3.754 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007473/0.4838, allocations: 268.3 kB / 0.548 GB, free: 3.461 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000105/0.4839, allocations: 43.98 kB / 0.5481 GB, free: 3.418 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01209/0.496, allocations: 14.25 MB / 0.562 GB, free: 3.773 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.496, allocations: 0 / 0.562 GB, free: 3.773 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006473/0.5025, allocations: 2.561 MB / 0.5645 GB, free: 1.125 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001118/0.5036, allocations: 0.5024 MB / 0.565 GB, free: 0.6016 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003294/0.5039, allocations: 19.98 kB / 0.565 GB, free: 0.582 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001065/0.505, allocations: 83.89 kB / 0.5651 GB, free: 0.5 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000391/0.5054, allocations: 136.8 kB / 0.5652 GB, free: 372 kB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001159/0.5055, allocations: 51.97 kB / 0.5653 GB, free: 320 kB / 478.1 MB Notification: Performance of sorting global known variables: time 0.002792/0.5083, allocations: 1.77 MB / 0.567 GB, free: 14.53 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.5083, allocations: 0 / 0.567 GB, free: 14.53 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.001938/0.5102, allocations: 0.6556 MB / 0.5676 GB, free: 13.88 MB / 494.1 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.001483/0.5117, allocations: 0.8195 MB / 0.5684 GB, free: 13.05 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.004937/0.5167, allocations: 2.444 MB / 0.5708 GB, free: 10.45 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.5167, allocations: 4.188 kB / 0.5708 GB, free: 10.45 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003122/0.5198, allocations: 1.901 MB / 0.5727 GB, free: 8.391 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002999/0.5228, allocations: 0.6227 MB / 0.5733 GB, free: 7.762 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00807/0.5309, allocations: 4.759 MB / 0.5779 GB, free: 2.965 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001486/0.5323, allocations: 1.666 MB / 0.5796 GB, free: 1.273 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.001323/0.5337, allocations: 387.4 kB / 0.5799 GB, free: 0.8906 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003471/0.534, allocations: 163.4 kB / 0.5801 GB, free: 0.7305 MB / 494.1 MB Notification: Performance of SimCode: time 8.22e-07/0.534, allocations: 0 / 0.5801 GB, free: 0.7305 MB / 494.1 MB Notification: Performance of Templates: time 0.2582/0.7922, allocations: 37.47 MB / 0.6167 GB, free: 170 MB / 0.5137 GB " [Timeout remaining time 659] 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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 6.602230492979288]