Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.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.001419/0.001419, allocations: 107.6 kB / 21.18 MB, free: 452 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.001673/0.001673, allocations: 214.8 kB / 24.47 MB, free: 3.777 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.424/1.424, allocations: 207.7 MB / 235.3 MB, free: 9.809 MB / 190.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.Inverter,tolerance=1e-07,outputFormat="mat",numberOfIntervals=1999,variableFilter="time|mp.S.v",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter") translateModel(Modelica.Electrical.Spice3.Examples.Inverter,tolerance=1e-07,outputFormat="mat",numberOfIntervals=1999,variableFilter="time|mp.S.v",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter") [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002045/0.002045, allocations: 58.58 kB / 347.7 MB, free: 9.391 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2614/0.2635, allocations: 49.15 MB / 396.8 MB, free: 9.391 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.006972/0.2704, allocations: 6.662 MB / 403.5 MB, free: 4.891 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02573/0.2962, allocations: 15.88 MB / 419.4 MB, free: 9.574 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002391/0.2986, allocations: 94.16 kB / 419.5 MB, free: 9.508 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003859/0.3024, allocations: 0.7453 MB / 420.2 MB, free: 8.98 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01106/0.3135, allocations: 1.79 MB / 422 MB, free: 7.617 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00795/0.3214, allocations: 1.264 MB / 423.3 MB, free: 6.672 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00955/0.331, allocations: 3.2 MB / 426.5 MB, free: 5.137 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006947/0.3317, allocations: 130 kB / 426.6 MB, free: 5.043 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001829/0.3335, allocations: 0.5347 MB / 427.1 MB, free: 4.801 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001639/0.3352, allocations: 0.5312 MB / 427.7 MB, free: 4.27 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002814/0.3354, allocations: 43.94 kB / 427.7 MB, free: 4.227 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006792/0.3422, allocations: 1.05 MB / 428.8 MB, free: 3.176 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003952/0.3426, allocations: 182.8 kB / 428.9 MB, free: 2.996 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001324/0.3439, allocations: 0.4967 MB / 429.4 MB, free: 2.496 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005172/0.3491, allocations: 2.26 MB / 431.7 MB, free: 232 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.06e-06/0.3491, allocations: 0 / 431.7 MB, free: 232 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.923e-06/0.3491, allocations: 0 / 431.7 MB, free: 232 kB / 334.1 MB Notification: Performance of Transformations before backend: time 5.927e-05/0.3492, allocations: 0 / 431.7 MB, free: 232 kB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.003733/0.3529, allocations: 2.003 MB / 433.7 MB, free: 14.18 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.812e-05/0.353, allocations: 15.92 kB / 433.7 MB, free: 14.16 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000333/0.3533, allocations: 206.7 kB / 433.9 MB, free: 13.96 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0022/0.3555, allocations: 1.261 MB / 435.2 MB, free: 12.62 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.51e-05/0.3555, allocations: 20.66 kB / 435.2 MB, free: 12.6 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.727e-05/0.3556, allocations: 31.98 kB / 435.2 MB, free: 12.57 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009512/0.3566, allocations: 437.8 kB / 435.6 MB, free: 12.13 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.284e-05/0.3566, allocations: 0 / 435.6 MB, free: 12.13 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.329e-05/0.3566, allocations: 8 kB / 435.7 MB, free: 12.12 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.744e-05/0.3566, allocations: 12 kB / 435.7 MB, free: 12.11 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001135/0.3578, allocations: 482.3 kB / 436.1 MB, free: 11.64 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0029/0.3607, allocations: 1.429 MB / 437.6 MB, free: 10.17 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009717/0.3616, allocations: 351.2 kB / 437.9 MB, free: 9.82 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007391/0.3624, allocations: 365.7 kB / 438.3 MB, free: 9.461 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01373/0.3761, allocations: 6.989 MB / 445.3 MB, free: 2.262 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006367/0.3768, allocations: 259.1 kB / 445.5 MB, free: 1.996 MB / 350.1 MB Notification: Performance of pre-optimization done (n=29): time 2.194e-06/0.3768, allocations: 0 / 445.5 MB, free: 1.996 MB / 350.1 MB Notification: Performance of matching and sorting (n=29): time 0.002119/0.3789, allocations: 0.771 MB / 446.3 MB, free: 1.215 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.52e-05/0.3789, allocations: 59.39 kB / 446.3 MB, free: 1.145 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001884/0.3808, allocations: 1.476 MB / 447.8 MB, free: 15.63 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.582e-05/0.3809, allocations: 33.7 kB / 447.8 MB, free: 15.59 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007146/0.3816, allocations: 0.7272 MB / 448.6 MB, free: 14.86 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001029/0.3817, allocations: 99.19 kB / 448.7 MB, free: 14.77 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001907/0.3819, allocations: 130 kB / 448.8 MB, free: 14.63 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001534/0.382, allocations: 326 kB / 449.1 MB, free: 14.31 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004705/0.3825, allocations: 160.9 kB / 449.3 MB, free: 14.15 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006357/0.3831, allocations: 358.8 kB / 449.6 MB, free: 13.71 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001127/0.3843, allocations: 0.5334 MB / 450.2 MB, free: 13.08 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.843e-06/0.3843, allocations: 8 kB / 450.2 MB, free: 13.07 MB / 366.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001701/0.386, allocations: 0.7602 MB / 450.9 MB, free: 12.3 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.581e-05/0.386, allocations: 8.125 kB / 450.9 MB, free: 12.3 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.133e-05/0.3861, allocations: 47.94 kB / 451 MB, free: 12.25 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003594/0.3864, allocations: 132.8 kB / 451.1 MB, free: 12.12 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004333/0.3869, allocations: 107.8 kB / 451.2 MB, free: 12.01 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007409/0.3876, allocations: 0.6773 MB / 451.9 MB, free: 11.31 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006162/0.3882, allocations: 79.53 kB / 452 MB, free: 11.23 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.241e-05/0.3883, allocations: 36 kB / 452 MB, free: 11.2 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * 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 (53): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0004755/0.3888, allocations: 273.7 kB / 452.3 MB, free: 10.92 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002472/0.389, allocations: 194.8 kB / 452.5 MB, free: 10.73 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001893/0.3909, allocations: 0.7502 MB / 453.2 MB, free: 9.965 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.899e-06/0.3909, allocations: 0 / 453.2 MB, free: 9.965 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.3909, allocations: 0 / 453.2 MB, free: 9.965 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.938e-06/0.3909, allocations: 4 kB / 453.2 MB, free: 9.961 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002344/0.3933, allocations: 1.204 MB / 454.4 MB, free: 8.711 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.774e-05/0.3933, allocations: 36.06 kB / 454.5 MB, free: 8.676 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002549/0.3936, allocations: 47.95 kB / 454.5 MB, free: 8.629 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002564/0.3938, allocations: 120.8 kB / 454.6 MB, free: 8.508 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.654e-05/0.3939, allocations: 16 kB / 454.6 MB, free: 8.492 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000653/0.3945, allocations: 0.6733 MB / 455.3 MB, free: 7.793 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.645e-06/0.3945, allocations: 8.094 kB / 455.3 MB, free: 7.785 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001412/0.3959, allocations: 0.7251 MB / 456 MB, free: 7.031 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004836/0.3964, allocations: 212.6 kB / 456.2 MB, free: 6.82 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001555/0.3966, allocations: 15.94 kB / 456.3 MB, free: 6.805 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004533/0.397, allocations: 23.97 kB / 456.3 MB, free: 6.781 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001253/0.3972, allocations: 43.94 kB / 456.3 MB, free: 6.738 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.634e-05/0.3972, allocations: 20 kB / 456.3 MB, free: 6.719 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001369/0.3986, allocations: 0.9691 MB / 457.3 MB, free: 5.73 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.3986, allocations: 4 kB / 457.3 MB, free: 5.727 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009657/0.3995, allocations: 335.5 kB / 457.6 MB, free: 5.398 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * 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 (21): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009847/0.4005, allocations: 0.5698 MB / 458.2 MB, free: 4.816 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001489/0.402, allocations: 0.4927 MB / 458.7 MB, free: 4.312 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.856e-06/0.402, allocations: 4.125 kB / 458.7 MB, free: 4.309 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007016/0.4027, allocations: 279.1 kB / 459 MB, free: 4.023 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001051/0.4038, allocations: 272.2 kB / 459.3 MB, free: 3.754 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003771/0.4075, allocations: 2.256 MB / 461.5 MB, free: 1.457 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006187/0.4082, allocations: 0.5705 MB / 462.1 MB, free: 0.8477 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0006107/0.4088, allocations: 199.9 kB / 462.3 MB, free: 0.6484 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001586/0.4089, allocations: 91.44 kB / 462.4 MB, free: 0.5586 MB / 366.1 MB Notification: Performance of SimCode: time 1.203e-06/0.4089, allocations: 0 / 462.4 MB, free: 0.5586 MB / 366.1 MB Notification: Performance of Templates: time 0.03697/0.4459, allocations: 21.48 MB / 483.8 MB, free: 11.02 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.sim & ./Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/Inverter/Inverter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Inverter.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.24682779610157]