Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Inverter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Inverter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001382/0.001382, allocations: 94.06 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001633/0.001633, allocations: 205 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.416/1.416, allocations: 227.3 MB / 245.9 MB, free: 12.02 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002484/0.0002486, allocations: 8 kB / 306.7 MB, free: 1.484 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1056/0.1059, allocations: 51.5 MB / 358.2 MB, free: 13.99 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.005991/0.1119, allocations: 6.469 MB / 364.7 MB, free: 7.492 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2063/0.3182, allocations: 16.55 MB / 381.2 MB, free: 8.457 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001194/0.3194, allocations: 35.19 kB / 381.2 MB, free: 8.438 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002736/0.3222, allocations: 0.7314 MB / 382 MB, free: 8.332 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007141/0.3294, allocations: 1.571 MB / 383.6 MB, free: 8.207 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005453/0.3348, allocations: 1.118 MB / 384.7 MB, free: 7.84 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006082/0.3409, allocations: 3.106 MB / 387.8 MB, free: 6.992 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003898/0.3414, allocations: 210.8 kB / 388 MB, free: 6.887 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008282/0.3422, allocations: 490.5 kB / 388.5 MB, free: 6.668 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005756/0.3428, allocations: 0.5159 MB / 389 MB, free: 6.434 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.278e-05/0.3429, allocations: 23.25 kB / 389 MB, free: 6.434 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005492/0.3484, allocations: 1.418 MB / 390.4 MB, free: 6.117 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000275/0.3487, allocations: 144.1 kB / 390.6 MB, free: 6.027 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006603/0.3493, allocations: 320.1 kB / 390.9 MB, free: 5.832 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002627/0.352, allocations: 1.51 MB / 392.4 MB, free: 5.297 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.326e-06/0.352, allocations: 0 / 392.4 MB, free: 5.297 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.352, allocations: 0 / 392.4 MB, free: 5.297 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.839e-05/0.352, allocations: 0 / 392.4 MB, free: 5.297 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.003513/0.3556, allocations: 1.811 MB / 394.2 MB, free: 4.074 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.647e-05/0.3556, allocations: 9.438 kB / 394.2 MB, free: 4.074 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.23e-05/0.3557, allocations: 67.27 kB / 394.3 MB, free: 4.016 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002524/0.356, allocations: 192.8 kB / 394.5 MB, free: 3.918 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002133/0.3581, allocations: 1.272 MB / 395.7 MB, free: 3 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.203e-05/0.3581, allocations: 14.19 kB / 395.7 MB, free: 2.996 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.335e-05/0.3582, allocations: 34.7 kB / 395.8 MB, free: 2.98 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008746/0.3591, allocations: 448.8 kB / 396.2 MB, free: 2.727 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.247e-05/0.3591, allocations: 0 / 396.2 MB, free: 2.727 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.389e-05/0.3592, allocations: 19.02 kB / 396.2 MB, free: 2.711 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.567e-05/0.3592, allocations: 7.094 kB / 396.2 MB, free: 2.711 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001075/0.3603, allocations: 0.505 MB / 396.7 MB, free: 2.52 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002823/0.3631, allocations: 1.627 MB / 398.4 MB, free: 1.344 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000962/0.3641, allocations: 417.2 kB / 398.8 MB, free: 1.137 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01685/0.381, allocations: 15.6 MB / 414.4 MB, free: 1.66 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006395/0.3816, allocations: 292.1 kB / 414.7 MB, free: 1.363 MB / 318.1 MB Notification: Performance of pre-optimization done (n=29): time 2.474e-06/0.3817, allocations: 0 / 414.7 MB, free: 1.363 MB / 318.1 MB Notification: Performance of matching and sorting (n=29): time 0.002371/0.384, allocations: 0.8955 MB / 415.6 MB, free: 448 kB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.807e-05/0.3841, allocations: 63.33 kB / 415.6 MB, free: 372 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001931/0.3861, allocations: 1.436 MB / 417.1 MB, free: 14.89 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.768e-05/0.3861, allocations: 33.7 kB / 417.1 MB, free: 14.85 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006385/0.3868, allocations: 0.7148 MB / 417.8 MB, free: 14.13 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001056/0.3869, allocations: 98.72 kB / 417.9 MB, free: 14.03 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.055e-05/0.3869, allocations: 16 kB / 417.9 MB, free: 14.02 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001167/0.387, allocations: 325.9 kB / 418.2 MB, free: 13.69 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004893/0.3875, allocations: 177 kB / 418.4 MB, free: 13.52 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005909/0.3881, allocations: 380.2 kB / 418.8 MB, free: 13.05 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005245/0.3887, allocations: 216.1 kB / 419 MB, free: 12.84 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.441e-06/0.3887, allocations: 0 / 419 MB, free: 12.84 MB / 334.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001594/0.3903, allocations: 0.795 MB / 419.8 MB, free: 12.04 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.803e-05/0.3903, allocations: 10.81 kB / 419.8 MB, free: 12.03 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.102e-05/0.3904, allocations: 40 kB / 419.8 MB, free: 11.99 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003324/0.3907, allocations: 148.7 kB / 420 MB, free: 11.84 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004329/0.3912, allocations: 119.9 kB / 420.1 MB, free: 11.73 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006362/0.3918, allocations: 0.6772 MB / 420.8 MB, free: 11.02 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008575/0.3927, allocations: 79.56 kB / 420.9 MB, free: 10.95 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.267e-05/0.3928, allocations: 36 kB / 420.9 MB, free: 10.91 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * 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 (53): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0005258/0.3933, allocations: 277.6 kB / 421.2 MB, free: 10.63 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001953/0.3935, allocations: 185.8 kB / 421.3 MB, free: 10.45 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001986/0.3955, allocations: 0.7945 MB / 422.1 MB, free: 9.645 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.434e-06/0.3955, allocations: 4 kB / 422.1 MB, free: 9.641 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/0.3956, allocations: 7.984 kB / 422.1 MB, free: 9.633 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.631e-06/0.3956, allocations: 0.6875 kB / 422.1 MB, free: 9.633 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002394/0.398, allocations: 1.335 MB / 423.5 MB, free: 8.227 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.116e-05/0.398, allocations: 43.92 kB / 423.5 MB, free: 8.184 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000259/0.3983, allocations: 56.02 kB / 423.6 MB, free: 8.129 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002451/0.3985, allocations: 120.8 kB / 423.7 MB, free: 8.008 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.025e-05/0.3986, allocations: 17.44 kB / 423.7 MB, free: 7.992 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005763/0.3992, allocations: 0.6695 MB / 424.4 MB, free: 7.297 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.276e-06/0.3992, allocations: 0 / 424.4 MB, free: 7.297 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001414/0.4006, allocations: 0.7952 MB / 425.2 MB, free: 6.457 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005448/0.4012, allocations: 274.8 kB / 425.5 MB, free: 6.168 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001624/0.4013, allocations: 8 kB / 425.5 MB, free: 6.16 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004318/0.4018, allocations: 39.95 kB / 425.5 MB, free: 6.121 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001168/0.4019, allocations: 39.95 kB / 425.5 MB, free: 6.082 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.782e-05/0.402, allocations: 20 kB / 425.6 MB, free: 6.062 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001399/0.4034, allocations: 0.9493 MB / 426.5 MB, free: 5.094 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4034, allocations: 0 / 426.5 MB, free: 5.094 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001126/0.4045, allocations: 323.8 kB / 426.8 MB, free: 4.777 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * 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 (21): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.002452/0.407, allocations: 1.912 MB / 428.7 MB, free: 2.824 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001301/0.4083, allocations: 0.5479 MB / 429.3 MB, free: 2.266 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.4083, allocations: 0 / 429.3 MB, free: 2.266 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006804/0.409, allocations: 307.5 kB / 429.6 MB, free: 1.953 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00138/0.4104, allocations: 309 kB / 429.9 MB, free: 1.648 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01945/0.4298, allocations: 12.39 MB / 442.3 MB, free: 4.566 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007717/0.4307, allocations: 1.172 MB / 443.4 MB, free: 3.363 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0008104/0.4315, allocations: 199.9 kB / 443.6 MB, free: 3.164 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006238/0.4321, allocations: 0.5695 MB / 444.2 MB, free: 2.594 MB / 350.1 MB Notification: Performance of SimCode: time 1.002e-06/0.4321, allocations: 0 / 444.2 MB, free: 2.594 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05832/0.4905, allocations: 32.31 MB / 476.5 MB, free: 2.465 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001873/0.4907, allocations: 200.6 kB / 476.7 MB, free: 2.223 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.785/3.276, allocations: 0 / 476.7 MB, free: 2.223 MB / 382.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Spice3_Examples_Inverter_fmu --startTime=0 --stopTime=1e-11 --timeout=50 --tolerance=1e-07 Modelica_trunk_Modelica_Electrical_Spice3_Examples_Inverter.fmu > Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Spice3.Examples.Inverter_res.mat does not exist to compare? outputFormat=mat