Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001431/0.001431, allocations: 106.5 kB / 21.23 MB, free: 0.6562 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001722/0.001722, allocations: 213.2 kB / 24.54 MB, free: 4.016 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.46/1.46, allocations: 230.6 MB / 258.2 MB, free: 8.059 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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.1.0-beta.om_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.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002001/0.002001, allocations: 63.89 kB / 379 MB, free: 2.668 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2548/0.2568, allocations: 53.37 MB / 432.4 MB, free: 6.973 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01562/0.2725, allocations: 15.36 MB / 447.8 MB, free: 7.551 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02679/0.2992, allocations: 20.87 MB / 468.6 MB, free: 2.602 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002467/0.3017, allocations: 134.5 kB / 468.8 MB, free: 2.469 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004124/0.3058, allocations: 1.271 MB / 470 MB, free: 1.195 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009411/0.3153, allocations: 2.413 MB / 472.4 MB, free: 14.76 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00514/0.3204, allocations: 1.465 MB / 473.9 MB, free: 13.3 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01183/0.3322, allocations: 6.723 MB / 480.6 MB, free: 6.551 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007022/0.3329, allocations: 274.2 kB / 480.9 MB, free: 6.254 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001809/0.3347, allocations: 1.182 MB / 482.1 MB, free: 5.066 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001511/0.3362, allocations: 1.145 MB / 483.2 MB, free: 3.914 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001967/0.3364, allocations: 76 kB / 483.3 MB, free: 3.84 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004048/0.3405, allocations: 1.479 MB / 484.8 MB, free: 2.359 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003914/0.3409, allocations: 341.4 kB / 485.1 MB, free: 2.023 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00164/0.3425, allocations: 1.428 MB / 486.5 MB, free: 0.5859 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006542/0.3491, allocations: 4.009 MB / 490.6 MB, free: 12.56 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.662e-06/0.3491, allocations: 0 / 490.6 MB, free: 12.56 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.3491, allocations: 0 / 490.6 MB, free: 12.56 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.431e-05/0.3491, allocations: 0 / 490.6 MB, free: 12.56 MB / 398.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.006334/0.3555, allocations: 3.89 MB / 494.4 MB, free: 8.609 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.504e-05/0.3555, allocations: 8.031 kB / 494.4 MB, free: 8.602 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005335/0.3561, allocations: 437.3 kB / 494.9 MB, free: 8.172 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003793/0.3599, allocations: 2.341 MB / 497.2 MB, free: 5.738 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.92e-05/0.3599, allocations: 33 kB / 497.2 MB, free: 5.703 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001645/0.3601, allocations: 59.94 kB / 497.3 MB, free: 5.645 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001449/0.3615, allocations: 0.7304 MB / 498 MB, free: 4.91 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.808e-05/0.3615, allocations: 3.984 kB / 498 MB, free: 4.906 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.021e-05/0.3616, allocations: 24 kB / 498.1 MB, free: 4.883 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.807e-05/0.3616, allocations: 19.98 kB / 498.1 MB, free: 4.863 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001701/0.3633, allocations: 0.8279 MB / 498.9 MB, free: 4.035 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005785/0.3691, allocations: 3.05 MB / 0.4902 GB, free: 0.918 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001227/0.3703, allocations: 0.5203 MB / 0.4907 GB, free: 400 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001045/0.3714, allocations: 0.5702 MB / 0.4913 GB, free: 15.81 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02737/0.3987, allocations: 13.78 MB / 0.5047 GB, free: 1.648 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008373/0.3996, allocations: 373.5 kB / 0.5051 GB, free: 1.27 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 3.427e-06/0.3996, allocations: 0 / 0.5051 GB, free: 1.27 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.002657/0.4022, allocations: 1.134 MB / 0.5062 GB, free: 132 kB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.101e-05/0.4023, allocations: 55.41 kB / 0.5062 GB, free: 64 kB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004919/0.4072, allocations: 3.09 MB / 0.5093 GB, free: 12.97 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 7.321e-05/0.4073, allocations: 37.7 kB / 0.5093 GB, free: 12.93 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001515/0.4088, allocations: 1.582 MB / 0.5108 GB, free: 11.34 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001967/0.409, allocations: 178.5 kB / 0.511 GB, free: 11.16 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000334/0.4093, allocations: 234.3 kB / 0.5112 GB, free: 10.93 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.000157/0.4095, allocations: 341.9 kB / 0.5116 GB, free: 10.59 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006077/0.4101, allocations: 237.9 kB / 0.5118 GB, free: 10.36 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009075/0.411, allocations: 0.6057 MB / 0.5124 GB, free: 9.574 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001589/0.4126, allocations: 0.9013 MB / 0.5133 GB, free: 8.5 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.187e-05/0.4126, allocations: 7.938 kB / 0.5133 GB, free: 8.492 MB / 430.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002413/0.415, allocations: 1.262 MB / 0.5145 GB, free: 7.223 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.541e-05/0.4151, allocations: 8 kB / 0.5145 GB, free: 7.215 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001295/0.4152, allocations: 80 kB / 0.5146 GB, free: 7.137 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.366e-05/0.4152, allocations: 20 kB / 0.5146 GB, free: 7.117 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007338/0.416, allocations: 204.1 kB / 0.5148 GB, free: 6.918 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.486e-05/0.416, allocations: 27.92 kB / 0.5148 GB, free: 6.891 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001039/0.417, allocations: 111.3 kB / 0.5149 GB, free: 6.781 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001124/0.4171, allocations: 64 kB / 0.515 GB, free: 6.719 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.0008377/0.418, allocations: 453.3 kB / 0.5154 GB, free: 6.266 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005429/0.4185, allocations: 425.3 kB / 0.5158 GB, free: 5.848 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00276/0.4213, allocations: 1.199 MB / 0.517 GB, free: 4.641 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.256e-05/0.4213, allocations: 4 kB / 0.517 GB, free: 4.637 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.558e-06/0.4213, allocations: 0 / 0.517 GB, free: 4.637 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.918e-06/0.4213, allocations: 11.97 kB / 0.517 GB, free: 4.625 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003886/0.4252, allocations: 2.118 MB / 0.5191 GB, free: 2.445 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001126/0.4253, allocations: 71.94 kB / 0.5191 GB, free: 2.375 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004939/0.4258, allocations: 95.91 kB / 0.5192 GB, free: 2.281 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.985e-06/0.4258, allocations: 4 kB / 0.5192 GB, free: 2.277 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.593e-05/0.4259, allocations: 32 kB / 0.5193 GB, free: 2.246 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.349e-05/0.4259, allocations: 11.94 kB / 0.5193 GB, free: 2.234 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.4259, allocations: 0 / 0.5193 GB, free: 2.234 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002573/0.4284, allocations: 1.343 MB / 0.5206 GB, free: 0.8672 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008447/0.4293, allocations: 443.1 kB / 0.521 GB, free: 444 kB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003346/0.4296, allocations: 12 kB / 0.521 GB, free: 432 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006867/0.4303, allocations: 27.95 kB / 0.5211 GB, free: 404 kB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001497/0.4305, allocations: 63.88 kB / 0.5211 GB, free: 340 kB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.567e-05/0.4305, allocations: 39.98 kB / 0.5212 GB, free: 300 kB / 430.1 MB Notification: Performance of sorting global known variables: time 0.00297/0.4335, allocations: 2.011 MB / 0.5231 GB, free: 14.29 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4335, allocations: 3.938 kB / 0.5231 GB, free: 14.29 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001479/0.435, allocations: 0.5969 MB / 0.5237 GB, free: 13.69 MB / 446.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.001357/0.4363, allocations: 0.7768 MB / 0.5245 GB, free: 12.9 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001694/0.438, allocations: 0.7756 MB / 0.5252 GB, free: 12.1 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.438, allocations: 0 / 0.5252 GB, free: 12.1 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007715/0.4388, allocations: 426.9 kB / 0.5256 GB, free: 11.66 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002628/0.4414, allocations: 0.6359 MB / 0.5262 GB, free: 11.02 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007891/0.4493, allocations: 4.582 MB / 0.5307 GB, free: 6.395 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001615/0.4509, allocations: 1.718 MB / 0.5324 GB, free: 4.645 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00115/0.4521, allocations: 361.3 kB / 0.5327 GB, free: 4.285 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002772/0.4524, allocations: 151.4 kB / 0.5329 GB, free: 4.137 MB / 446.1 MB Notification: Performance of SimCode: time 9.02e-07/0.4524, allocations: 0 / 0.5329 GB, free: 4.137 MB / 446.1 MB Notification: Performance of Templates: time 0.2295/0.6819, allocations: 32.75 MB / 0.5649 GB, free: 84.99 MB / 446.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/InvertersExtendedModel/InvertersExtendedModel.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_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.736281510442495]