Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.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.001402/0.001402, allocations: 88.31 kB / 21.44 MB, free: 276 kB / 14.72 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.0014/0.0014, allocations: 164 kB / 24.71 MB, free: 3.527 MB / 14.72 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 1.33/1.33, allocations: 158.6 MB / 186.5 MB, free: 6.391 MB / 174.1 MB " [Timeout remaining time 178] 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.InvertersExtendedModel,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.InvertersExtendedModel") translateModel(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,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.InvertersExtendedModel") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.233e-06/1.233e-06, allocations: 0 / 298.9 MB, free: 8.738 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.297e-05/2.421e-05, allocations: 2.281 kB / 298.9 MB, free: 8.734 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01454/0.01457, allocations: 12.32 MB / 311.3 MB, free: 12.36 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1621/0.1767, allocations: 17.11 MB / 328.4 MB, free: 13.73 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002626/0.1793, allocations: 144 kB / 328.5 MB, free: 13.73 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003327/0.1827, allocations: 1.131 MB / 329.6 MB, free: 13.68 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008078/0.1907, allocations: 2.447 MB / 332.1 MB, free: 13.04 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005749/0.1965, allocations: 1.392 MB / 333.5 MB, free: 12.63 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01096/0.2075, allocations: 6.698 MB / 340.2 MB, free: 10.87 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007307/0.2082, allocations: 267.3 kB / 340.4 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002675/0.2109, allocations: 1.463 MB / 341.9 MB, free: 10.38 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001207/0.2121, allocations: 0.7904 MB / 342.7 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002014/0.2123, allocations: 74.81 kB / 342.8 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003276/0.2155, allocations: 1.081 MB / 343.8 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002515/0.2158, allocations: 351.9 kB / 344.2 MB, free: 9.805 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001018/0.2168, allocations: 0.7698 MB / 344.9 MB, free: 9.582 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003973/0.2208, allocations: 3.983 MB / 348.9 MB, free: 7.598 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.517e-06/0.2208, allocations: 0 / 348.9 MB, free: 7.598 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.2208, allocations: 0 / 348.9 MB, free: 7.598 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.255e-05/0.2208, allocations: 0 / 348.9 MB, free: 7.598 MB / 302.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.004199/0.225, allocations: 3.863 MB / 352.8 MB, free: 4.703 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.618e-05/0.2251, allocations: 15.14 kB / 352.8 MB, free: 4.699 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003347/0.2254, allocations: 438.1 kB / 353.2 MB, free: 4.297 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002627/0.228, allocations: 2.364 MB / 355.6 MB, free: 1.934 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.344e-05/0.2281, allocations: 41 kB / 355.6 MB, free: 1.891 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00012/0.2282, allocations: 55.95 kB / 355.7 MB, free: 1.836 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001205/0.2294, allocations: 0.7304 MB / 356.4 MB, free: 1.102 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.722e-05/0.2294, allocations: 0 / 356.4 MB, free: 1.102 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.326e-05/0.2295, allocations: 20 kB / 356.4 MB, free: 1.082 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.902e-05/0.2295, allocations: 23.98 kB / 356.5 MB, free: 1.059 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001399/0.2309, allocations: 0.8163 MB / 357.3 MB, free: 252 kB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005855/0.2368, allocations: 2.815 MB / 360.1 MB, free: 13.41 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001277/0.238, allocations: 0.5124 MB / 360.6 MB, free: 12.89 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001054/0.2391, allocations: 0.5729 MB / 361.2 MB, free: 12.31 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02744/0.2665, allocations: 13.75 MB / 374.9 MB, free: 14.26 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008676/0.2674, allocations: 370.5 kB / 375.3 MB, free: 13.88 MB / 334.1 MB Notification: Performance of pre-optimization done (n=49): time 2.735e-06/0.2674, allocations: 0 / 375.3 MB, free: 13.88 MB / 334.1 MB Notification: Performance of matching and sorting (n=49): time 0.002875/0.2703, allocations: 1.134 MB / 376.4 MB, free: 12.74 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.287e-05/0.2703, allocations: 67.98 kB / 376.5 MB, free: 12.66 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004692/0.275, allocations: 3.127 MB / 379.6 MB, free: 9.539 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 8.64e-05/0.2751, allocations: 33.7 kB / 379.7 MB, free: 9.5 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001562/0.2767, allocations: 1.581 MB / 381.2 MB, free: 7.91 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001835/0.2769, allocations: 172 kB / 381.4 MB, free: 7.746 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003366/0.2772, allocations: 230.3 kB / 381.6 MB, free: 7.516 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001786/0.2774, allocations: 338 kB / 382 MB, free: 7.18 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006376/0.278, allocations: 253.7 kB / 382.2 MB, free: 6.93 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009478/0.279, allocations: 0.5979 MB / 382.8 MB, free: 6.16 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001658/0.2806, allocations: 0.9011 MB / 383.7 MB, free: 5.09 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.507e-06/0.2806, allocations: 4.875 kB / 383.7 MB, free: 5.086 MB / 334.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002432/0.2831, allocations: 1.267 MB / 385 MB, free: 3.812 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.615e-05/0.2831, allocations: 12 kB / 385 MB, free: 3.801 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001165/0.2832, allocations: 80 kB / 385.1 MB, free: 3.723 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.925e-05/0.2832, allocations: 20.03 kB / 385.1 MB, free: 3.703 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007687/0.284, allocations: 199.7 kB / 385.3 MB, free: 3.508 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.017e-05/0.284, allocations: 27.86 kB / 385.3 MB, free: 3.48 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001135/0.2852, allocations: 109.2 kB / 385.4 MB, free: 3.375 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001207/0.2853, allocations: 71.44 kB / 385.5 MB, free: 3.309 MB / 334.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.0007753/0.2861, allocations: 457.5 kB / 385.9 MB, free: 2.852 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004671/0.2865, allocations: 429.2 kB / 386.4 MB, free: 2.43 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002835/0.2894, allocations: 1.221 MB / 387.6 MB, free: 1.211 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.02e-05/0.2894, allocations: 4 kB / 387.6 MB, free: 1.207 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.2894, allocations: 0 / 387.6 MB, free: 1.207 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.014e-05/0.2894, allocations: 4 kB / 387.6 MB, free: 1.203 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003964/0.2933, allocations: 1.993 MB / 389.6 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001026/0.2934, allocations: 68 kB / 389.6 MB, free: 15.11 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005269/0.294, allocations: 95.84 kB / 389.7 MB, free: 15.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.384e-06/0.294, allocations: 4 kB / 389.7 MB, free: 15.02 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.826e-05/0.294, allocations: 36 kB / 389.8 MB, free: 14.98 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.687e-06/0.294, allocations: 0 / 389.8 MB, free: 14.98 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.028e-06/0.2941, allocations: 4 kB / 389.8 MB, free: 14.98 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002577/0.2966, allocations: 1.341 MB / 391.1 MB, free: 13.61 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008639/0.2975, allocations: 447 kB / 391.6 MB, free: 13.17 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003065/0.2978, allocations: 12 kB / 391.6 MB, free: 13.16 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007462/0.2985, allocations: 27.95 kB / 391.6 MB, free: 13.13 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001717/0.2987, allocations: 59.94 kB / 391.7 MB, free: 13.07 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.503e-05/0.2988, allocations: 39.98 kB / 391.7 MB, free: 13.03 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002795/0.3016, allocations: 2.019 MB / 393.7 MB, free: 11.02 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3016, allocations: 4.062 kB / 393.7 MB, free: 11.02 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001434/0.303, allocations: 0.6047 MB / 394.3 MB, free: 10.41 MB / 350.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.001209/0.3042, allocations: 0.8244 MB / 395.1 MB, free: 9.719 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001685/0.3059, allocations: 0.7907 MB / 395.9 MB, free: 8.902 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.3059, allocations: 0 / 395.9 MB, free: 8.902 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008197/0.3067, allocations: 419.1 kB / 396.3 MB, free: 8.469 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001885/0.3086, allocations: 0.5486 MB / 396.9 MB, free: 7.922 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00656/0.3152, allocations: 4.524 MB / 401.4 MB, free: 3.355 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001142/0.3163, allocations: 1.17 MB / 402.6 MB, free: 2.148 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001014/0.3173, allocations: 361.4 kB / 402.9 MB, free: 1.789 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002443/0.3176, allocations: 152.5 kB / 403.1 MB, free: 1.641 MB / 350.1 MB Notification: Performance of SimCode: time 8.12e-07/0.3176, allocations: 0 / 403.1 MB, free: 1.641 MB / 350.1 MB Notification: Performance of Templates: time 0.06081/0.3784, allocations: 33.22 MB / 436.3 MB, free: 360 kB / 382.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & ./Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/InvertersExtendedModel/InvertersExtendedModel.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.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.36008183658123]