Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.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 3.2.3+maint.om/package.mo", uses=false) 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.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: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001037/0.001037, allocations: 97.14 kB / 16.94 MB, free: 5.98 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.001057/0.001057, allocations: 176.5 kB / 17.82 MB, free: 5.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.604/1.604, allocations: 205.4 MB / 224 MB, free: 13.16 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004548/0.0004549, allocations: 11.44 kB / 280.8 MB, free: 3.652 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09855/0.09901, allocations: 47.58 MB / 328.4 MB, free: 4 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01081/0.1098, allocations: 11.75 MB / 340.2 MB, free: 8.215 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.02121/0.1311, allocations: 17.07 MB / 357.2 MB, free: 7.102 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003026/0.1342, allocations: 31.81 kB / 357.3 MB, free: 7.07 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004418/0.1386, allocations: 0.9834 MB / 358.3 MB, free: 6.082 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01012/0.1488, allocations: 2.107 MB / 360.4 MB, free: 3.969 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005162/0.154, allocations: 1.153 MB / 361.5 MB, free: 2.812 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01117/0.1652, allocations: 6.201 MB / 367.7 MB, free: 12.6 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000947/0.1662, allocations: 429 kB / 368.1 MB, free: 12.15 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001875/0.168, allocations: 0.8628 MB / 369 MB, free: 11.28 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001727/0.1698, allocations: 1.017 MB / 370 MB, free: 10.26 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001766/0.17, allocations: 44 kB / 370.1 MB, free: 10.21 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004566/0.1746, allocations: 1.21 MB / 371.3 MB, free: 9.004 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003275/0.1749, allocations: 289.8 kB / 371.5 MB, free: 8.719 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008601/0.1758, allocations: 0.656 MB / 372.2 MB, free: 8.055 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00317/0.1789, allocations: 2.789 MB / 375 MB, free: 5.258 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.526e-06/0.179, allocations: 0 / 375 MB, free: 5.258 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.179, allocations: 0 / 375 MB, free: 5.258 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.892e-05/0.179, allocations: 0 / 375 MB, free: 5.258 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.006475/0.1855, allocations: 3.385 MB / 378.4 MB, free: 1.797 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.48e-05/0.1856, allocations: 12.03 kB / 378.4 MB, free: 1.785 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000193/0.1858, allocations: 98.5 kB / 378.5 MB, free: 1.68 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004965/0.1863, allocations: 414.9 kB / 378.9 MB, free: 1.27 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2105/0.3968, allocations: 2.305 MB / 381.2 MB, free: 51.82 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.618e-05/0.3969, allocations: 37.81 kB / 381.2 MB, free: 51.82 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000132/0.397, allocations: 56.97 kB / 381.3 MB, free: 51.82 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001469/0.3985, allocations: 0.7457 MB / 382 MB, free: 51.77 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.481e-05/0.3985, allocations: 3.75 kB / 382 MB, free: 51.77 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.829e-05/0.3986, allocations: 23.97 kB / 382.1 MB, free: 51.77 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.048e-05/0.3986, allocations: 20.48 kB / 382.1 MB, free: 51.77 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001904/0.4006, allocations: 0.8582 MB / 382.9 MB, free: 51.77 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005942/0.4065, allocations: 3.108 MB / 386 MB, free: 50.33 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001265/0.4078, allocations: 0.6165 MB / 386.7 MB, free: 50.09 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02494/0.4328, allocations: 30.37 MB / 417 MB, free: 23.16 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006626/0.4335, allocations: 386 kB / 417.4 MB, free: 22.78 MB / 318.1 MB Notification: Performance of pre-optimization done (n=49): time 2.083e-06/0.4335, allocations: 0 / 417.4 MB, free: 22.78 MB / 318.1 MB Notification: Performance of matching and sorting (n=49): time 0.002021/0.4355, allocations: 1.49 MB / 418.9 MB, free: 21.21 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.749e-05/0.4356, allocations: 60.03 kB / 419 MB, free: 21.14 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002754/0.4383, allocations: 3.068 MB / 422 MB, free: 18.08 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.847e-05/0.4384, allocations: 33.7 kB / 422.1 MB, free: 18.04 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000914/0.4393, allocations: 1.577 MB / 423.6 MB, free: 16.45 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001078/0.4394, allocations: 170.4 kB / 423.8 MB, free: 16.29 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.687e-05/0.4394, allocations: 16 kB / 423.8 MB, free: 16.27 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.143e-05/0.4395, allocations: 343.7 kB / 424.2 MB, free: 15.93 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004884/0.44, allocations: 265.2 kB / 424.4 MB, free: 15.68 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006108/0.4406, allocations: 0.6179 MB / 425 MB, free: 14.91 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005635/0.4412, allocations: 347.8 kB / 425.4 MB, free: 14.57 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.532e-06/0.4412, allocations: 4 kB / 425.4 MB, free: 14.57 MB / 318.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001749/0.443, allocations: 1.284 MB / 426.7 MB, free: 13.28 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.145e-05/0.443, allocations: 8 kB / 426.7 MB, free: 13.27 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.061e-05/0.4431, allocations: 84 kB / 426.7 MB, free: 13.19 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.766e-05/0.4431, allocations: 16 kB / 426.8 MB, free: 13.17 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006511/0.4438, allocations: 220.9 kB / 427 MB, free: 12.96 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.758e-05/0.4438, allocations: 23.92 kB / 427 MB, free: 12.93 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009815/0.4448, allocations: 115 kB / 427.1 MB, free: 12.82 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.759e-05/0.4449, allocations: 75.98 kB / 427.2 MB, free: 12.75 MB / 318.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 ($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.0006291/0.4455, allocations: 449.4 kB / 427.6 MB, free: 12.3 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002436/0.4458, allocations: 403.1 kB / 428 MB, free: 11.9 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002601/0.4484, allocations: 1.281 MB / 429.3 MB, free: 10.62 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.613e-06/0.4484, allocations: 4 kB / 429.3 MB, free: 10.62 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/0.4484, allocations: 0 / 429.3 MB, free: 10.62 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.651e-06/0.4484, allocations: 0 / 429.3 MB, free: 10.62 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002922/0.4514, allocations: 2.194 MB / 431.5 MB, free: 8.371 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.676e-05/0.4515, allocations: 72.06 kB / 431.6 MB, free: 8.301 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004456/0.4519, allocations: 103.9 kB / 431.7 MB, free: 8.199 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.26e-06/0.4519, allocations: 0 / 431.7 MB, free: 8.199 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.999e-05/0.452, allocations: 32 kB / 431.7 MB, free: 8.168 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.729e-06/0.452, allocations: 3.938 kB / 431.7 MB, free: 8.164 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.452, allocations: 4 kB / 431.7 MB, free: 8.16 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002059/0.4541, allocations: 1.445 MB / 433.2 MB, free: 6.676 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006455/0.4547, allocations: 488 kB / 433.6 MB, free: 6.176 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002733/0.455, allocations: 8 kB / 433.6 MB, free: 6.168 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006331/0.4556, allocations: 51.97 kB / 433.7 MB, free: 6.117 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001236/0.4558, allocations: 55.94 kB / 433.7 MB, free: 6.062 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.478e-05/0.4558, allocations: 36 kB / 433.8 MB, free: 6.027 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.002011/0.4579, allocations: 1.984 MB / 435.8 MB, free: 4.051 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.4579, allocations: 3.938 kB / 435.8 MB, free: 4.047 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001241/0.4591, allocations: 0.5973 MB / 436.4 MB, free: 3.473 MB / 318.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 (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.002902/0.462, allocations: 2.751 MB / 439.1 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001436/0.4635, allocations: 0.8494 MB / 440 MB, free: 15.97 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.564e-06/0.4635, allocations: 0 / 440 MB, free: 15.97 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000772/0.4643, allocations: 467.5 kB / 440.4 MB, free: 15.5 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001787/0.4661, allocations: 0.5024 MB / 440.9 MB, free: 14.99 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04561/0.5117, allocations: 27.56 MB / 468.5 MB, free: 1.258 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001208/0.5129, allocations: 1.781 MB / 470.3 MB, free: 15.45 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0014/0.5143, allocations: 361.4 kB / 470.6 MB, free: 15.09 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001252/0.5156, allocations: 1.269 MB / 471.9 MB, free: 13.82 MB / 366.1 MB Notification: Performance of SimCode: time 6.71e-07/0.5156, allocations: 0 / 471.9 MB, free: 13.82 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1043/0.6199, allocations: 58.33 MB / 0.5178 GB, free: 3.422 MB / 414.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002082/0.6202, allocations: 196.4 kB / 0.518 GB, free: 3.176 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.663/4.283, allocations: 0 / 0.518 GB, free: 3.176 MB / 414.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel.fmu > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat does not exist to compare? outputFormat=mat