Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.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.0008658/0.0008658, allocations: 81.05 kB / 10.02 MB, free: 0.668 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001169/0.002035, allocations: 453.8 kB / 10.46 MB, free: 232 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.000705/0.000705, allocations: 165.1 kB / 11.36 MB, free: 2.809 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008973/0.001602, allocations: 483.5 kB / 11.83 MB, free: 2.332 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.9175/0.9175, allocations: 158.6 MB / 171.2 MB, free: 2.508 MB / 170.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1493/1.067, allocations: 49.5 MB / 220.7 MB, free: 1.355 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.InvertersApartRecord,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") translateModel(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.352e-06/1.352e-06, allocations: 0 / 222 MB, free: 72 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.405e-05/1.54e-05, allocations: 2.312 kB / 222 MB, free: 68 kB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.02041/0.02043, allocations: 13.12 MB / 235.1 MB, free: 2.887 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.03377/0.0542, allocations: 18.93 MB / 254 MB, free: 15.88 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002902/0.0571, allocations: 138.5 kB / 254.2 MB, free: 15.74 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00276/0.05986, allocations: 1.154 MB / 255.3 MB, free: 14.58 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006959/0.06682, allocations: 2.347 MB / 257.7 MB, free: 12.21 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005236/0.07206, allocations: 1.356 MB / 259 MB, free: 10.85 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.007817/0.07988, allocations: 6.506 MB / 265.5 MB, free: 4.324 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006701/0.08055, allocations: 306.5 kB / 265.8 MB, free: 3.984 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003787/0.08433, allocations: 3.296 MB / 269.1 MB, free: 0.6055 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001232/0.08556, allocations: 0.7904 MB / 269.9 MB, free: 15.81 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002504/0.08581, allocations: 76 kB / 270 MB, free: 15.74 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002924/0.08874, allocations: 1.144 MB / 271.1 MB, free: 14.59 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002215/0.08896, allocations: 269.8 kB / 271.4 MB, free: 14.33 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008285/0.08979, allocations: 0.6814 MB / 272.1 MB, free: 13.64 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003015/0.0928, allocations: 2.653 MB / 274.7 MB, free: 10.98 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.237e-05/0.09282, allocations: 0 / 274.7 MB, free: 10.98 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.09282, allocations: 0 / 274.7 MB, free: 10.98 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.117e-05/0.09285, allocations: 0 / 274.7 MB, free: 10.98 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: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.003081/0.09593, allocations: 4.381 MB / 279.1 MB, free: 6.527 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.431e-05/0.09596, allocations: 12.03 kB / 279.1 MB, free: 6.516 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002484/0.09621, allocations: 279.6 kB / 279.4 MB, free: 6.242 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001835/0.09805, allocations: 2.078 MB / 281.5 MB, free: 4.051 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.453e-05/0.09807, allocations: 36.98 kB / 281.5 MB, free: 4.016 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.527e-05/0.09816, allocations: 59.95 kB / 281.6 MB, free: 3.957 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005374/0.0987, allocations: 471.4 kB / 282 MB, free: 3.48 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.127e-05/0.09871, allocations: 0 / 282 MB, free: 3.48 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.12e-05/0.09875, allocations: 24 kB / 282.1 MB, free: 3.457 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.71e-05/0.09877, allocations: 19.98 kB / 282.1 MB, free: 3.438 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003771/0.09914, allocations: 228.5 kB / 282.3 MB, free: 3.215 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002109/0.1013, allocations: 1.575 MB / 283.9 MB, free: 1.598 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003176/0.1016, allocations: 272.9 kB / 284.1 MB, free: 1.324 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000273/0.1018, allocations: 327 kB / 284.5 MB, free: 1.004 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1255/0.2273, allocations: 23.05 MB / 307.5 MB, free: 32.78 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002651/0.2276, allocations: 216.1 kB / 307.7 MB, free: 32.65 MB / 282.7 MB Notification: Performance of pre-optimization done (n=49): time 2.414e-06/0.2276, allocations: 0 / 307.7 MB, free: 32.65 MB / 282.7 MB Notification: Performance of matching and sorting (n=49): time 0.000533/0.2281, allocations: 487.8 kB / 308.2 MB, free: 32.29 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.448e-05/0.2282, allocations: 55.41 kB / 308.2 MB, free: 32.22 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001305/0.2295, allocations: 2.683 MB / 310.9 MB, free: 30.61 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.233e-05/0.2295, allocations: 33.7 kB / 311 MB, free: 30.57 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000329/0.2298, allocations: 0.7685 MB / 311.7 MB, free: 30.14 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.445e-05/0.2299, allocations: 173.9 kB / 311.9 MB, free: 30.05 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001298/0.23, allocations: 190.5 kB / 312.1 MB, free: 29.88 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 4.077e-05/0.2301, allocations: 338.2 kB / 312.4 MB, free: 29.56 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.481e-05/0.2302, allocations: 77.95 kB / 312.5 MB, free: 29.48 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001642/0.2303, allocations: 452.2 kB / 312.9 MB, free: 28.89 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003889/0.2307, allocations: 0.655 MB / 313.6 MB, free: 28.16 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.65e-06/0.2307, allocations: 9.094 kB / 313.6 MB, free: 28.16 MB / 282.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.0005675/0.2313, allocations: 0.6888 MB / 314.3 MB, free: 27.55 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.002e-05/0.2313, allocations: 15.94 kB / 314.3 MB, free: 27.54 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.052e-05/0.2314, allocations: 20 kB / 314.3 MB, free: 27.52 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.888e-05/0.2314, allocations: 20 kB / 314.3 MB, free: 27.5 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000405/0.2318, allocations: 239.5 kB / 314.6 MB, free: 27.29 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.197e-05/0.2318, allocations: 22.8 kB / 314.6 MB, free: 27.27 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004297/0.2322, allocations: 105 kB / 314.7 MB, free: 27.17 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.553e-05/0.2323, allocations: 36 kB / 314.7 MB, free: 27.14 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * Number of states: 0 () * Number of discrete variables: 14 (vin.counter,$PRE.vin.counter,v.counter,$PRE.v.counter,v.counter2,$PRE.v.counter2,v.T0,$PRE.v.T0,vin.counter2,$PRE.vin.counter2,vin.T0,$PRE.vin.T0,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (102): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002259/0.2325, allocations: 175.3 kB / 314.9 MB, free: 26.97 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001453/0.2327, allocations: 243.7 kB / 315.1 MB, free: 26.73 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008708/0.2335, allocations: 0.7963 MB / 315.9 MB, free: 25.96 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.629e-06/0.2335, allocations: 7.938 kB / 316 MB, free: 25.95 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.673e-06/0.2335, allocations: 0 / 316 MB, free: 25.95 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.2335, allocations: 3.984 kB / 316 MB, free: 25.95 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001244/0.2348, allocations: 1.555 MB / 317.5 MB, free: 24.75 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.913e-05/0.2348, allocations: 11.98 kB / 317.5 MB, free: 24.74 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002554/0.2351, allocations: 109.1 kB / 317.6 MB, free: 24.64 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000311/0.2354, allocations: 390.3 kB / 318 MB, free: 24.26 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.018e-06/0.2354, allocations: 4.062 kB / 318 MB, free: 24.25 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.597e-05/0.2354, allocations: 15.98 kB / 318 MB, free: 24.24 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.655e-06/0.2354, allocations: 4 kB / 318 MB, free: 24.23 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.2354, allocations: 0 / 318 MB, free: 24.23 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005217/0.236, allocations: 0.6435 MB / 318.7 MB, free: 23.58 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00015/0.2361, allocations: 12 kB / 318.7 MB, free: 23.57 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003204/0.2364, allocations: 21.23 kB / 318.7 MB, free: 23.55 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.186e-05/0.2365, allocations: 39.92 kB / 318.7 MB, free: 23.51 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.167e-05/0.2365, allocations: 12 kB / 318.8 MB, free: 23.5 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0007176/0.2373, allocations: 1.423 MB / 320.2 MB, free: 22.25 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.2373, allocations: 5.016 kB / 320.2 MB, free: 22.25 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0009298/0.2382, allocations: 0.593 MB / 320.8 MB, free: 21.66 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (c1.vinternal,c2.vinternal) * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,vin.T0,vin.counter,vin.counter2,v.T0,v.counter,v.counter2) * Number of discrete states: 4 (vin.counter2,v.counter2,vin.counter,v.counter) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 6 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000806/0.239, allocations: 0.9321 MB / 321.7 MB, free: 20.88 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.000421/0.2394, allocations: 475 kB / 322.2 MB, free: 20.44 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.131e-05/0.2395, allocations: 46.75 kB / 322.2 MB, free: 20.4 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002204/0.2397, allocations: 264.6 kB / 322.5 MB, free: 20.13 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001778/0.2414, allocations: 6.169 MB / 328.7 MB, free: 12.75 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005572/0.247, allocations: 4.04 MB / 332.7 MB, free: 8.684 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001804/0.2472, allocations: 396.9 kB / 333.1 MB, free: 8.277 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0005903/0.2478, allocations: 357.3 kB / 333.4 MB, free: 7.922 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006707/0.2485, allocations: 0.5772 MB / 334 MB, free: 7.336 MB / 282.7 MB Notification: Performance of SimCode: time 1.854e-06/0.2485, allocations: 0 / 334 MB, free: 7.336 MB / 282.7 MB Notification: Performance of Templates: time 0.04681/0.2953, allocations: 38.72 MB / 372.7 MB, free: 0.7031 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & ./Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/InvertersApartRecord/InvertersApartRecord.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.4404902681708336]