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.0007482/0.0007482, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009868/0.001735, allocations: 449.7 kB / 10.37 MB, free: 328 kB / 10.45 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.0006925/0.0006925, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008693/0.001562, allocations: 455.6 kB / 11.71 MB, free: 2.461 MB / 13.93 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.914/0.914, allocations: 177.2 MB / 189.6 MB, free: 5.32 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.07107/0.985, allocations: 53.66 MB / 243.3 MB, free: 15.59 MB / 250.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.543e-06/1.543e-06, allocations: 0 / 244.5 MB, free: 14.35 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.072e-05/1.226e-05, allocations: 2.312 kB / 244.5 MB, free: 14.34 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.009522/0.009534, allocations: 13.32 MB / 257.8 MB, free: 0.9609 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.1173/0.1268, allocations: 19.54 MB / 277.4 MB, free: 0.5664 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001521/0.1284, allocations: 190.9 kB / 277.5 MB, free: 0.5664 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001835/0.1302, allocations: 1.074 MB / 278.6 MB, free: 0.5117 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004634/0.1348, allocations: 2.359 MB / 281 MB, free: 80 kB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003176/0.138, allocations: 1.411 MB / 282.4 MB, free: 15.86 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.006079/0.1441, allocations: 6.644 MB / 289 MB, free: 14.55 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003955/0.1445, allocations: 289.4 kB / 289.3 MB, free: 14.39 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002488/0.147, allocations: 3.414 MB / 292.7 MB, free: 13.84 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005815/0.1476, allocations: 0.8149 MB / 293.5 MB, free: 13.69 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 9.316e-05/0.1476, allocations: 73.84 kB / 293.6 MB, free: 13.69 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001713/0.1494, allocations: 1.274 MB / 294.9 MB, free: 13.63 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001719/0.1495, allocations: 256.3 kB / 295.1 MB, free: 13.5 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004961/0.15, allocations: 0.653 MB / 295.8 MB, free: 13.37 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001875/0.1519, allocations: 2.587 MB / 298.4 MB, free: 11.72 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.466e-05/0.1519, allocations: 0 / 298.4 MB, free: 11.72 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.462e-06/0.1519, allocations: 0 / 298.4 MB, free: 11.72 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.642e-05/0.152, allocations: 0 / 298.4 MB, free: 11.72 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.003054/0.155, allocations: 4.208 MB / 302.6 MB, free: 7.965 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.6e-05/0.155, allocations: 8.031 kB / 302.6 MB, free: 7.957 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002326/0.1553, allocations: 273.9 kB / 302.9 MB, free: 7.715 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001827/0.1571, allocations: 2.115 MB / 305 MB, free: 5.582 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.359e-05/0.1571, allocations: 41 kB / 305 MB, free: 5.539 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.099e-05/0.1572, allocations: 47.95 kB / 305.1 MB, free: 5.492 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005005/0.1577, allocations: 483.4 kB / 305.5 MB, free: 5.008 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.17e-05/0.1577, allocations: 0 / 305.5 MB, free: 5.008 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.712e-05/0.1577, allocations: 19.05 kB / 305.6 MB, free: 4.992 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.762e-05/0.1578, allocations: 27.92 kB / 305.6 MB, free: 4.965 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000308/0.1581, allocations: 211.8 kB / 305.8 MB, free: 4.758 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001762/0.1598, allocations: 1.46 MB / 307.3 MB, free: 3.336 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003765/0.1602, allocations: 380.7 kB / 307.6 MB, free: 2.973 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004283/0.1606, allocations: 0.5139 MB / 308.1 MB, free: 2.473 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02217/0.1828, allocations: 22.8 MB / 330.9 MB, free: 10.98 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003342/0.1831, allocations: 361.3 kB / 331.3 MB, free: 10.63 MB / 314.7 MB Notification: Performance of pre-optimization done (n=96): time 1.844e-06/0.1832, allocations: 0 / 331.3 MB, free: 10.63 MB / 314.7 MB Notification: Performance of matching and sorting (n=99): time 0.003268/0.1864, allocations: 2.227 MB / 333.5 MB, free: 8.379 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.282e-05/0.1865, allocations: 68.41 kB / 333.6 MB, free: 8.297 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00122/0.1877, allocations: 2.426 MB / 336 MB, free: 6.359 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.768e-05/0.1877, allocations: 45.7 kB / 336.1 MB, free: 6.309 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002831/0.188, allocations: 0.6026 MB / 336.7 MB, free: 5.855 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001564/0.1882, allocations: 350.3 kB / 337 MB, free: 5.535 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001721/0.1883, allocations: 196.8 kB / 337.2 MB, free: 5.359 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.291e-05/0.1884, allocations: 348 kB / 337.5 MB, free: 5.035 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001519/0.1886, allocations: 118.3 kB / 337.7 MB, free: 4.922 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004462/0.189, allocations: 302.6 kB / 338 MB, free: 4.586 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004149/0.1894, allocations: 0.514 MB / 338.5 MB, free: 4.051 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.454e-06/0.1894, allocations: 4 kB / 338.5 MB, free: 4.047 MB / 314.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.0008492/0.1903, allocations: 0.8792 MB / 339.3 MB, free: 3.176 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.431e-05/0.1903, allocations: 8 kB / 339.4 MB, free: 3.168 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.792e-05/0.1904, allocations: 19.98 kB / 339.4 MB, free: 3.148 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003111/0.1907, allocations: 221.2 kB / 339.6 MB, free: 2.91 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003874/0.191, allocations: 202.3 kB / 339.8 MB, free: 2.723 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004194/0.1952, allocations: 11.83 MB / 351.6 MB, free: 6.129 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004095/0.1957, allocations: 64.05 kB / 351.7 MB, free: 6.066 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.379e-05/0.1957, allocations: 31.98 kB / 351.7 MB, free: 6.035 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.0002604/0.196, allocations: 171 kB / 351.9 MB, free: 5.863 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001828/0.1962, allocations: 263.6 kB / 352.1 MB, free: 5.605 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001634/0.1978, allocations: 1.196 MB / 353.3 MB, free: 4.375 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.95e-06/0.1978, allocations: 8 kB / 353.3 MB, free: 4.367 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/0.1978, allocations: 8 kB / 353.3 MB, free: 4.359 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.701e-06/0.1978, allocations: 3.984 kB / 353.3 MB, free: 4.355 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000736/0.1985, allocations: 0.8795 MB / 354.2 MB, free: 3.648 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.905e-05/0.1986, allocations: 19.98 kB / 354.2 MB, free: 3.629 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002754/0.1989, allocations: 111.9 kB / 354.4 MB, free: 3.52 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000359/0.1992, allocations: 381.4 kB / 354.7 MB, free: 3.141 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000295/0.1995, allocations: 225.4 kB / 354.9 MB, free: 2.895 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.22e-05/0.1996, allocations: 19.98 kB / 355 MB, free: 2.875 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004183/0.2038, allocations: 11.82 MB / 366.8 MB, free: 6.246 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.2038, allocations: 0 / 366.8 MB, free: 6.246 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001282/0.205, allocations: 1.046 MB / 367.8 MB, free: 5.176 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001564/0.2052, allocations: 20 kB / 367.9 MB, free: 5.156 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003514/0.2056, allocations: 55.94 kB / 367.9 MB, free: 5.102 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001893/0.2057, allocations: 120.7 kB / 368 MB, free: 4.984 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.312e-05/0.2058, allocations: 27.98 kB / 368.1 MB, free: 4.957 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.000741/0.2065, allocations: 1.299 MB / 369.4 MB, free: 3.812 MB / 346.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.2065, allocations: 0 / 369.4 MB, free: 3.812 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008484/0.2074, allocations: 0.6635 MB / 370 MB, free: 3.148 MB / 346.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.0008691/0.2082, allocations: 0.9708 MB / 371 MB, free: 2.32 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.00105/0.2093, allocations: 1.725 MB / 372.7 MB, free: 472 kB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.937e-05/0.2093, allocations: 42.66 kB / 372.8 MB, free: 432 kB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009901/0.2103, allocations: 1.516 MB / 374.3 MB, free: 14.76 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001221/0.2115, allocations: 0.8857 MB / 375.2 MB, free: 13.88 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006259/0.2178, allocations: 4.097 MB / 379.3 MB, free: 9.746 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002512/0.218, allocations: 412.9 kB / 379.7 MB, free: 9.324 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0006081/0.2187, allocations: 387.4 kB / 380 MB, free: 8.941 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007662/0.2194, allocations: 0.6045 MB / 380.6 MB, free: 8.328 MB / 362.7 MB Notification: Performance of SimCode: time 5.91e-07/0.2194, allocations: 0 / 380.6 MB, free: 8.328 MB / 362.7 MB Notification: Performance of Templates: time 0.143/0.3624, allocations: 45.56 MB / 426.2 MB, free: 123.7 MB / 394.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 -ignoreHideResult -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.7523733656853437]