Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.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.001909/0.001909, allocations: 71.83 kB / 21.24 MB, free: 0.543 MB / 14.72 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.002164/0.002164, allocations: 150.4 kB / 24.49 MB, free: 3.727 MB / 14.72 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 1.448/1.448, allocations: 173.4 MB / 201.1 MB, free: 12.7 MB / 190.1 MB " [Timeout remaining time 178] 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.InvertersApartRecord,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001527/0.001527, allocations: 46.92 kB / 319.4 MB, free: 3.277 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0809/0.08243, allocations: 52.16 MB / 371.6 MB, free: 7.352 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01371/0.09614, allocations: 12.4 MB / 384 MB, free: 10.9 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02329/0.1194, allocations: 17.86 MB / 401.8 MB, free: 8.969 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001967/0.1214, allocations: 138.5 kB / 402 MB, free: 8.832 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003095/0.1245, allocations: 1.137 MB / 403.1 MB, free: 7.684 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006729/0.1312, allocations: 2.344 MB / 405.4 MB, free: 5.324 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004494/0.1357, allocations: 1.414 MB / 406.9 MB, free: 3.902 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01115/0.1469, allocations: 6.549 MB / 413.4 MB, free: 13.34 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007647/0.1476, allocations: 261.8 kB / 413.7 MB, free: 13.05 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00193/0.1496, allocations: 1.159 MB / 414.8 MB, free: 11.89 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001875/0.1514, allocations: 1.055 MB / 415.9 MB, free: 10.82 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003185/0.1518, allocations: 76 kB / 415.9 MB, free: 10.75 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003656/0.1554, allocations: 1.198 MB / 417.1 MB, free: 9.551 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004232/0.1558, allocations: 333.6 kB / 417.5 MB, free: 9.223 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001459/0.1573, allocations: 1.009 MB / 418.5 MB, free: 8.207 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005155/0.1625, allocations: 3.826 MB / 422.3 MB, free: 4.363 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.926e-06/0.1625, allocations: 0 / 422.3 MB, free: 4.363 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.1625, allocations: 0 / 422.3 MB, free: 4.363 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.296e-05/0.1625, allocations: 0 / 422.3 MB, free: 4.363 MB / 382.1 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.005836/0.1684, allocations: 3.734 MB / 426 MB, free: 0.5703 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.412e-05/0.1684, allocations: 8.922 kB / 426 MB, free: 0.5625 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005312/0.1689, allocations: 421.4 kB / 426.5 MB, free: 152 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003536/0.1725, allocations: 2.295 MB / 428.8 MB, free: 13.76 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.65e-05/0.1725, allocations: 33 kB / 428.8 MB, free: 13.72 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001313/0.1726, allocations: 59.94 kB / 428.8 MB, free: 13.66 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001431/0.1741, allocations: 0.7304 MB / 429.6 MB, free: 12.93 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.669e-05/0.1741, allocations: 0 / 429.6 MB, free: 12.93 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.1e-05/0.1742, allocations: 20 kB / 429.6 MB, free: 12.91 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.367e-05/0.1742, allocations: 23.98 kB / 429.6 MB, free: 12.89 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001681/0.1759, allocations: 0.8124 MB / 430.4 MB, free: 12.07 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00498/0.1808, allocations: 2.747 MB / 433.2 MB, free: 9.273 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001258/0.1821, allocations: 0.5202 MB / 433.7 MB, free: 8.738 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001019/0.1831, allocations: 0.577 MB / 434.3 MB, free: 8.156 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02547/0.2086, allocations: 13.69 MB / 448 MB, free: 10.08 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000812/0.2094, allocations: 362 kB / 448.3 MB, free: 9.719 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 2.615e-06/0.2094, allocations: 0 / 448.3 MB, free: 9.719 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.002449/0.2118, allocations: 1.116 MB / 449.4 MB, free: 8.594 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.133e-05/0.2119, allocations: 55.41 kB / 449.5 MB, free: 8.527 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004124/0.216, allocations: 2.958 MB / 452.4 MB, free: 5.559 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.717e-05/0.2161, allocations: 37.7 kB / 452.5 MB, free: 5.516 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001465/0.2175, allocations: 1.498 MB / 454 MB, free: 4.008 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001835/0.2177, allocations: 174.6 kB / 454.2 MB, free: 3.836 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003281/0.2181, allocations: 234.4 kB / 454.4 MB, free: 3.602 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001602/0.2182, allocations: 341.9 kB / 454.7 MB, free: 3.262 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006451/0.2189, allocations: 241.8 kB / 454.9 MB, free: 3.023 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009264/0.2198, allocations: 0.6056 MB / 455.6 MB, free: 2.242 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001648/0.2214, allocations: 0.8945 MB / 456.4 MB, free: 1.18 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.129e-05/0.2214, allocations: 4 kB / 456.5 MB, free: 1.176 MB / 414.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002393/0.2238, allocations: 1.252 MB / 457.7 MB, free: 15.91 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.29e-05/0.2239, allocations: 10.81 kB / 457.7 MB, free: 15.91 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001249/0.224, allocations: 83.98 kB / 457.8 MB, free: 15.82 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.332e-05/0.224, allocations: 20 kB / 457.8 MB, free: 15.8 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007681/0.2248, allocations: 191.7 kB / 458 MB, free: 15.62 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.669e-05/0.2248, allocations: 27.88 kB / 458 MB, free: 15.59 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009829/0.2258, allocations: 119.5 kB / 458.1 MB, free: 15.47 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000116/0.2259, allocations: 64 kB / 458.2 MB, free: 15.41 MB / 430.1 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.0007109/0.2266, allocations: 425.5 kB / 458.6 MB, free: 14.98 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004724/0.2271, allocations: 401.4 kB / 459 MB, free: 14.59 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002722/0.2298, allocations: 1.199 MB / 460.2 MB, free: 13.38 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.995e-06/0.2298, allocations: 8 kB / 460.2 MB, free: 13.38 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.128e-06/0.2298, allocations: 3.938 kB / 460.2 MB, free: 13.37 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.843e-06/0.2298, allocations: 3.984 kB / 460.2 MB, free: 13.37 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003542/0.2334, allocations: 1.928 MB / 462.2 MB, free: 11.39 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001072/0.2335, allocations: 68 kB / 462.2 MB, free: 11.33 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005153/0.234, allocations: 95.84 kB / 462.3 MB, free: 11.23 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.141e-06/0.234, allocations: 4 kB / 462.3 MB, free: 11.23 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.747e-05/0.2341, allocations: 36 kB / 462.4 MB, free: 11.2 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.675e-06/0.2341, allocations: 0 / 462.4 MB, free: 11.2 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.386e-06/0.2341, allocations: 4 kB / 462.4 MB, free: 11.19 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002452/0.2365, allocations: 1.32 MB / 463.7 MB, free: 9.844 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007834/0.2373, allocations: 423.2 kB / 464.1 MB, free: 9.43 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002794/0.2376, allocations: 8 kB / 464.1 MB, free: 9.422 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006978/0.2383, allocations: 31.95 kB / 464.1 MB, free: 9.391 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001475/0.2384, allocations: 59.94 kB / 464.2 MB, free: 9.332 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.88e-05/0.2385, allocations: 43.98 kB / 464.2 MB, free: 9.289 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002571/0.2411, allocations: 1.907 MB / 466.1 MB, free: 7.383 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2411, allocations: 0 / 466.1 MB, free: 7.383 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.00132/0.2424, allocations: 0.5852 MB / 466.7 MB, free: 6.797 MB / 430.1 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.001152/0.2436, allocations: 0.7884 MB / 467.5 MB, free: 6.004 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001665/0.2452, allocations: 0.7792 MB / 468.3 MB, free: 5.195 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.2452, allocations: 0 / 468.3 MB, free: 5.195 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008203/0.246, allocations: 427.3 kB / 468.7 MB, free: 4.754 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002512/0.2486, allocations: 0.6039 MB / 469.3 MB, free: 4.145 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1628/0.4114, allocations: 4.381 MB / 473.7 MB, free: 94.74 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001075/0.4125, allocations: 1.11 MB / 474.8 MB, free: 94.56 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001109/0.4136, allocations: 356 kB / 475.2 MB, free: 94.53 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002444/0.4138, allocations: 152.4 kB / 475.3 MB, free: 94.53 MB / 430.1 MB Notification: Performance of SimCode: time 8.71e-07/0.4138, allocations: 0 / 475.3 MB, free: 94.53 MB / 430.1 MB Notification: Performance of Templates: time 0.04464/0.4584, allocations: 32.51 MB / 0.4959 GB, free: 71.76 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & ./Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/InvertersApartRecord/InvertersApartRecord.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.675576569978148]