Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001602/0.001602, allocations: 111.1 kB / 20.44 MB, free: 1.176 MB / 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.001743/0.001743, allocations: 203.9 kB / 23.73 MB, free: 4.379 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.581/1.581, allocations: 230.6 MB / 257.5 MB, free: 7.789 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+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_4.1.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.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001619/0.001619, allocations: 55.91 kB / 378.2 MB, free: 2.551 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2604/0.2621, allocations: 53.37 MB / 431.6 MB, free: 6.711 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01561/0.2777, allocations: 12.89 MB / 444.5 MB, free: 9.77 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.03002/0.3077, allocations: 17.97 MB / 462.4 MB, free: 7.73 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002884/0.3106, allocations: 138.5 kB / 462.6 MB, free: 7.594 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003892/0.3145, allocations: 1.153 MB / 463.7 MB, free: 6.438 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008975/0.3234, allocations: 2.413 MB / 466.1 MB, free: 4.004 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005407/0.3288, allocations: 1.414 MB / 467.5 MB, free: 2.59 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01199/0.3408, allocations: 6.731 MB / 474.3 MB, free: 11.84 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007077/0.3415, allocations: 274.2 kB / 474.5 MB, free: 11.54 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001972/0.3435, allocations: 1.178 MB / 475.7 MB, free: 10.36 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001919/0.3454, allocations: 1.149 MB / 476.9 MB, free: 9.199 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002194/0.3457, allocations: 80 kB / 477 MB, free: 9.121 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003604/0.3493, allocations: 1.233 MB / 478.2 MB, free: 7.887 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004022/0.3497, allocations: 337.5 kB / 478.5 MB, free: 7.555 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00138/0.351, allocations: 1.048 MB / 479.6 MB, free: 6.5 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006152/0.3572, allocations: 4.048 MB / 483.6 MB, free: 2.434 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.3572, allocations: 0 / 483.6 MB, free: 2.434 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.3572, allocations: 0 / 483.6 MB, free: 2.434 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.343e-05/0.3573, allocations: 0 / 483.6 MB, free: 2.434 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.006232/0.3635, allocations: 3.894 MB / 487.5 MB, free: 14.48 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.744e-05/0.3635, allocations: 8.031 kB / 487.5 MB, free: 14.47 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005321/0.3641, allocations: 429.3 kB / 487.9 MB, free: 14.05 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004008/0.3681, allocations: 2.345 MB / 490.3 MB, free: 11.61 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.229e-05/0.3681, allocations: 37 kB / 490.3 MB, free: 11.57 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001576/0.3683, allocations: 59.94 kB / 490.4 MB, free: 11.52 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00149/0.3698, allocations: 0.7265 MB / 491.1 MB, free: 10.79 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.602e-05/0.3698, allocations: 7.938 kB / 491.1 MB, free: 10.78 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.889e-05/0.3699, allocations: 24 kB / 491.1 MB, free: 10.75 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.397e-05/0.3699, allocations: 23.92 kB / 491.2 MB, free: 10.73 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001713/0.3716, allocations: 0.8124 MB / 492 MB, free: 9.918 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005859/0.3775, allocations: 2.804 MB / 494.8 MB, free: 7.062 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001256/0.3787, allocations: 0.5242 MB / 495.3 MB, free: 6.531 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001059/0.3798, allocations: 0.5653 MB / 495.9 MB, free: 5.957 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02796/0.4078, allocations: 13.72 MB / 0.4976 GB, free: 7.855 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000817/0.4086, allocations: 373.5 kB / 0.498 GB, free: 7.477 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 2.495e-06/0.4086, allocations: 0 / 0.498 GB, free: 7.477 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.002431/0.411, allocations: 1.122 MB / 0.4991 GB, free: 6.348 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.475e-05/0.411, allocations: 63.39 kB / 0.4991 GB, free: 6.273 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004014/0.4151, allocations: 3.106 MB / 0.5022 GB, free: 3.168 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 8.752e-05/0.4151, allocations: 41.64 kB / 0.5022 GB, free: 3.121 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001649/0.4168, allocations: 1.582 MB / 0.5038 GB, free: 1.531 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000222/0.417, allocations: 178.6 kB / 0.5039 GB, free: 1.355 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003358/0.4174, allocations: 230.4 kB / 0.5042 GB, free: 1.125 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000228/0.4176, allocations: 334 kB / 0.5045 GB, free: 0.793 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006505/0.4182, allocations: 249.8 kB / 0.5047 GB, free: 0.5469 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009314/0.4192, allocations: 0.6019 MB / 0.5053 GB, free: 15.77 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001619/0.4208, allocations: 0.9012 MB / 0.5062 GB, free: 14.7 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.977e-06/0.4208, allocations: 4 kB / 0.5062 GB, free: 14.69 MB / 430.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002651/0.4234, allocations: 1.266 MB / 0.5074 GB, free: 13.42 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.589e-05/0.4235, allocations: 12 kB / 0.5074 GB, free: 13.41 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000147/0.4236, allocations: 83.98 kB / 0.5075 GB, free: 13.32 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.605e-05/0.4237, allocations: 16 kB / 0.5075 GB, free: 13.31 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007941/0.4244, allocations: 203.6 kB / 0.5077 GB, free: 13.11 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.064e-05/0.4245, allocations: 24.23 kB / 0.5077 GB, free: 13.09 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001139/0.4256, allocations: 119.3 kB / 0.5079 GB, free: 12.97 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001146/0.4257, allocations: 64 kB / 0.5079 GB, free: 12.91 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.0008403/0.4266, allocations: 457.4 kB / 0.5084 GB, free: 12.45 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000447/0.427, allocations: 421.3 kB / 0.5088 GB, free: 12.04 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003043/0.4301, allocations: 1.207 MB / 0.5099 GB, free: 10.82 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.299e-05/0.4301, allocations: 7.984 kB / 0.5099 GB, free: 10.81 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.242e-06/0.4301, allocations: 0 / 0.5099 GB, free: 10.81 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.464e-06/0.4301, allocations: 0 / 0.5099 GB, free: 10.81 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004198/0.4343, allocations: 1.992 MB / 0.5119 GB, free: 8.773 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001007/0.4344, allocations: 71.98 kB / 0.512 GB, free: 8.703 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005182/0.4349, allocations: 87.92 kB / 0.512 GB, free: 8.617 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.484e-06/0.4349, allocations: 8.062 kB / 0.512 GB, free: 8.609 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.218e-05/0.435, allocations: 28 kB / 0.5121 GB, free: 8.582 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.669e-06/0.435, allocations: 11.92 kB / 0.5121 GB, free: 8.57 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.435, allocations: 0 / 0.5121 GB, free: 8.57 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00254/0.4375, allocations: 1.343 MB / 0.5134 GB, free: 7.203 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001075/0.4386, allocations: 435.1 kB / 0.5138 GB, free: 6.777 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003228/0.4389, allocations: 15.98 kB / 0.5138 GB, free: 6.762 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007678/0.4397, allocations: 27.97 kB / 0.5139 GB, free: 6.734 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001786/0.4399, allocations: 63.92 kB / 0.5139 GB, free: 6.672 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.487e-05/0.44, allocations: 40.06 kB / 0.514 GB, free: 6.633 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002984/0.4429, allocations: 2.01 MB / 0.5159 GB, free: 4.629 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4429, allocations: 3.938 kB / 0.5159 GB, free: 4.625 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.00156/0.4445, allocations: 0.6047 MB / 0.5165 GB, free: 4.02 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.001233/0.4457, allocations: 0.7729 MB / 0.5173 GB, free: 3.238 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001783/0.4475, allocations: 0.7717 MB / 0.518 GB, free: 2.441 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.524e-06/0.4475, allocations: 0 / 0.518 GB, free: 2.441 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008256/0.4483, allocations: 426.9 kB / 0.5184 GB, free: 2 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002744/0.4511, allocations: 0.6384 MB / 0.519 GB, free: 1.359 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007409/0.4585, allocations: 4.586 MB / 0.5235 GB, free: 12.73 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001281/0.4598, allocations: 1.158 MB / 0.5247 GB, free: 11.53 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001235/0.461, allocations: 361.3 kB / 0.525 GB, free: 11.17 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000258/0.4613, allocations: 147.4 kB / 0.5251 GB, free: 11.03 MB / 446.1 MB Notification: Performance of SimCode: time 1.152e-06/0.4613, allocations: 7.938 kB / 0.5251 GB, free: 11.02 MB / 446.1 MB Notification: Performance of Templates: time 0.265/0.7263, allocations: 37.81 MB / 0.5621 GB, free: 87.45 MB / 446.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & ./Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_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_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.997196834068745]