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.001763/0.001763, allocations: 179.5 kB / 16.41 MB, free: 5.703 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.414/1.414, allocations: 205.4 MB / 222.5 MB, free: 9.109 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.0008921/0.0008919, allocations: 90.3 kB / 270.9 MB, free: 8.359 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003148/0.0003149, allocations: 11.98 kB / 327 MB, free: 204 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2395/0.2398, allocations: 47.57 MB / 374.5 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.00939/0.2493, allocations: 12.93 MB / 387.5 MB, free: 35.15 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01631/0.2656, allocations: 18.01 MB / 405.5 MB, free: 17.84 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002254/0.2679, allocations: 31.81 kB / 405.5 MB, free: 17.81 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002509/0.2705, allocations: 0.9485 MB / 406.5 MB, free: 16.86 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005376/0.2758, allocations: 1.859 MB / 408.3 MB, free: 14.98 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002957/0.2788, allocations: 1.061 MB / 409.4 MB, free: 13.92 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.006974/0.2858, allocations: 6.039 MB / 415.4 MB, free: 7.855 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006764/0.2865, allocations: 437 kB / 415.8 MB, free: 7.402 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009425/0.2875, allocations: 0.8706 MB / 416.7 MB, free: 6.527 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007645/0.2882, allocations: 1.021 MB / 417.7 MB, free: 5.5 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001499/0.2884, allocations: 44 kB / 417.8 MB, free: 5.457 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00282/0.2912, allocations: 1.077 MB / 418.9 MB, free: 4.379 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001952/0.2914, allocations: 277.8 kB / 419.1 MB, free: 4.105 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004751/0.2919, allocations: 0.6598 MB / 419.8 MB, free: 3.438 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001847/0.2938, allocations: 2.886 MB / 422.7 MB, free: 0.543 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.2938, allocations: 0 / 422.7 MB, free: 0.543 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.824e-06/0.2938, allocations: 0 / 422.7 MB, free: 0.543 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.537e-05/0.2938, allocations: 0 / 422.7 MB, free: 0.543 MB / 298.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.004474/0.2983, allocations: 3.397 MB / 426.1 MB, free: 13.07 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.279e-05/0.2984, allocations: 12.03 kB / 426.1 MB, free: 13.06 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004042/0.2988, allocations: 422.8 kB / 426.5 MB, free: 12.64 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003255/0.3021, allocations: 2.327 MB / 428.8 MB, free: 10.25 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.855e-05/0.3021, allocations: 33 kB / 428.9 MB, free: 10.21 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001177/0.3022, allocations: 52 kB / 428.9 MB, free: 10.16 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001351/0.3036, allocations: 0.7499 MB / 429.7 MB, free: 9.41 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.242e-05/0.3036, allocations: 3.938 kB / 429.7 MB, free: 9.406 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.076e-05/0.3037, allocations: 27.98 kB / 429.7 MB, free: 9.379 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.783e-05/0.3037, allocations: 16 kB / 429.7 MB, free: 9.363 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001549/0.3053, allocations: 0.8632 MB / 430.6 MB, free: 8.496 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004726/0.31, allocations: 3.141 MB / 433.7 MB, free: 5.277 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001206/0.3112, allocations: 0.6104 MB / 434.3 MB, free: 4.66 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001035/0.3123, allocations: 0.6712 MB / 435 MB, free: 3.98 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02678/0.3391, allocations: 30.23 MB / 465.2 MB, free: 1.648 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007946/0.3399, allocations: 385.7 kB / 465.6 MB, free: 1.258 MB / 346.7 MB Notification: Performance of pre-optimization done (n=49): time 2.315e-06/0.3399, allocations: 0 / 465.6 MB, free: 1.258 MB / 346.7 MB Notification: Performance of matching and sorting (n=49): time 0.002245/0.3422, allocations: 1.178 MB / 466.8 MB, free: 72 kB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.851e-05/0.3422, allocations: 55.41 kB / 466.8 MB, free: 4 kB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003246/0.3455, allocations: 3.072 MB / 469.9 MB, free: 12.93 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.343e-05/0.3455, allocations: 37.7 kB / 469.9 MB, free: 12.89 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001177/0.3467, allocations: 1.569 MB / 471.5 MB, free: 11.31 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000143/0.3469, allocations: 177.7 kB / 471.7 MB, free: 11.13 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.404e-05/0.3469, allocations: 16 kB / 471.7 MB, free: 11.12 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001083/0.347, allocations: 341.9 kB / 472 MB, free: 10.78 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006237/0.3477, allocations: 257.9 kB / 472.3 MB, free: 10.53 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008073/0.3485, allocations: 0.6255 MB / 472.9 MB, free: 9.73 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006866/0.3492, allocations: 340.5 kB / 473.2 MB, free: 9.395 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.833e-06/0.3492, allocations: 8 kB / 473.2 MB, free: 9.387 MB / 362.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002204/0.3514, allocations: 1.28 MB / 474.5 MB, free: 8.102 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.526e-05/0.3515, allocations: 12 kB / 474.5 MB, free: 8.09 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001003/0.3516, allocations: 83.98 kB / 474.6 MB, free: 8.008 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.01e-05/0.3516, allocations: 23.95 kB / 474.6 MB, free: 7.984 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007561/0.3524, allocations: 215.9 kB / 474.9 MB, free: 7.773 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.226e-05/0.3524, allocations: 19.94 kB / 474.9 MB, free: 7.754 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009992/0.3534, allocations: 126.9 kB / 475 MB, free: 7.629 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001049/0.3535, allocations: 64 kB / 475.1 MB, free: 7.566 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.0008211/0.3543, allocations: 455.9 kB / 475.5 MB, free: 7.113 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003598/0.3547, allocations: 399.1 kB / 475.9 MB, free: 6.719 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002881/0.3576, allocations: 1.262 MB / 477.2 MB, free: 5.441 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.072e-05/0.3576, allocations: 7.953 kB / 477.2 MB, free: 5.434 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/0.3576, allocations: 0 / 477.2 MB, free: 5.434 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.083e-06/0.3576, allocations: 3.984 kB / 477.2 MB, free: 5.43 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003302/0.361, allocations: 2.198 MB / 479.4 MB, free: 3.168 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.057e-05/0.3611, allocations: 68 kB / 479.4 MB, free: 3.102 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004966/0.3616, allocations: 107.9 kB / 479.5 MB, free: 2.996 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.406e-06/0.3616, allocations: 4.062 kB / 479.5 MB, free: 2.992 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.288e-05/0.3616, allocations: 43.94 kB / 479.6 MB, free: 2.949 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.127e-06/0.3617, allocations: 0 / 479.6 MB, free: 2.949 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.3617, allocations: 0 / 479.6 MB, free: 2.949 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002315/0.364, allocations: 1.38 MB / 481 MB, free: 1.539 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008461/0.3648, allocations: 492 kB / 481.4 MB, free: 1.035 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002587/0.3651, allocations: 11.95 kB / 481.5 MB, free: 1.023 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006937/0.3658, allocations: 44.03 kB / 481.5 MB, free: 0.9805 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001383/0.366, allocations: 63.92 kB / 481.6 MB, free: 0.918 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.031e-05/0.3661, allocations: 39.94 kB / 481.6 MB, free: 0.8789 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.002502/0.3686, allocations: 1.98 MB / 483.6 MB, free: 14.91 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3686, allocations: 0 / 483.6 MB, free: 14.91 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001249/0.3698, allocations: 0.6012 MB / 484.2 MB, free: 14.3 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.0009358/0.3708, allocations: 0.7534 MB / 484.9 MB, free: 13.54 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001562/0.3723, allocations: 0.8453 MB / 485.8 MB, free: 12.67 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.98e-06/0.3724, allocations: 4.062 kB / 485.8 MB, free: 12.67 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007312/0.3731, allocations: 467.4 kB / 486.2 MB, free: 12.19 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001669/0.3748, allocations: 0.511 MB / 486.8 MB, free: 11.67 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006179/0.381, allocations: 5.203 MB / 492 MB, free: 6.426 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001015/0.382, allocations: 1.722 MB / 493.7 MB, free: 4.676 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002907/0.3823, allocations: 151.4 kB / 493.8 MB, free: 4.527 MB / 378.7 MB Notification: Performance of SimCode: time 6.21e-07/0.3823, allocations: 0 / 493.8 MB, free: 4.527 MB / 378.7 MB Notification: Performance of Templates: time 0.1946/0.5769, allocations: 38.3 MB / 0.5197 GB, free: 115.2 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