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.001545/0.001546, allocations: 115.9 kB / 18.41 MB, free: 4.645 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.001584/0.001584, allocations: 193.3 kB / 21.35 MB, free: 1.711 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.427/1.427, allocations: 222.9 MB / 247 MB, free: 4.082 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.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.001525/0.001525, allocations: 55.91 kB / 358.7 MB, free: 8.207 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08844/0.08998, allocations: 49.43 MB / 408.1 MB, free: 6.73 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01544/0.1054, allocations: 15.3 MB / 423.4 MB, free: 7.367 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.1973/0.3027, allocations: 20.73 MB / 444.1 MB, free: 3.789 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001947/0.3047, allocations: 89.47 kB / 444.2 MB, free: 3.742 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002907/0.3076, allocations: 1.267 MB / 445.5 MB, free: 3.27 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006994/0.3147, allocations: 2.341 MB / 447.8 MB, free: 2.375 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005093/0.3198, allocations: 1.45 MB / 449.3 MB, free: 2 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.009478/0.3293, allocations: 6.592 MB / 455.9 MB, free: 0.793 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000774/0.3301, allocations: 480.2 kB / 456.3 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001818/0.3319, allocations: 1.115 MB / 457.4 MB, free: 320 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001459/0.3334, allocations: 1.149 MB / 458.6 MB, free: 15.84 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002217/0.3336, allocations: 76.31 kB / 458.7 MB, free: 15.84 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004281/0.3379, allocations: 1.476 MB / 460.1 MB, free: 15.78 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004231/0.3384, allocations: 334.4 kB / 460.5 MB, free: 15.64 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001771/0.3401, allocations: 1.431 MB / 461.9 MB, free: 15.05 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006042/0.3462, allocations: 4 MB / 465.9 MB, free: 13.64 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.3462, allocations: 0 / 465.9 MB, free: 13.64 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.3462, allocations: 0 / 465.9 MB, free: 13.64 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.154e-05/0.3463, allocations: 1.625 kB / 465.9 MB, free: 13.64 MB / 366.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.005768/0.3521, allocations: 3.967 MB / 469.9 MB, free: 10.93 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.25e-05/0.3521, allocations: 9.156 kB / 469.9 MB, free: 10.93 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004505/0.3526, allocations: 432.4 kB / 470.3 MB, free: 10.7 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003304/0.3559, allocations: 2.503 MB / 472.8 MB, free: 8.887 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.142e-05/0.3559, allocations: 33.19 kB / 472.8 MB, free: 8.875 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001191/0.3561, allocations: 61.22 kB / 472.9 MB, free: 8.848 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001287/0.3573, allocations: 0.7312 MB / 473.6 MB, free: 8.418 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.607e-05/0.3574, allocations: 3.938 kB / 473.6 MB, free: 8.414 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.153e-05/0.3575, allocations: 21.59 kB / 473.7 MB, free: 8.398 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.373e-05/0.3575, allocations: 26.8 kB / 473.7 MB, free: 8.387 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001546/0.359, allocations: 0.8148 MB / 474.5 MB, free: 7.688 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005197/0.3642, allocations: 3.098 MB / 477.6 MB, free: 4.543 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001213/0.3655, allocations: 0.579 MB / 478.2 MB, free: 3.957 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009983/0.3665, allocations: 0.6496 MB / 478.8 MB, free: 3.305 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02942/0.3959, allocations: 30.13 MB / 0.497 GB, free: 1.102 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000774/0.3967, allocations: 361.7 kB / 0.4974 GB, free: 0.7383 MB / 398.1 MB Notification: Performance of pre-optimization done (n=49): time 2.185e-06/0.3967, allocations: 0 / 0.4974 GB, free: 0.7383 MB / 398.1 MB Notification: Performance of matching and sorting (n=49): time 0.002387/0.3991, allocations: 1.138 MB / 0.4985 GB, free: 15.59 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.469e-05/0.3992, allocations: 59.39 kB / 0.4985 GB, free: 15.52 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003587/0.4028, allocations: 3.09 MB / 0.5016 GB, free: 12.43 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.25e-05/0.4028, allocations: 41.7 kB / 0.5016 GB, free: 12.38 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001341/0.4042, allocations: 1.582 MB / 0.5031 GB, free: 10.79 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001494/0.4044, allocations: 178.5 kB / 0.5033 GB, free: 10.62 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002963/0.4047, allocations: 234.3 kB / 0.5035 GB, free: 10.38 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001351/0.4048, allocations: 338 kB / 0.5039 GB, free: 10.05 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000578/0.4054, allocations: 245.8 kB / 0.5041 GB, free: 9.809 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008262/0.4062, allocations: 0.5942 MB / 0.5047 GB, free: 9.039 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001433/0.4077, allocations: 0.9042 MB / 0.5056 GB, free: 7.965 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.663e-06/0.4077, allocations: 4 kB / 0.5056 GB, free: 7.961 MB / 414.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002108/0.4098, allocations: 1.262 MB / 0.5068 GB, free: 6.695 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.963e-05/0.4098, allocations: 8 kB / 0.5068 GB, free: 6.688 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001028/0.4099, allocations: 84.84 kB / 0.5069 GB, free: 6.605 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.934e-05/0.41, allocations: 20 kB / 0.5069 GB, free: 6.586 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006864/0.4107, allocations: 207.6 kB / 0.5071 GB, free: 6.383 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.409e-05/0.4107, allocations: 23.92 kB / 0.5071 GB, free: 6.359 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009934/0.4117, allocations: 107.3 kB / 0.5072 GB, free: 6.254 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001028/0.4118, allocations: 64 kB / 0.5073 GB, free: 6.191 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.0006878/0.4125, allocations: 458.2 kB / 0.5077 GB, free: 5.734 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003798/0.4129, allocations: 413.4 kB / 0.5081 GB, free: 5.328 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00252/0.4154, allocations: 1.215 MB / 0.5093 GB, free: 4.102 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.157e-06/0.4154, allocations: 7.984 kB / 0.5093 GB, free: 4.094 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.603e-06/0.4154, allocations: 8 kB / 0.5093 GB, free: 4.086 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.188e-06/0.4154, allocations: 3.938 kB / 0.5093 GB, free: 4.082 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003261/0.4187, allocations: 2.143 MB / 0.5114 GB, free: 1.867 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.896e-05/0.4188, allocations: 71.98 kB / 0.5115 GB, free: 1.797 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004655/0.4193, allocations: 95.86 kB / 0.5116 GB, free: 1.703 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.356e-06/0.4193, allocations: 0 / 0.5116 GB, free: 1.703 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.729e-05/0.4194, allocations: 32 kB / 0.5116 GB, free: 1.672 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.11e-06/0.4194, allocations: 4.062 kB / 0.5116 GB, free: 1.668 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.348e-06/0.4194, allocations: 7.984 kB / 0.5116 GB, free: 1.66 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002217/0.4216, allocations: 1.331 MB / 0.5129 GB, free: 308 kB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007489/0.4224, allocations: 0.5099 MB / 0.5134 GB, free: 15.77 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002685/0.4226, allocations: 8 kB / 0.5134 GB, free: 15.76 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006263/0.4233, allocations: 45.08 kB / 0.5135 GB, free: 15.72 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001391/0.4234, allocations: 51.95 kB / 0.5135 GB, free: 15.67 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.383e-05/0.4235, allocations: 40 kB / 0.5135 GB, free: 15.63 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0024/0.4259, allocations: 2.007 MB / 0.5155 GB, free: 13.63 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4259, allocations: 0 / 0.5155 GB, free: 13.63 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001236/0.4271, allocations: 0.5931 MB / 0.5161 GB, free: 13.04 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.001092/0.4282, allocations: 0.7856 MB / 0.5169 GB, free: 12.24 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001584/0.4298, allocations: 0.8131 MB / 0.5176 GB, free: 11.41 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.4299, allocations: 0 / 0.5176 GB, free: 11.41 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008371/0.4307, allocations: 447.8 kB / 0.5181 GB, free: 10.94 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002666/0.4334, allocations: 0.6413 MB / 0.5187 GB, free: 10.3 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006927/0.4403, allocations: 4.662 MB / 0.5233 GB, free: 5.586 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001351/0.4417, allocations: 1.71 MB / 0.5249 GB, free: 3.848 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000384/0.4421, allocations: 159.4 kB / 0.5251 GB, free: 3.695 MB / 430.1 MB Notification: Performance of SimCode: time 1.212e-06/0.4421, allocations: 0 / 0.5251 GB, free: 3.695 MB / 430.1 MB Notification: Performance of Templates: time 0.05755/0.4996, allocations: 38.65 MB / 0.5628 GB, free: 13.21 MB / 478.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_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/InvertersExtendedModel/InvertersExtendedModel.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 12.00684073206503]