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.001055/0.001055, allocations: 81.05 kB / 10.02 MB, free: 0.6719 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001932/0.002988, allocations: 453.8 kB / 10.46 MB, free: 236 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.001147/0.001147, allocations: 165.1 kB / 11.36 MB, free: 2.812 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001505/0.002652, allocations: 483.5 kB / 11.83 MB, free: 2.336 MB / 13.93 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.8882/0.8882, allocations: 158.6 MB / 171.2 MB, free: 2.516 MB / 170.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1375/1.026, allocations: 49.5 MB / 220.7 MB, free: 1.348 MB / 218.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.292e-06/1.292e-06, allocations: 0 / 222 MB, free: 68 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.089e-05/2.218e-05, allocations: 6.109 kB / 222 MB, free: 64 kB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.009272/0.009294, allocations: 12.65 MB / 234.6 MB, free: 3.352 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.01773/0.02703, allocations: 18.57 MB / 253.2 MB, free: 0.6992 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002077/0.0291, allocations: 197.8 kB / 253.4 MB, free: 0.5039 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002194/0.0313, allocations: 1.057 MB / 254.5 MB, free: 15.44 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006403/0.0377, allocations: 2.32 MB / 256.8 MB, free: 13.1 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004076/0.04178, allocations: 1.364 MB / 258.1 MB, free: 11.73 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.006647/0.04842, allocations: 6.443 MB / 264.6 MB, free: 5.27 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005643/0.04899, allocations: 273.8 kB / 264.9 MB, free: 4.957 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003008/0.052, allocations: 3.203 MB / 268.1 MB, free: 1.664 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008596/0.05286, allocations: 0.7865 MB / 268.8 MB, free: 0.875 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001598/0.05302, allocations: 72 kB / 268.9 MB, free: 0.8047 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002539/0.05556, allocations: 1.148 MB / 270.1 MB, free: 15.66 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001772/0.05573, allocations: 261.8 kB / 270.3 MB, free: 15.4 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006/0.05633, allocations: 0.6581 MB / 271 MB, free: 14.74 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002476/0.05881, allocations: 2.595 MB / 273.6 MB, free: 12.13 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.621e-05/0.05882, allocations: 0 / 273.6 MB, free: 12.13 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.05883, allocations: 0 / 273.6 MB, free: 12.13 MB / 282.7 MB Notification: Performance of Transformations before backend: time 9.012e-05/0.05892, allocations: 0 / 273.6 MB, free: 12.13 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.003501/0.06242, allocations: 4.226 MB / 277.8 MB, free: 7.836 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.135e-05/0.06246, allocations: 12.03 kB / 277.8 MB, free: 7.824 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003042/0.06276, allocations: 275.7 kB / 278.1 MB, free: 7.555 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002038/0.0648, allocations: 2.134 MB / 280.2 MB, free: 5.305 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.202e-05/0.06482, allocations: 33 kB / 280.2 MB, free: 5.273 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.018e-05/0.0649, allocations: 55.95 kB / 280.3 MB, free: 5.219 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005435/0.06545, allocations: 487.4 kB / 280.8 MB, free: 4.727 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.345e-05/0.06546, allocations: 0 / 280.8 MB, free: 4.727 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.039e-05/0.0655, allocations: 20 kB / 280.8 MB, free: 4.707 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.524e-05/0.06552, allocations: 19.98 kB / 280.8 MB, free: 4.688 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003205/0.06584, allocations: 215.8 kB / 281 MB, free: 4.477 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001889/0.06773, allocations: 1.45 MB / 282.5 MB, free: 3.004 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000423/0.06815, allocations: 394.7 kB / 282.9 MB, free: 2.613 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000447/0.0686, allocations: 0.5125 MB / 283.4 MB, free: 2.102 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1384/0.207, allocations: 22.89 MB / 306.3 MB, free: 34.03 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003768/0.2074, allocations: 356.2 kB / 306.6 MB, free: 33.82 MB / 282.7 MB Notification: Performance of pre-optimization done (n=96): time 3.216e-06/0.2074, allocations: 4.406 kB / 306.6 MB, free: 33.82 MB / 282.7 MB Notification: Performance of matching and sorting (n=99): time 0.003407/0.2108, allocations: 2.266 MB / 308.9 MB, free: 32.06 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.238e-05/0.2109, allocations: 68.41 kB / 308.9 MB, free: 31.98 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001298/0.2122, allocations: 2.435 MB / 311.4 MB, free: 30.38 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 5.076e-05/0.2122, allocations: 45.69 kB / 311.4 MB, free: 30.32 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002842/0.2125, allocations: 0.598 MB / 312 MB, free: 29.93 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001413/0.2126, allocations: 354.4 kB / 312.4 MB, free: 29.72 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001617/0.2128, allocations: 195.7 kB / 312.6 MB, free: 29.54 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 4.793e-05/0.2128, allocations: 355.6 kB / 312.9 MB, free: 29.21 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001348/0.213, allocations: 114.3 kB / 313 MB, free: 29.09 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001852/0.2132, allocations: 308.8 kB / 313.3 MB, free: 28.75 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003859/0.2136, allocations: 0.5291 MB / 313.9 MB, free: 28.2 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/0.2136, allocations: 4 kB / 313.9 MB, free: 28.2 MB / 282.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.0008211/0.2144, allocations: 0.8839 MB / 314.7 MB, free: 27.32 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.747e-05/0.2144, allocations: 8 kB / 314.7 MB, free: 27.32 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.128e-05/0.2145, allocations: 23.98 kB / 314.8 MB, free: 27.29 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003043/0.2148, allocations: 211.2 kB / 315 MB, free: 27.07 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003676/0.2151, allocations: 201.2 kB / 315.2 MB, free: 26.88 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003432/0.2186, allocations: 11.78 MB / 327 MB, free: 14.39 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009071/0.2195, allocations: 59.95 kB / 327 MB, free: 14.34 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000105/0.2196, allocations: 34.64 kB / 327 MB, free: 14.3 MB / 282.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.0003477/0.2199, allocations: 177.8 kB / 327.2 MB, free: 14.14 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002763/0.2202, allocations: 259.7 kB / 327.5 MB, free: 13.88 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001341/0.2215, allocations: 1.191 MB / 328.7 MB, free: 12.66 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.45e-06/0.2216, allocations: 12 kB / 328.7 MB, free: 12.65 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.2216, allocations: 5.75 kB / 328.7 MB, free: 12.64 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.72e-06/0.2216, allocations: 3.984 kB / 328.7 MB, free: 12.64 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008004/0.2224, allocations: 0.8702 MB / 329.6 MB, free: 11.94 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.242e-05/0.2224, allocations: 23.94 kB / 329.6 MB, free: 11.92 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002873/0.2227, allocations: 123.4 kB / 329.7 MB, free: 11.8 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004204/0.2231, allocations: 380 kB / 330.1 MB, free: 11.43 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003033/0.2234, allocations: 227.6 kB / 330.3 MB, free: 11.19 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.271e-05/0.2235, allocations: 19.98 kB / 330.3 MB, free: 11.17 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002888/0.2264, allocations: 11.78 MB / 342.1 MB, free: 14.65 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.317e-06/0.2264, allocations: 4 kB / 342.1 MB, free: 14.65 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001294/0.2277, allocations: 1.063 MB / 343.2 MB, free: 13.58 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002212/0.2279, allocations: 23.94 kB / 343.2 MB, free: 13.55 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004122/0.2283, allocations: 51.94 kB / 343.2 MB, free: 13.5 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002381/0.2285, allocations: 118.8 kB / 343.4 MB, free: 13.39 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.567e-05/0.2286, allocations: 27.27 kB / 343.4 MB, free: 13.37 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000965/0.2296, allocations: 1.313 MB / 344.7 MB, free: 12.21 MB / 298.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2296, allocations: 0 / 344.7 MB, free: 12.21 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001223/0.2308, allocations: 0.6596 MB / 345.4 MB, free: 11.55 MB / 298.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.001155/0.2319, allocations: 0.9831 MB / 346.3 MB, free: 10.72 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001711/0.2336, allocations: 1.746 MB / 348.1 MB, free: 8.871 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.791e-05/0.2337, allocations: 40 kB / 348.1 MB, free: 8.832 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001271/0.235, allocations: 1.543 MB / 349.7 MB, free: 7.164 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003688/0.2387, allocations: 5.812 MB / 355.5 MB, free: 244 kB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007165/0.2458, allocations: 4.133 MB / 359.6 MB, free: 12.08 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003153/0.2461, allocations: 414.5 kB / 360 MB, free: 11.65 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0007601/0.2469, allocations: 391.4 kB / 360.4 MB, free: 11.27 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009476/0.2478, allocations: 0.6045 MB / 361 MB, free: 10.67 MB / 314.7 MB Notification: Performance of SimCode: time 1.332e-06/0.2478, allocations: 0 / 361 MB, free: 10.67 MB / 314.7 MB Notification: Performance of Templates: time 0.05073/0.2986, allocations: 45.62 MB / 406.6 MB, free: 13.12 MB / 362.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 -emit_protected -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.8838742319494486]