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.00119/0.00119, allocations: 68.19 kB / 9.935 MB, free: 0.7539 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00173/0.00292, allocations: 445.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.001147/0.001147, allocations: 161.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001443/0.00259, allocations: 463.6 kB / 11.71 MB, free: 2.453 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.9494/0.9494, allocations: 158.6 MB / 171.1 MB, free: 2.574 MB / 170.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.159/1.108, allocations: 49.49 MB / 220.5 MB, free: 1.449 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.423e-06/1.423e-06, allocations: 0 / 221.8 MB, free: 192 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.023e-05/2.165e-05, allocations: 10.25 kB / 221.8 MB, free: 180 kB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.009493/0.009515, allocations: 12.65 MB / 234.5 MB, free: 3.469 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.02075/0.03026, allocations: 18.58 MB / 253.1 MB, free: 0.8164 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002312/0.03257, allocations: 193.8 kB / 253.2 MB, free: 0.625 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002466/0.03504, allocations: 1.053 MB / 254.3 MB, free: 15.56 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00734/0.04238, allocations: 2.328 MB / 256.6 MB, free: 13.22 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00421/0.04659, allocations: 1.36 MB / 258 MB, free: 11.85 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.008706/0.0553, allocations: 6.427 MB / 264.4 MB, free: 5.402 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006374/0.05593, allocations: 277.8 kB / 264.7 MB, free: 5.09 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003663/0.0596, allocations: 3.211 MB / 267.9 MB, free: 1.789 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00104/0.06064, allocations: 0.7865 MB / 268.7 MB, free: 1 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001452/0.06078, allocations: 76 kB / 268.8 MB, free: 0.9258 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002839/0.06362, allocations: 1.136 MB / 269.9 MB, free: 15.79 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002038/0.06382, allocations: 261.8 kB / 270.1 MB, free: 15.53 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007819/0.06461, allocations: 0.662 MB / 270.8 MB, free: 14.87 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003638/0.06824, allocations: 2.599 MB / 273.4 MB, free: 12.26 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.736e-05/0.06826, allocations: 4 kB / 273.4 MB, free: 12.25 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.382e-06/0.06826, allocations: 0 / 273.4 MB, free: 12.25 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.245e-05/0.06831, allocations: 0 / 273.4 MB, free: 12.25 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.003593/0.07191, allocations: 4.229 MB / 277.6 MB, free: 7.957 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.017e-05/0.07195, allocations: 12.03 kB / 277.7 MB, free: 7.945 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002913/0.07224, allocations: 271.7 kB / 277.9 MB, free: 7.68 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002063/0.0743, allocations: 2.134 MB / 280 MB, free: 5.43 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.474e-05/0.07433, allocations: 37 kB / 280.1 MB, free: 5.395 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.872e-05/0.07441, allocations: 51.95 kB / 280.1 MB, free: 5.344 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005565/0.07496, allocations: 483.4 kB / 280.6 MB, free: 4.855 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.208e-05/0.07497, allocations: 0 / 280.6 MB, free: 4.855 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.001e-05/0.07501, allocations: 23.98 kB / 280.6 MB, free: 4.832 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.822e-05/0.07503, allocations: 23.98 kB / 280.7 MB, free: 4.809 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003303/0.07536, allocations: 215.8 kB / 280.9 MB, free: 4.598 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002375/0.07774, allocations: 1.442 MB / 282.3 MB, free: 3.129 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004324/0.07817, allocations: 398.7 kB / 282.7 MB, free: 2.734 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004437/0.07861, allocations: 0.5164 MB / 283.2 MB, free: 2.219 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1386/0.2172, allocations: 22.88 MB / 306.1 MB, free: 34.2 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003854/0.2176, allocations: 361 kB / 306.5 MB, free: 33.99 MB / 282.7 MB Notification: Performance of pre-optimization done (n=96): time 2.725e-06/0.2176, allocations: 0 / 306.5 MB, free: 33.99 MB / 282.7 MB Notification: Performance of matching and sorting (n=99): time 0.004478/0.2221, allocations: 2.224 MB / 308.7 MB, free: 32.25 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.534e-05/0.2221, allocations: 71.41 kB / 308.7 MB, free: 32.18 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001661/0.2238, allocations: 2.443 MB / 311.2 MB, free: 30.56 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 5.105e-05/0.2238, allocations: 41.7 kB / 311.2 MB, free: 30.52 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002685/0.2241, allocations: 0.5988 MB / 311.8 MB, free: 30.12 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002181/0.2243, allocations: 356.4 kB / 312.2 MB, free: 29.91 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000176/0.2245, allocations: 198 kB / 312.4 MB, free: 29.73 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 5.276e-05/0.2245, allocations: 351 kB / 312.7 MB, free: 29.41 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001395/0.2247, allocations: 118.3 kB / 312.8 MB, free: 29.29 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001939/0.2249, allocations: 304.3 kB / 313.1 MB, free: 28.95 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000368/0.2252, allocations: 0.5131 MB / 313.6 MB, free: 28.41 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.99e-06/0.2252, allocations: 4 kB / 313.6 MB, free: 28.41 MB / 282.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.0009078/0.2262, allocations: 0.8896 MB / 314.5 MB, free: 27.54 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.718e-05/0.2262, allocations: 4 kB / 314.5 MB, free: 27.54 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.621e-05/0.2262, allocations: 21.86 kB / 314.6 MB, free: 27.52 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003309/0.2266, allocations: 220.1 kB / 314.8 MB, free: 27.29 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003839/0.227, allocations: 205.6 kB / 315 MB, free: 27.09 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002997/0.2299, allocations: 11.82 MB / 326.8 MB, free: 14.57 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006956/0.2306, allocations: 64.05 kB / 326.9 MB, free: 14.51 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.228e-05/0.2307, allocations: 28 kB / 326.9 MB, free: 14.48 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.0003317/0.231, allocations: 175.8 kB / 327.1 MB, free: 14.31 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002855/0.2313, allocations: 259.7 kB / 327.3 MB, free: 14.06 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001429/0.2328, allocations: 1.187 MB / 328.5 MB, free: 12.84 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.749e-06/0.2328, allocations: 11.98 kB / 328.5 MB, free: 12.83 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.282e-06/0.2328, allocations: 4 kB / 328.5 MB, free: 12.82 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.061e-06/0.2328, allocations: 10.98 kB / 328.5 MB, free: 12.82 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000847/0.2336, allocations: 0.8712 MB / 329.4 MB, free: 12.12 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.167e-05/0.2337, allocations: 23.92 kB / 329.4 MB, free: 12.1 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000283/0.234, allocations: 120.9 kB / 329.5 MB, free: 11.98 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004221/0.2344, allocations: 377.4 kB / 329.9 MB, free: 11.61 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002919/0.2347, allocations: 225.2 kB / 330.1 MB, free: 11.37 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.038e-05/0.2347, allocations: 19.98 kB / 330.1 MB, free: 11.35 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002857/0.2376, allocations: 11.82 MB / 342 MB, free: 14.8 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.2376, allocations: 0 / 342 MB, free: 14.8 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001258/0.2388, allocations: 1.051 MB / 343 MB, free: 13.75 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002132/0.2391, allocations: 27.94 kB / 343 MB, free: 13.72 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003998/0.2395, allocations: 55.94 kB / 343.1 MB, free: 13.66 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002237/0.2397, allocations: 116.8 kB / 343.2 MB, free: 13.55 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.496e-05/0.2397, allocations: 23.98 kB / 343.2 MB, free: 13.53 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.001146/0.2409, allocations: 1.318 MB / 344.5 MB, free: 12.37 MB / 298.7 MB Notification: Performance of sort global known variables: time 2.8e-07/0.2409, allocations: 0.875 kB / 344.6 MB, free: 12.37 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001327/0.2422, allocations: 0.6673 MB / 345.2 MB, free: 11.7 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.00118/0.2434, allocations: 0.9853 MB / 346.2 MB, free: 10.87 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001666/0.2451, allocations: 1.724 MB / 347.9 MB, free: 9.035 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 5.967e-05/0.2451, allocations: 40.94 kB / 348 MB, free: 8.996 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001206/0.2463, allocations: 1.519 MB / 349.5 MB, free: 7.355 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001491/0.2478, allocations: 0.7763 MB / 350.3 MB, free: 6.578 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007443/0.2553, allocations: 4.12 MB / 354.4 MB, free: 2.422 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003006/0.2556, allocations: 417.2 kB / 354.8 MB, free: 1.992 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0007241/0.2563, allocations: 390.6 kB / 355.2 MB, free: 1.609 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008237/0.2571, allocations: 0.608 MB / 355.8 MB, free: 1.008 MB / 298.7 MB Notification: Performance of SimCode: time 2.204e-06/0.2571, allocations: 0 / 355.8 MB, free: 1.008 MB / 298.7 MB Notification: Performance of Templates: time 0.05313/0.3102, allocations: 45.72 MB / 401.5 MB, free: 3.352 MB / 346.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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.999852010048926]