Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_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 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: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,fileNamePrefix="Modelica_4_0_0_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.0008532/0.0008532, allocations: 91.03 kB / 16.31 MB, free: 5.547 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.000926/0.0009261, allocations: 182.3 kB / 17.21 MB, free: 5.465 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.335/1.335, allocations: 223.2 MB / 241.2 MB, free: 292 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003108/0.0003109, allocations: 8 kB / 300.9 MB, free: 6.328 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1061/0.1064, allocations: 50.41 MB / 351.3 MB, free: 3.902 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01186/0.1183, allocations: 13.56 MB / 364.9 MB, free: 6.293 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.233/0.3514, allocations: 18.92 MB / 383.8 MB, free: 8.043 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002156/0.3536, allocations: 30.44 kB / 383.8 MB, free: 8.031 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003453/0.357, allocations: 0.9827 MB / 384.8 MB, free: 7.785 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009941/0.367, allocations: 1.884 MB / 386.7 MB, free: 7.191 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00515/0.3722, allocations: 1.111 MB / 387.8 MB, free: 6.973 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01066/0.3829, allocations: 6.178 MB / 394 MB, free: 5.695 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001109/0.384, allocations: 427.6 kB / 394.4 MB, free: 5.535 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002192/0.3862, allocations: 0.9896 MB / 395.4 MB, free: 5.23 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001665/0.3879, allocations: 1.043 MB / 396.4 MB, free: 4.832 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002813/0.3882, allocations: 42.62 kB / 396.5 MB, free: 4.832 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006425/0.3946, allocations: 1.336 MB / 397.8 MB, free: 4.59 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006208/0.3953, allocations: 285.3 kB / 398.1 MB, free: 4.422 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001731/0.397, allocations: 0.6483 MB / 398.7 MB, free: 4.199 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00373/0.4008, allocations: 2.865 MB / 401.6 MB, free: 2.188 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.163e-06/0.4008, allocations: 0 / 401.6 MB, free: 2.188 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.925e-06/0.4008, allocations: 3.938 kB / 401.6 MB, free: 2.184 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.159e-05/0.4009, allocations: 5.219 kB / 401.6 MB, free: 2.184 MB / 302.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.005028/0.4059, allocations: 3.384 MB / 405 MB, free: 15.71 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.472e-05/0.406, allocations: 16.31 kB / 405 MB, free: 15.7 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002239/0.4062, allocations: 100.2 kB / 405.1 MB, free: 15.61 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005969/0.4068, allocations: 415 kB / 405.5 MB, free: 15.29 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003703/0.4106, allocations: 2.302 MB / 407.8 MB, free: 12.93 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.864e-05/0.4106, allocations: 33 kB / 407.9 MB, free: 12.89 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001326/0.4108, allocations: 63.84 kB / 407.9 MB, free: 12.83 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001328/0.4121, allocations: 0.746 MB / 408.7 MB, free: 12.08 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.548e-05/0.4121, allocations: 4 kB / 408.7 MB, free: 12.08 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.496e-05/0.4122, allocations: 23.95 kB / 408.7 MB, free: 12.05 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.434e-05/0.4122, allocations: 19.98 kB / 408.7 MB, free: 12.04 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001497/0.4137, allocations: 0.8592 MB / 409.6 MB, free: 11.17 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00569/0.4194, allocations: 3.122 MB / 412.7 MB, free: 7.965 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001175/0.4207, allocations: 0.6181 MB / 413.3 MB, free: 7.34 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009541/0.4216, allocations: 0.6682 MB / 414 MB, free: 6.672 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02892/0.4506, allocations: 30.16 MB / 444.1 MB, free: 4.41 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007495/0.4514, allocations: 385.5 kB / 444.5 MB, free: 4.023 MB / 350.1 MB Notification: Performance of pre-optimization done (n=49): time 4.068e-06/0.4514, allocations: 0 / 444.5 MB, free: 4.023 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.002293/0.4537, allocations: 1.171 MB / 445.7 MB, free: 2.84 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.423e-05/0.4537, allocations: 63.39 kB / 445.7 MB, free: 2.766 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003733/0.4575, allocations: 3.044 MB / 448.8 MB, free: 15.72 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.656e-05/0.4576, allocations: 37.7 kB / 448.8 MB, free: 15.68 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001227/0.4588, allocations: 1.576 MB / 450.4 MB, free: 14.09 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00017/0.459, allocations: 169.6 kB / 450.6 MB, free: 13.93 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.465e-05/0.459, allocations: 16 kB / 450.6 MB, free: 13.91 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001027/0.4592, allocations: 341.9 kB / 450.9 MB, free: 13.57 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005617/0.4597, allocations: 261.9 kB / 451.2 MB, free: 13.32 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007861/0.4605, allocations: 0.6254 MB / 451.8 MB, free: 12.52 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006459/0.4612, allocations: 336.5 kB / 452.1 MB, free: 12.2 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.554e-06/0.4612, allocations: 4 kB / 452.1 MB, free: 12.19 MB / 366.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002191/0.4634, allocations: 1.28 MB / 453.4 MB, free: 10.9 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.691e-05/0.4634, allocations: 15.98 kB / 453.4 MB, free: 10.88 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001173/0.4636, allocations: 80 kB / 453.5 MB, free: 10.8 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.709e-05/0.4636, allocations: 16 kB / 453.5 MB, free: 10.79 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006868/0.4643, allocations: 223.5 kB / 453.7 MB, free: 10.57 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.527e-05/0.4643, allocations: 23.92 kB / 453.8 MB, free: 10.55 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001188/0.4655, allocations: 111.1 kB / 453.9 MB, free: 10.44 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001162/0.4656, allocations: 72 kB / 453.9 MB, free: 10.37 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 ($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.0008227/0.4665, allocations: 456.2 kB / 454.4 MB, free: 9.918 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004764/0.4669, allocations: 399.1 kB / 454.8 MB, free: 9.523 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00294/0.4699, allocations: 1.262 MB / 456 MB, free: 8.25 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.161e-05/0.4699, allocations: 7.938 kB / 456 MB, free: 8.242 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.644e-06/0.4699, allocations: 0 / 456 MB, free: 8.242 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.919e-06/0.47, allocations: 7.984 kB / 456.1 MB, free: 8.234 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00408/0.474, allocations: 2.178 MB / 458.2 MB, free: 5.984 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001127/0.4742, allocations: 68 kB / 458.3 MB, free: 5.918 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004649/0.4747, allocations: 107.9 kB / 458.4 MB, free: 5.812 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.075e-06/0.4747, allocations: 0 / 458.4 MB, free: 5.812 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.13e-05/0.4748, allocations: 35.98 kB / 458.4 MB, free: 5.777 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.358e-06/0.4748, allocations: 4 kB / 458.4 MB, free: 5.773 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.4748, allocations: 4 kB / 458.4 MB, free: 5.77 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003201/0.478, allocations: 1.376 MB / 459.8 MB, free: 4.367 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00174/0.4798, allocations: 492 kB / 460.3 MB, free: 3.863 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006493/0.4804, allocations: 11.98 kB / 460.3 MB, free: 3.852 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008171/0.4813, allocations: 48.03 kB / 460.4 MB, free: 3.805 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002019/0.4815, allocations: 63.83 kB / 460.4 MB, free: 3.742 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001223/0.4816, allocations: 39.98 kB / 460.5 MB, free: 3.703 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.003704/0.4853, allocations: 1.971 MB / 462.4 MB, free: 1.738 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4854, allocations: 3.938 kB / 462.4 MB, free: 1.734 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001975/0.4873, allocations: 0.5894 MB / 463 MB, free: 1.145 MB / 366.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.003834/0.4912, allocations: 2.58 MB / 465.6 MB, free: 14.53 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00162/0.4928, allocations: 0.8608 MB / 466.5 MB, free: 13.64 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.098e-06/0.4929, allocations: 4 kB / 466.5 MB, free: 13.64 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007327/0.4936, allocations: 463.2 kB / 466.9 MB, free: 13.16 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00283/0.4965, allocations: 0.6212 MB / 467.5 MB, free: 12.54 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03991/0.5364, allocations: 19.37 MB / 486.9 MB, free: 7.062 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001284/0.5377, allocations: 1.71 MB / 488.6 MB, free: 5.324 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001541/0.5393, allocations: 365.3 kB / 489 MB, free: 4.961 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001614/0.5409, allocations: 1.261 MB / 490.3 MB, free: 3.703 MB / 398.1 MB Notification: Performance of SimCode: time 8.92e-07/0.5409, allocations: 3.938 kB / 490.3 MB, free: 3.699 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2784/0.8193, allocations: 58.74 MB / 0.5361 GB, free: 150.1 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002484/0.8196, allocations: 205 kB / 0.5363 GB, free: 149.9 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.71/4.53, allocations: 0 / 0.5363 GB, free: 149.9 MB / 446.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat does not exist to compare? outputFormat=mat