Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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.InvertersApartRecord,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") translateModel(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001246/0.001246, allocations: 96.64 kB / 16.5 MB, free: 6.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001222/0.001222, allocations: 194.4 kB / 17.42 MB, free: 6.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.283/1.283, allocations: 222.9 MB / 241.1 MB, free: 13.77 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009626/0.0009626, allocations: 51.14 kB / 299.9 MB, free: 6.117 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08086/0.08183, allocations: 49.45 MB / 349.4 MB, free: 4.664 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01242/0.09428, allocations: 14.58 MB / 364 MB, free: 6.023 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1702/0.2645, allocations: 20.87 MB / 384.8 MB, free: 8.047 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001316/0.2658, allocations: 30.31 kB / 384.9 MB, free: 8.035 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00274/0.2686, allocations: 1.08 MB / 386 MB, free: 7.559 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006782/0.2754, allocations: 1.914 MB / 387.9 MB, free: 6.449 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005152/0.2806, allocations: 1.208 MB / 389.1 MB, free: 5.82 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01061/0.2912, allocations: 6.361 MB / 395.4 MB, free: 3.457 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008814/0.2922, allocations: 438 kB / 395.9 MB, free: 3.242 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002066/0.2943, allocations: 1.046 MB / 396.9 MB, free: 2.812 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001045/0.2953, allocations: 1.095 MB / 398 MB, free: 2.23 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001816/0.2955, allocations: 49.5 kB / 398.1 MB, free: 2.23 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004689/0.3002, allocations: 1.455 MB / 399.5 MB, free: 1.605 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003918/0.3006, allocations: 313.7 kB / 399.8 MB, free: 1.359 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001682/0.3023, allocations: 1.347 MB / 401.2 MB, free: 496 kB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005152/0.3075, allocations: 3.662 MB / 404.8 MB, free: 13.75 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.3075, allocations: 0 / 404.8 MB, free: 13.75 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.775e-06/0.3075, allocations: 4 kB / 404.8 MB, free: 13.75 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.891e-05/0.3076, allocations: 3.938 kB / 404.8 MB, free: 13.75 MB / 318.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.005361/0.3129, allocations: 3.679 MB / 408.5 MB, free: 9.988 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.106e-05/0.313, allocations: 8.031 kB / 408.5 MB, free: 9.98 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004654/0.3135, allocations: 399.2 kB / 408.9 MB, free: 9.586 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003658/0.3171, allocations: 2.437 MB / 411.3 MB, free: 7.074 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.489e-05/0.3172, allocations: 37 kB / 411.4 MB, free: 7.039 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001271/0.3173, allocations: 53.84 kB / 411.4 MB, free: 6.988 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001444/0.3188, allocations: 0.7342 MB / 412.2 MB, free: 6.25 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.38e-05/0.3188, allocations: 0 / 412.2 MB, free: 6.25 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.405e-05/0.3189, allocations: 20 kB / 412.2 MB, free: 6.23 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.776e-05/0.3189, allocations: 27.98 kB / 412.2 MB, free: 6.203 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001557/0.3205, allocations: 0.8085 MB / 413 MB, free: 5.391 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005213/0.3257, allocations: 3.063 MB / 416.1 MB, free: 2.234 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001228/0.327, allocations: 0.5713 MB / 416.7 MB, free: 1.656 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001021/0.328, allocations: 0.6399 MB / 417.3 MB, free: 1.016 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02861/0.3566, allocations: 30.13 MB / 447.4 MB, free: 14.78 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007515/0.3574, allocations: 369.4 kB / 447.8 MB, free: 14.41 MB / 366.1 MB Notification: Performance of pre-optimization done (n=49): time 2.555e-06/0.3574, allocations: 0 / 447.8 MB, free: 14.41 MB / 366.1 MB Notification: Performance of matching and sorting (n=49): time 0.002223/0.3597, allocations: 1.097 MB / 448.9 MB, free: 13.3 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.591e-05/0.3597, allocations: 55.41 kB / 448.9 MB, free: 13.23 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003249/0.363, allocations: 2.935 MB / 451.9 MB, free: 10.29 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.372e-05/0.363, allocations: 37.7 kB / 451.9 MB, free: 10.25 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001156/0.3642, allocations: 1.486 MB / 453.4 MB, free: 8.75 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001506/0.3644, allocations: 169.7 kB / 453.6 MB, free: 8.582 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002963/0.3647, allocations: 226.1 kB / 453.8 MB, free: 8.355 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001148/0.3648, allocations: 337.9 kB / 454.1 MB, free: 8.02 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005759/0.3654, allocations: 241.9 kB / 454.3 MB, free: 7.785 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008163/0.3662, allocations: 0.602 MB / 455 MB, free: 7.012 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001395/0.3676, allocations: 0.9012 MB / 455.9 MB, free: 5.945 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.242e-06/0.3676, allocations: 3.938 kB / 455.9 MB, free: 5.941 MB / 366.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.00219/0.3698, allocations: 1.229 MB / 457.1 MB, free: 4.703 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.461e-05/0.3699, allocations: 15.94 kB / 457.1 MB, free: 4.688 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001001/0.37, allocations: 83.98 kB / 457.2 MB, free: 4.605 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.339e-05/0.37, allocations: 16.72 kB / 457.2 MB, free: 4.59 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006881/0.3707, allocations: 207.6 kB / 457.4 MB, free: 4.387 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.907e-05/0.3707, allocations: 19.94 kB / 457.4 MB, free: 4.367 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009675/0.3717, allocations: 111.1 kB / 457.5 MB, free: 4.258 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001068/0.3718, allocations: 64 kB / 457.6 MB, free: 4.195 MB / 366.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.000763/0.3726, allocations: 433.5 kB / 458 MB, free: 3.762 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003679/0.373, allocations: 383.3 kB / 458.4 MB, free: 3.383 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002819/0.3758, allocations: 1.198 MB / 459.6 MB, free: 2.168 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.635e-06/0.3758, allocations: 4 kB / 459.6 MB, free: 2.164 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.009e-06/0.3758, allocations: 0 / 459.6 MB, free: 2.164 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.116e-06/0.3758, allocations: 7.984 kB / 459.6 MB, free: 2.156 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003293/0.3791, allocations: 2.096 MB / 461.7 MB, free: 15.99 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.892e-05/0.3792, allocations: 71.94 kB / 461.8 MB, free: 15.92 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004766/0.3797, allocations: 91.86 kB / 461.9 MB, free: 15.83 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.684e-06/0.3797, allocations: 4 kB / 461.9 MB, free: 15.82 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.673e-05/0.3798, allocations: 31.98 kB / 461.9 MB, free: 15.79 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.2e-06/0.3798, allocations: 4 kB / 461.9 MB, free: 15.79 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.514e-06/0.3798, allocations: 0 / 461.9 MB, free: 15.79 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002234/0.3821, allocations: 1.293 MB / 463.2 MB, free: 14.46 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006966/0.3828, allocations: 480.1 kB / 463.7 MB, free: 13.97 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002834/0.3831, allocations: 12 kB / 463.7 MB, free: 13.96 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000656/0.3837, allocations: 31.95 kB / 463.7 MB, free: 13.93 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001569/0.3839, allocations: 64 kB / 463.8 MB, free: 13.87 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.452e-05/0.384, allocations: 39.94 kB / 463.8 MB, free: 13.83 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002361/0.3864, allocations: 1.907 MB / 465.7 MB, free: 11.92 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3864, allocations: 0 / 465.7 MB, free: 11.92 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001254/0.3876, allocations: 0.5816 MB / 466.3 MB, free: 11.34 MB / 382.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.001075/0.3887, allocations: 0.7828 MB / 467.1 MB, free: 10.55 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001555/0.3903, allocations: 0.8059 MB / 467.9 MB, free: 9.719 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.3903, allocations: 0 / 467.9 MB, free: 9.719 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007452/0.391, allocations: 446.9 kB / 468.3 MB, free: 9.258 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002338/0.3934, allocations: 0.5843 MB / 468.9 MB, free: 8.668 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006212/0.3996, allocations: 5.157 MB / 474.1 MB, free: 3.473 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001056/0.4007, allocations: 1.661 MB / 475.7 MB, free: 1.785 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001256/0.4019, allocations: 357.1 kB / 476.1 MB, free: 1.43 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002198/0.4022, allocations: 155.4 kB / 476.2 MB, free: 1.277 MB / 382.1 MB Notification: Performance of SimCode: time 7.51e-07/0.4022, allocations: 0 / 476.2 MB, free: 1.277 MB / 382.1 MB Notification: Performance of Templates: time 0.04925/0.4514, allocations: 30.12 MB / 0.4945 GB, free: 3.426 MB / 414.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & ./Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/InvertersApartRecord/InvertersApartRecord.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches