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.0007531/0.0007531, allocations: 76.48 kB / 9.931 MB, free: 0.7617 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001008/0.001761, allocations: 449.7 kB / 10.37 MB, free: 332 kB / 10.45 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.001385/0.001385, allocations: 148.9 kB / 11.24 MB, free: 2.934 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001768/0.003153, allocations: 459.6 kB / 11.69 MB, free: 2.48 MB / 13.93 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.9461/0.9461, allocations: 173.4 MB / 185.8 MB, free: 8.984 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08509/1.031, allocations: 52.49 MB / 238.3 MB, free: 4.434 MB / 234.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.353e-06/1.353e-06, allocations: 0 / 239.5 MB, free: 3.195 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.755e-05/1.891e-05, allocations: 2.875 kB / 239.5 MB, free: 3.191 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.008794/0.008813, allocations: 13.3 MB / 252.8 MB, free: 5.84 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01857/0.02738, allocations: 19.52 MB / 272.3 MB, free: 2.25 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002445/0.02982, allocations: 193.8 kB / 272.5 MB, free: 2.059 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002165/0.03199, allocations: 1.076 MB / 273.6 MB, free: 0.9727 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.1166/0.1486, allocations: 2.353 MB / 276 MB, free: 2.191 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003513/0.1521, allocations: 1.406 MB / 277.4 MB, free: 2.008 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.007476/0.1595, allocations: 6.564 MB / 283.9 MB, free: 0.7578 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005347/0.1601, allocations: 284.6 kB / 284.2 MB, free: 0.6016 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003665/0.1637, allocations: 3.34 MB / 287.6 MB, free: 56 kB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001055/0.1648, allocations: 0.8098 MB / 288.4 MB, free: 15.89 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001154/0.1649, allocations: 79.03 kB / 288.4 MB, free: 15.89 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003011/0.1679, allocations: 1.261 MB / 289.7 MB, free: 15.84 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002241/0.1682, allocations: 261 kB / 290 MB, free: 15.71 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008332/0.169, allocations: 0.6545 MB / 290.6 MB, free: 15.58 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003364/0.1724, allocations: 2.578 MB / 293.2 MB, free: 15.05 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.121e-05/0.1724, allocations: 0 / 293.2 MB, free: 15.05 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1724, allocations: 0 / 293.2 MB, free: 15.05 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.853e-05/0.1724, allocations: 0 / 293.2 MB, free: 15.05 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.003498/0.1759, allocations: 4.201 MB / 297.4 MB, free: 12.39 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.59e-05/0.176, allocations: 8.031 kB / 297.4 MB, free: 12.38 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002828/0.1762, allocations: 275.6 kB / 297.7 MB, free: 12.21 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002287/0.1785, allocations: 2.126 MB / 299.8 MB, free: 10.41 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.058e-05/0.1786, allocations: 35.94 kB / 299.8 MB, free: 10.39 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.279e-05/0.1787, allocations: 54.73 kB / 299.9 MB, free: 10.35 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005625/0.1792, allocations: 480 kB / 300.3 MB, free: 10.09 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.156e-05/0.1792, allocations: 0 / 300.3 MB, free: 10.09 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.024e-05/0.1793, allocations: 21.03 kB / 300.4 MB, free: 10.09 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.019e-05/0.1793, allocations: 21.86 kB / 300.4 MB, free: 10.07 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003237/0.1796, allocations: 212.5 kB / 300.6 MB, free: 9.902 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002093/0.1817, allocations: 1.456 MB / 302.1 MB, free: 8.922 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004072/0.1821, allocations: 384.2 kB / 302.4 MB, free: 8.629 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004385/0.1825, allocations: 0.5168 MB / 302.9 MB, free: 8.176 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02378/0.2063, allocations: 22.77 MB / 325.7 MB, free: 1.523 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004119/0.2067, allocations: 355.2 kB / 326.1 MB, free: 1.184 MB / 298.7 MB Notification: Performance of pre-optimization done (n=96): time 2.786e-06/0.2067, allocations: 0 / 326.1 MB, free: 1.184 MB / 298.7 MB Notification: Performance of matching and sorting (n=99): time 0.003969/0.2107, allocations: 2.241 MB / 328.3 MB, free: 14.92 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.983e-05/0.2107, allocations: 75.86 kB / 328.4 MB, free: 14.84 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001523/0.2123, allocations: 2.421 MB / 330.8 MB, free: 12.9 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.932e-05/0.2123, allocations: 41.7 kB / 330.8 MB, free: 12.86 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002926/0.2126, allocations: 0.5932 MB / 331.4 MB, free: 12.41 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001827/0.2128, allocations: 352.5 kB / 331.8 MB, free: 12.09 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001857/0.213, allocations: 199.1 kB / 332 MB, free: 11.91 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.045e-05/0.2131, allocations: 351.3 kB / 332.3 MB, free: 11.58 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001585/0.2132, allocations: 110.3 kB / 332.4 MB, free: 11.47 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002255/0.2135, allocations: 305.9 kB / 332.7 MB, free: 11.14 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004123/0.2139, allocations: 0.5198 MB / 333.2 MB, free: 10.59 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.2139, allocations: 0 / 333.2 MB, free: 10.59 MB / 314.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.0009764/0.2148, allocations: 0.8889 MB / 334.1 MB, free: 9.719 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.812e-05/0.2149, allocations: 12.47 kB / 334.1 MB, free: 9.707 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.718e-05/0.2149, allocations: 24 kB / 334.2 MB, free: 9.684 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003314/0.2153, allocations: 213.3 kB / 334.4 MB, free: 9.457 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003959/0.2157, allocations: 199.2 kB / 334.6 MB, free: 9.27 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004589/0.2203, allocations: 11.83 MB / 346.4 MB, free: 12.73 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009172/0.2212, allocations: 67.94 kB / 346.5 MB, free: 12.67 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.38e-05/0.2213, allocations: 28 kB / 346.5 MB, free: 12.64 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.000364/0.2216, allocations: 168.7 kB / 346.7 MB, free: 12.48 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002571/0.2219, allocations: 259.7 kB / 346.9 MB, free: 12.22 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0015/0.2234, allocations: 1.201 MB / 348.1 MB, free: 11 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.223e-06/0.2234, allocations: 8 kB / 348.1 MB, free: 10.99 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.299e-06/0.2234, allocations: 4 kB / 348.1 MB, free: 10.98 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.981e-06/0.2234, allocations: 3.984 kB / 348.1 MB, free: 10.98 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009125/0.2243, allocations: 0.8718 MB / 349 MB, free: 10.28 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.802e-05/0.2244, allocations: 15.98 kB / 349 MB, free: 10.27 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002789/0.2246, allocations: 119.6 kB / 349.1 MB, free: 10.15 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004285/0.2251, allocations: 385.4 kB / 349.5 MB, free: 9.773 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002992/0.2254, allocations: 214.9 kB / 349.7 MB, free: 9.543 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.027e-05/0.2254, allocations: 19.98 kB / 349.7 MB, free: 9.523 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004311/0.2297, allocations: 11.82 MB / 361.6 MB, free: 12.97 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.306e-06/0.2297, allocations: 4.031 kB / 361.6 MB, free: 12.96 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001286/0.231, allocations: 1.049 MB / 362.6 MB, free: 11.9 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003/0.2313, allocations: 19.98 kB / 362.6 MB, free: 11.88 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004053/0.2317, allocations: 51.95 kB / 362.7 MB, free: 11.83 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002074/0.2319, allocations: 120.8 kB / 362.8 MB, free: 11.71 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.748e-05/0.232, allocations: 23.98 kB / 362.8 MB, free: 11.69 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0008472/0.2328, allocations: 1.309 MB / 364.1 MB, free: 10.54 MB / 346.7 MB Notification: Performance of sort global known variables: time 6e-08/0.2328, allocations: 0 / 364.1 MB, free: 10.54 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001154/0.234, allocations: 0.6705 MB / 364.8 MB, free: 9.871 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.0009601/0.2349, allocations: 0.9622 MB / 365.8 MB, free: 9.059 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001344/0.2363, allocations: 1.729 MB / 367.5 MB, free: 7.215 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.593e-05/0.2363, allocations: 40.94 kB / 367.5 MB, free: 7.176 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008251/0.2371, allocations: 1.517 MB / 369 MB, free: 5.527 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001391/0.2385, allocations: 0.8831 MB / 369.9 MB, free: 4.641 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006933/0.2455, allocations: 4.092 MB / 374 MB, free: 0.5156 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002793/0.2457, allocations: 408.9 kB / 374.4 MB, free: 96 kB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0007936/0.2465, allocations: 391.4 kB / 374.8 MB, free: 15.71 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008349/0.2474, allocations: 0.6066 MB / 375.4 MB, free: 15.09 MB / 362.7 MB Notification: Performance of SimCode: time 1.713e-06/0.2474, allocations: 3.188 kB / 375.4 MB, free: 15.09 MB / 362.7 MB Notification: Performance of Templates: time 0.04912/0.2965, allocations: 45.51 MB / 420.9 MB, free: 2.227 MB / 394.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 -ignoreHideResult -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.673974184319377]