Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") translateModel(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001116/0.001116, allocations: 174.9 kB / 16.72 MB, free: 4.965 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.404/1.404, allocations: 205.4 MB / 222.9 MB, free: 9.004 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000807/0.0008071, allocations: 98.28 kB / 271.2 MB, free: 8.242 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003027/0.0003028, allocations: 8 kB / 327.5 MB, free: 15.89 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2289/0.2292, allocations: 47.58 MB / 375.1 MB, free: 45.45 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01028/0.2396, allocations: 12.93 MB / 388 MB, free: 35.18 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01779/0.2574, allocations: 18 MB / 406 MB, free: 17.72 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003275/0.2608, allocations: 31.81 kB / 406 MB, free: 17.69 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003225/0.264, allocations: 0.9486 MB / 407 MB, free: 16.73 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007631/0.2717, allocations: 1.859 MB / 408.8 MB, free: 14.86 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004331/0.276, allocations: 1.073 MB / 409.9 MB, free: 13.79 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.009677/0.2858, allocations: 6.028 MB / 415.9 MB, free: 7.734 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001071/0.2869, allocations: 450 kB / 416.4 MB, free: 7.273 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001325/0.2882, allocations: 0.8667 MB / 417.3 MB, free: 6.402 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008585/0.2891, allocations: 1.029 MB / 418.3 MB, free: 5.367 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000153/0.2892, allocations: 48 kB / 418.3 MB, free: 5.32 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003313/0.2926, allocations: 1.074 MB / 419.4 MB, free: 4.246 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002604/0.2928, allocations: 281.8 kB / 419.7 MB, free: 3.969 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001371/0.2942, allocations: 1.357 MB / 421 MB, free: 2.598 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002341/0.2966, allocations: 2.882 MB / 423.9 MB, free: 15.71 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.661e-06/0.2966, allocations: 3.938 kB / 423.9 MB, free: 15.7 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.974e-06/0.2966, allocations: 0 / 423.9 MB, free: 15.7 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.313e-05/0.2967, allocations: 0 / 423.9 MB, free: 15.7 MB / 314.7 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.005103/0.3018, allocations: 3.358 MB / 427.3 MB, free: 12.27 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.436e-05/0.3018, allocations: 12.03 kB / 427.3 MB, free: 12.26 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004189/0.3022, allocations: 418.8 kB / 427.7 MB, free: 11.84 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003592/0.3058, allocations: 2.503 MB / 430.2 MB, free: 9.27 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.733e-05/0.3059, allocations: 37 kB / 430.2 MB, free: 9.234 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001219/0.306, allocations: 48 kB / 430.3 MB, free: 9.188 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001397/0.3074, allocations: 0.746 MB / 431 MB, free: 8.438 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.496e-05/0.3075, allocations: 11.94 kB / 431 MB, free: 8.426 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.429e-05/0.3075, allocations: 20 kB / 431.1 MB, free: 8.406 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.175e-05/0.3076, allocations: 19.98 kB / 431.1 MB, free: 8.387 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001589/0.3092, allocations: 0.8554 MB / 431.9 MB, free: 7.527 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005529/0.3147, allocations: 3.149 MB / 435.1 MB, free: 4.301 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001226/0.316, allocations: 0.6177 MB / 435.7 MB, free: 3.676 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001018/0.317, allocations: 0.6634 MB / 436.4 MB, free: 3.004 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02863/0.3456, allocations: 30.24 MB / 466.6 MB, free: 0.6602 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007378/0.3464, allocations: 381.6 kB / 467 MB, free: 284 kB / 346.7 MB Notification: Performance of pre-optimization done (n=49): time 2.445e-06/0.3464, allocations: 0 / 467 MB, free: 284 kB / 346.7 MB Notification: Performance of matching and sorting (n=49): time 0.002288/0.3487, allocations: 1.182 MB / 468.2 MB, free: 15.08 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.786e-05/0.3488, allocations: 59.39 kB / 468.2 MB, free: 15.01 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00349/0.3523, allocations: 3.064 MB / 471.3 MB, free: 11.95 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.872e-05/0.3523, allocations: 37.7 kB / 471.3 MB, free: 11.91 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001265/0.3536, allocations: 1.58 MB / 472.9 MB, free: 10.31 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001385/0.3538, allocations: 161.7 kB / 473.1 MB, free: 10.15 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.928e-05/0.3538, allocations: 20 kB / 473.1 MB, free: 10.13 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001225/0.3539, allocations: 337.9 kB / 473.4 MB, free: 9.797 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005803/0.3545, allocations: 261.9 kB / 473.7 MB, free: 9.543 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007943/0.3553, allocations: 0.6216 MB / 474.3 MB, free: 8.746 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00142/0.3568, allocations: 0.9403 MB / 475.2 MB, free: 7.633 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.113e-06/0.3568, allocations: 8 kB / 475.2 MB, free: 7.625 MB / 362.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002099/0.3589, allocations: 1.288 MB / 476.5 MB, free: 6.328 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.543e-05/0.3589, allocations: 12 kB / 476.5 MB, free: 6.316 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.874e-05/0.359, allocations: 80 kB / 476.6 MB, free: 6.238 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.65e-05/0.3591, allocations: 16 kB / 476.6 MB, free: 6.223 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007101/0.3598, allocations: 215.9 kB / 476.8 MB, free: 6.012 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.485e-05/0.3598, allocations: 27.92 kB / 476.9 MB, free: 5.984 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009345/0.3608, allocations: 118.9 kB / 477 MB, free: 5.867 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001/0.3609, allocations: 64 kB / 477 MB, free: 5.805 MB / 362.7 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 ($PRE.vin.counter,vin.counter,$PRE.v.counter,v.counter,$whenCondition2,$whenCondition1,$PRE.vin.T0,vin.T0,$PRE.vin.counter2,vin.counter2,$PRE.v.T0,v.T0,$PRE.v.counter2,v.counter2) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007663/0.3616, allocations: 459.8 kB / 477.5 MB, free: 5.348 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003583/0.362, allocations: 407.1 kB / 477.9 MB, free: 4.945 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002952/0.365, allocations: 1.258 MB / 479.1 MB, free: 3.676 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.995e-06/0.365, allocations: 4 kB / 479.2 MB, free: 3.672 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.88e-06/0.365, allocations: 0 / 479.2 MB, free: 3.672 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.983e-06/0.365, allocations: 3.984 kB / 479.2 MB, free: 3.668 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003239/0.3682, allocations: 2.19 MB / 481.3 MB, free: 1.41 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.021e-05/0.3684, allocations: 75.98 kB / 481.4 MB, free: 1.336 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004724/0.3688, allocations: 99.86 kB / 481.5 MB, free: 1.238 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.413e-06/0.3689, allocations: 4.062 kB / 481.5 MB, free: 1.234 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.823e-05/0.3689, allocations: 39.98 kB / 481.6 MB, free: 1.195 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.93e-06/0.3689, allocations: 4 kB / 481.6 MB, free: 1.191 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.3689, allocations: 0 / 481.6 MB, free: 1.191 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002164/0.3711, allocations: 1.384 MB / 482.9 MB, free: 15.78 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006838/0.3718, allocations: 492 kB / 483.4 MB, free: 15.27 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002666/0.3721, allocations: 8 kB / 483.4 MB, free: 15.27 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006568/0.3727, allocations: 52.02 kB / 483.5 MB, free: 15.21 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001431/0.3729, allocations: 63.81 kB / 483.6 MB, free: 15.15 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.267e-05/0.373, allocations: 36 kB / 483.6 MB, free: 15.12 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.00257/0.3755, allocations: 1.984 MB / 485.6 MB, free: 13.14 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.51e-07/0.3756, allocations: 0 / 485.6 MB, free: 13.14 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001289/0.3769, allocations: 0.6011 MB / 486.2 MB, free: 12.54 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001081/0.378, allocations: 0.7885 MB / 487 MB, free: 11.74 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001658/0.3796, allocations: 0.8413 MB / 487.8 MB, free: 10.88 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.079e-06/0.3796, allocations: 3.938 kB / 487.8 MB, free: 10.87 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007519/0.3804, allocations: 471.2 kB / 488.3 MB, free: 10.39 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002065/0.3825, allocations: 0.5032 MB / 488.8 MB, free: 9.879 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006649/0.3891, allocations: 5.203 MB / 494 MB, free: 4.633 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001192/0.3904, allocations: 1.718 MB / 495.7 MB, free: 2.887 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004137/0.3908, allocations: 159.4 kB / 495.8 MB, free: 2.73 MB / 378.7 MB Notification: Performance of SimCode: time 1.422e-06/0.3908, allocations: 0 / 495.8 MB, free: 2.73 MB / 378.7 MB Notification: Performance of Templates: time 0.1951/0.5859, allocations: 38.23 MB / 0.5216 GB, free: 113.7 MB / 394.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/InvertersExtendedModel/InvertersExtendedModel.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches