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.0009334/0.0009334, allocations: 94.38 kB / 16.95 MB, free: 6.098 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.0009005/0.0009006, allocations: 179.3 kB / 17.84 MB, free: 5.723 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.839/1.839, 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.0004614/0.0004615, allocations: 11.94 kB / 280.9 MB, free: 3.656 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1093/0.1098, allocations: 47.58 MB / 328.5 MB, free: 4 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01244/0.1223, allocations: 12.93 MB / 341.4 MB, free: 7.027 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.02371/0.146, allocations: 17.99 MB / 359.4 MB, free: 4.984 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00278/0.1489, allocations: 31.81 kB / 359.4 MB, free: 4.953 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003427/0.1523, allocations: 0.9524 MB / 360.4 MB, free: 3.992 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01058/0.1629, allocations: 1.859 MB / 362.2 MB, free: 2.121 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006141/0.1691, allocations: 1.065 MB / 363.3 MB, free: 1.051 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0126/0.1817, allocations: 6.039 MB / 369.3 MB, free: 10.99 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001542/0.1833, allocations: 441 kB / 369.8 MB, free: 10.53 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002035/0.1853, allocations: 0.8706 MB / 370.6 MB, free: 9.652 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001989/0.1874, allocations: 1.025 MB / 371.6 MB, free: 8.621 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005086/0.1879, allocations: 40 kB / 371.7 MB, free: 8.582 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005361/0.1933, allocations: 1.077 MB / 372.8 MB, free: 7.504 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000499/0.1938, allocations: 281.8 kB / 373 MB, free: 7.227 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001291/0.1951, allocations: 0.6598 MB / 373.7 MB, free: 6.559 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003221/0.1983, allocations: 2.882 MB / 376.6 MB, free: 3.668 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.793e-06/0.1983, allocations: 0 / 376.6 MB, free: 3.668 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.344e-06/0.1983, allocations: 0 / 376.6 MB, free: 3.668 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.852e-05/0.1984, allocations: 4 kB / 376.6 MB, free: 3.664 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.004574/0.203, allocations: 3.393 MB / 380 MB, free: 200 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.474e-05/0.203, allocations: 11.97 kB / 380 MB, free: 188 kB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001223/0.2032, allocations: 106.4 kB / 380.1 MB, free: 72 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2301/0.4333, allocations: 409.7 kB / 380.5 MB, free: 27.07 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005307/0.4386, allocations: 2.319 MB / 382.8 MB, free: 26.52 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.893e-05/0.4387, allocations: 38.86 kB / 382.8 MB, free: 26.52 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001809/0.4389, allocations: 55.31 kB / 382.9 MB, free: 26.52 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001611/0.4405, allocations: 0.7495 MB / 383.7 MB, free: 26.48 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.742e-05/0.4406, allocations: 0 / 383.7 MB, free: 26.48 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.928e-05/0.4406, allocations: 20.86 kB / 383.7 MB, free: 26.48 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.675e-05/0.4407, allocations: 20.62 kB / 383.7 MB, free: 26.48 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001652/0.4423, allocations: 0.8576 MB / 384.6 MB, free: 26.47 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006821/0.4492, allocations: 3.132 MB / 387.7 MB, free: 25.95 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001293/0.4505, allocations: 0.6174 MB / 388.3 MB, free: 25.92 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009793/0.4515, allocations: 0.6722 MB / 389 MB, free: 25.9 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02434/0.4759, allocations: 30.24 MB / 419.2 MB, free: 3.059 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006637/0.4766, allocations: 387.1 kB / 419.6 MB, free: 2.91 MB / 318.1 MB Notification: Performance of pre-optimization done (n=49): time 2.635e-06/0.4766, allocations: 0 / 419.6 MB, free: 2.91 MB / 318.1 MB Notification: Performance of matching and sorting (n=49): time 0.002245/0.4788, allocations: 1.178 MB / 420.8 MB, free: 2.516 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.371e-05/0.4789, allocations: 64.2 kB / 420.8 MB, free: 2.445 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002957/0.4818, allocations: 3.06 MB / 423.9 MB, free: 168 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.209e-05/0.4819, allocations: 40.14 kB / 423.9 MB, free: 128 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001197/0.4831, allocations: 1.583 MB / 425.5 MB, free: 15.55 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001525/0.4833, allocations: 161.4 kB / 425.7 MB, free: 15.41 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.264e-05/0.4833, allocations: 16.5 kB / 425.7 MB, free: 15.41 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001378/0.4835, allocations: 337.2 kB / 426 MB, free: 15.09 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005631/0.484, allocations: 264.3 kB / 426.3 MB, free: 14.9 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008101/0.4849, allocations: 0.6188 MB / 426.9 MB, free: 14.2 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006633/0.4855, allocations: 350.4 kB / 427.2 MB, free: 13.97 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.127e-06/0.4855, allocations: 4 kB / 427.2 MB, free: 13.96 MB / 334.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002356/0.4879, allocations: 1.282 MB / 428.5 MB, free: 12.94 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.078e-05/0.488, allocations: 15.95 kB / 428.5 MB, free: 12.93 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001193/0.4881, allocations: 81.52 kB / 428.6 MB, free: 12.85 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.182e-05/0.4881, allocations: 20 kB / 428.6 MB, free: 12.83 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006954/0.4888, allocations: 218.6 kB / 428.8 MB, free: 12.64 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.926e-05/0.4889, allocations: 29.89 kB / 428.9 MB, free: 12.62 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001323/0.4902, allocations: 116 kB / 429 MB, free: 12.52 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001197/0.4903, allocations: 62.5 kB / 429 MB, free: 12.46 MB / 334.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.0008942/0.4912, allocations: 453.9 kB / 429.5 MB, free: 12.2 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005083/0.4917, allocations: 399.1 kB / 429.9 MB, free: 11.81 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002959/0.4947, allocations: 1.272 MB / 431.2 MB, free: 10.82 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.91e-05/0.4947, allocations: 8 kB / 431.2 MB, free: 10.81 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.502e-06/0.4947, allocations: 3 kB / 431.2 MB, free: 10.81 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.039e-06/0.4948, allocations: 0 / 431.2 MB, free: 10.81 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003491/0.4983, allocations: 2.193 MB / 433.4 MB, free: 9.125 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000112/0.4984, allocations: 67.56 kB / 433.4 MB, free: 9.062 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004374/0.4988, allocations: 110 kB / 433.5 MB, free: 8.965 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.427e-06/0.4989, allocations: 4 kB / 433.5 MB, free: 8.961 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.649e-05/0.4989, allocations: 35.61 kB / 433.6 MB, free: 8.934 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.507e-06/0.4989, allocations: 0 / 433.6 MB, free: 8.934 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.447e-06/0.4989, allocations: 4 kB / 433.6 MB, free: 8.93 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002292/0.5012, allocations: 1.379 MB / 435 MB, free: 7.656 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008017/0.502, allocations: 495.9 kB / 435.4 MB, free: 7.148 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002755/0.5023, allocations: 16.05 kB / 435.5 MB, free: 7.133 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006143/0.503, allocations: 39.97 kB / 435.5 MB, free: 7.094 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001539/0.5031, allocations: 66.36 kB / 435.6 MB, free: 7.035 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.999e-05/0.5032, allocations: 39.98 kB / 435.6 MB, free: 6.996 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.002725/0.5059, allocations: 1.98 MB / 437.6 MB, free: 5.023 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.5059, allocations: 4 kB / 437.6 MB, free: 5.02 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001668/0.5076, allocations: 0.5982 MB / 438.2 MB, free: 4.445 MB / 334.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.003642/0.5113, allocations: 2.59 MB / 440.8 MB, free: 1.992 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001692/0.513, allocations: 0.8456 MB / 441.6 MB, free: 1.156 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.516e-06/0.513, allocations: 0 / 441.6 MB, free: 1.156 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007678/0.5138, allocations: 472.4 kB / 442.1 MB, free: 0.6836 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002161/0.5159, allocations: 0.511 MB / 442.6 MB, free: 172 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04012/0.5561, allocations: 19.53 MB / 462.1 MB, free: 10.69 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001141/0.5573, allocations: 1.715 MB / 463.8 MB, free: 8.949 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001403/0.5587, allocations: 361.4 kB / 464.2 MB, free: 8.59 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001307/0.56, allocations: 1.276 MB / 465.5 MB, free: 7.312 MB / 366.1 MB Notification: Performance of SimCode: time 7.81e-07/0.56, allocations: 1.312 kB / 465.5 MB, free: 7.312 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.12/0.6801, allocations: 59.02 MB / 0.5122 GB, free: 12.3 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002251/0.6803, allocations: 193.8 kB / 0.5124 GB, free: 12.06 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.466/5.147, allocations: 0 / 0.5124 GB, free: 12.06 MB / 430.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