Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.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.001672/0.001672, allocations: 100 kB / 21.18 MB, free: 0.6484 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.001854/0.001854, allocations: 185.8 kB / 24.45 MB, free: 3.961 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.454/1.454, allocations: 225.7 MB / 253.3 MB, free: 12.81 MB / 206.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.InvertersExtendedModel,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.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_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001645/0.001645, allocations: 47.91 kB / 371.6 MB, free: 9.195 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2833/0.2849, allocations: 52.18 MB / 423.8 MB, free: 14.47 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01497/0.2999, allocations: 12.89 MB / 436.7 MB, free: 1.531 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02465/0.3246, allocations: 17.93 MB / 454.6 MB, free: 15.53 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003192/0.3278, allocations: 138.5 kB / 454.8 MB, free: 15.39 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003926/0.3317, allocations: 1.166 MB / 455.9 MB, free: 14.23 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009149/0.3408, allocations: 2.393 MB / 458.3 MB, free: 11.81 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005434/0.3463, allocations: 1.418 MB / 459.7 MB, free: 10.39 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01121/0.3575, allocations: 6.641 MB / 466.4 MB, free: 3.73 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007843/0.3583, allocations: 266.2 kB / 466.6 MB, free: 3.441 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002166/0.3604, allocations: 1.19 MB / 467.8 MB, free: 2.246 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00164/0.3621, allocations: 1.094 MB / 468.9 MB, free: 1.145 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002441/0.3623, allocations: 76 kB / 469 MB, free: 1.07 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003913/0.3662, allocations: 1.206 MB / 470.2 MB, free: 15.86 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005185/0.3667, allocations: 337.4 kB / 470.5 MB, free: 15.53 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001575/0.3683, allocations: 1.052 MB / 471.6 MB, free: 14.47 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007289/0.3756, allocations: 4.04 MB / 475.6 MB, free: 10.41 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.233e-06/0.3756, allocations: 0 / 475.6 MB, free: 10.41 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.725e-06/0.3756, allocations: 0 / 475.6 MB, free: 10.41 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001095/0.3757, allocations: 4 kB / 475.6 MB, free: 10.41 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.006224/0.3819, allocations: 3.882 MB / 479.5 MB, free: 6.469 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.728e-05/0.382, allocations: 12.03 kB / 479.5 MB, free: 6.457 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005858/0.3826, allocations: 433.2 kB / 480 MB, free: 6.031 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003979/0.3866, allocations: 2.353 MB / 482.3 MB, free: 3.586 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.368e-05/0.3866, allocations: 33 kB / 482.3 MB, free: 3.551 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001659/0.3868, allocations: 63.94 kB / 482.4 MB, free: 3.488 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001435/0.3882, allocations: 0.7265 MB / 483.1 MB, free: 2.758 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.621e-05/0.3882, allocations: 0 / 483.1 MB, free: 2.758 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.746e-05/0.3883, allocations: 20 kB / 483.1 MB, free: 2.738 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.527e-05/0.3883, allocations: 19.98 kB / 483.2 MB, free: 2.719 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001601/0.3899, allocations: 0.8202 MB / 484 MB, free: 1.898 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005469/0.3954, allocations: 2.792 MB / 486.8 MB, free: 15.05 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001209/0.3966, allocations: 0.5358 MB / 487.3 MB, free: 14.51 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000967/0.3976, allocations: 0.5653 MB / 487.9 MB, free: 13.94 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02557/0.4231, allocations: 13.7 MB / 0.4898 GB, free: 15.85 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007747/0.4239, allocations: 365.6 kB / 0.4902 GB, free: 15.48 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 2.976e-06/0.4239, allocations: 0 / 0.4902 GB, free: 15.48 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.002384/0.4263, allocations: 1.126 MB / 0.4913 GB, free: 14.35 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.22e-05/0.4263, allocations: 59.41 kB / 0.4913 GB, free: 14.28 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003693/0.43, allocations: 3.114 MB / 0.4944 GB, free: 11.16 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 7.941e-05/0.4301, allocations: 37.7 kB / 0.4944 GB, free: 11.12 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001447/0.4316, allocations: 1.578 MB / 0.4959 GB, free: 9.535 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001691/0.4317, allocations: 178.5 kB / 0.4961 GB, free: 9.359 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000301/0.432, allocations: 234.4 kB / 0.4963 GB, free: 9.125 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000149/0.4322, allocations: 341.9 kB / 0.4967 GB, free: 8.785 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005843/0.4328, allocations: 241.8 kB / 0.4969 GB, free: 8.547 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008698/0.4336, allocations: 0.6017 MB / 0.4975 GB, free: 7.77 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001507/0.4351, allocations: 0.9013 MB / 0.4984 GB, free: 6.695 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.277e-06/0.4352, allocations: 8 kB / 0.4984 GB, free: 6.688 MB / 414.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002263/0.4374, allocations: 1.259 MB / 0.4996 GB, free: 5.418 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.746e-05/0.4374, allocations: 16.16 kB / 0.4996 GB, free: 5.402 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001147/0.4376, allocations: 84 kB / 0.4997 GB, free: 5.32 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.326e-05/0.4376, allocations: 16 kB / 0.4997 GB, free: 5.305 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007142/0.4383, allocations: 199.7 kB / 0.4999 GB, free: 5.109 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.082e-05/0.4383, allocations: 31.86 kB / 0.4999 GB, free: 5.078 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009466/0.4393, allocations: 103.3 kB / 0.5 GB, free: 4.977 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001103/0.4394, allocations: 72 kB / 0.5001 GB, free: 4.906 MB / 414.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.0007597/0.4402, allocations: 445.5 kB / 0.5005 GB, free: 4.461 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004146/0.4406, allocations: 425.3 kB / 0.5009 GB, free: 4.043 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002622/0.4432, allocations: 1.211 MB / 0.5021 GB, free: 2.828 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.746e-06/0.4432, allocations: 8 kB / 0.5021 GB, free: 2.82 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.4432, allocations: 0 / 0.5021 GB, free: 2.82 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.304e-06/0.4432, allocations: 3.984 kB / 0.5021 GB, free: 2.816 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003557/0.4468, allocations: 1.972 MB / 0.504 GB, free: 0.793 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001049/0.4469, allocations: 71.98 kB / 0.5041 GB, free: 0.7227 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004762/0.4474, allocations: 91.86 kB / 0.5042 GB, free: 0.6328 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.565e-06/0.4474, allocations: 7.938 kB / 0.5042 GB, free: 0.625 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.922e-05/0.4474, allocations: 32 kB / 0.5042 GB, free: 0.5938 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.562e-06/0.4474, allocations: 7.984 kB / 0.5042 GB, free: 0.5859 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.4474, allocations: 4.062 kB / 0.5043 GB, free: 0.582 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002406/0.4498, allocations: 1.343 MB / 0.5056 GB, free: 15.21 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008765/0.4507, allocations: 435.1 kB / 0.506 GB, free: 14.79 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002961/0.451, allocations: 19.97 kB / 0.506 GB, free: 14.77 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006756/0.4517, allocations: 27.97 kB / 0.506 GB, free: 14.74 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001624/0.4518, allocations: 63.92 kB / 0.5061 GB, free: 14.68 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.091e-05/0.4519, allocations: 36 kB / 0.5061 GB, free: 14.64 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002754/0.4547, allocations: 2.007 MB / 0.5081 GB, free: 12.64 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4547, allocations: 0 / 0.5081 GB, free: 12.64 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.00137/0.456, allocations: 0.593 MB / 0.5087 GB, free: 12.05 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.001132/0.4572, allocations: 0.7924 MB / 0.5094 GB, free: 11.25 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001649/0.4588, allocations: 0.7787 MB / 0.5102 GB, free: 10.45 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.4588, allocations: 0 / 0.5102 GB, free: 10.45 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000768/0.4596, allocations: 431.4 kB / 0.5106 GB, free: 10 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002558/0.4621, allocations: 0.6241 MB / 0.5112 GB, free: 9.371 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007064/0.4692, allocations: 4.672 MB / 0.5158 GB, free: 4.648 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001167/0.4704, allocations: 1.158 MB / 0.5169 GB, free: 3.449 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000413/0.4708, allocations: 155.4 kB / 0.5171 GB, free: 3.297 MB / 430.1 MB Notification: Performance of SimCode: time 2.224e-06/0.4708, allocations: 0 / 0.5171 GB, free: 3.297 MB / 430.1 MB Notification: Performance of Templates: time 0.2464/0.7172, allocations: 40.36 MB / 0.5565 GB, free: 97.43 MB / 446.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & ./Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/InvertersExtendedModel/InvertersExtendedModel.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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: 11.229997879359871]