Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.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.Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Inverter",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.001109/0.001109, allocations: 95.45 kB / 16.3 MB, free: 5.562 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.001035/0.001035, allocations: 185.3 kB / 17.2 MB, free: 5.496 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.478/1.478, allocations: 223.2 MB / 241.1 MB, free: 372 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002801/0.0002802, allocations: 8 kB / 300.8 MB, free: 6.352 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1193/0.1196, allocations: 50.42 MB / 351.2 MB, free: 3.922 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.006486/0.1261, allocations: 6.46 MB / 357.7 MB, free: 13.43 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2344/0.3605, allocations: 16.53 MB / 374.2 MB, free: 8.723 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001021/0.3616, allocations: 32.5 kB / 374.2 MB, free: 8.723 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002518/0.3641, allocations: 0.7294 MB / 375 MB, free: 8.723 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006234/0.3704, allocations: 1.567 MB / 376.5 MB, free: 8.715 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005646/0.3761, allocations: 1.118 MB / 377.7 MB, free: 8.711 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006638/0.3827, allocations: 3.083 MB / 380.7 MB, free: 8.688 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005585/0.3833, allocations: 208.3 kB / 380.9 MB, free: 8.605 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001574/0.3849, allocations: 491.9 kB / 381.4 MB, free: 8.605 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001118/0.386, allocations: 0.5126 MB / 381.9 MB, free: 8.504 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001482/0.3862, allocations: 30.41 kB / 382 MB, free: 8.5 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006954/0.3932, allocations: 1.406 MB / 383.4 MB, free: 8.48 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003953/0.3936, allocations: 145.7 kB / 383.5 MB, free: 8.422 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009967/0.3946, allocations: 328.6 kB / 383.8 MB, free: 8.328 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002743/0.3974, allocations: 1.494 MB / 385.3 MB, free: 8.168 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.3974, allocations: 0 / 385.3 MB, free: 8.168 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.897e-06/0.3974, allocations: 1.5 kB / 385.3 MB, free: 8.168 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.24e-05/0.3974, allocations: 0 / 385.3 MB, free: 8.168 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.00327/0.4007, allocations: 1.805 MB / 387.1 MB, free: 7.043 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.855e-05/0.4007, allocations: 10.28 kB / 387.1 MB, free: 7.043 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001045/0.4009, allocations: 66.8 kB / 387.2 MB, free: 7.004 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000223/0.4011, allocations: 194.2 kB / 387.4 MB, free: 6.906 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002099/0.4032, allocations: 1.279 MB / 388.7 MB, free: 6.477 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.707e-05/0.4032, allocations: 16.5 kB / 388.7 MB, free: 6.473 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.048e-05/0.4033, allocations: 27.12 kB / 388.7 MB, free: 6.473 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009736/0.4043, allocations: 454.6 kB / 389.2 MB, free: 6.43 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.062e-05/0.4043, allocations: 0.9375 kB / 389.2 MB, free: 6.43 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.25e-05/0.4044, allocations: 14.84 kB / 389.2 MB, free: 6.426 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.603e-05/0.4044, allocations: 9.625 kB / 389.2 MB, free: 6.426 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001091/0.4055, allocations: 0.5089 MB / 389.7 MB, free: 6.387 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002644/0.4081, allocations: 1.622 MB / 391.3 MB, free: 5.695 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009271/0.4091, allocations: 418.9 kB / 391.7 MB, free: 5.605 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01485/0.4239, allocations: 15.29 MB / 407 MB, free: 9.004 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000652/0.4246, allocations: 273.3 kB / 407.3 MB, free: 8.766 MB / 318.1 MB Notification: Performance of pre-optimization done (n=29): time 2.555e-06/0.4247, allocations: 0 / 407.3 MB, free: 8.766 MB / 318.1 MB Notification: Performance of matching and sorting (n=29): time 0.002205/0.4269, allocations: 0.9045 MB / 408.2 MB, free: 7.949 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.733e-05/0.4269, allocations: 60.75 kB / 408.3 MB, free: 7.879 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001747/0.4287, allocations: 1.44 MB / 409.7 MB, free: 6.758 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.978e-05/0.4287, allocations: 28.83 kB / 409.7 MB, free: 6.727 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006117/0.4294, allocations: 0.7203 MB / 410.4 MB, free: 6.418 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.063e-05/0.4295, allocations: 94.22 kB / 410.5 MB, free: 6.34 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.16e-05/0.4295, allocations: 14.94 kB / 410.5 MB, free: 6.336 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001163/0.4296, allocations: 321.4 kB / 410.9 MB, free: 6.023 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004462/0.4301, allocations: 184.1 kB / 411 MB, free: 5.883 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005815/0.4307, allocations: 374.6 kB / 411.4 MB, free: 5.477 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004788/0.4311, allocations: 219.8 kB / 411.6 MB, free: 5.324 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.633e-06/0.4312, allocations: 8 kB / 411.6 MB, free: 5.316 MB / 318.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001607/0.4328, allocations: 0.7945 MB / 412.4 MB, free: 4.637 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.39e-05/0.4328, allocations: 8 kB / 412.4 MB, free: 4.629 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.738e-05/0.4329, allocations: 43.95 kB / 412.5 MB, free: 4.586 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003207/0.4332, allocations: 129.8 kB / 412.6 MB, free: 4.473 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004346/0.4337, allocations: 120.9 kB / 412.7 MB, free: 4.359 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006089/0.4343, allocations: 0.6792 MB / 413.4 MB, free: 3.699 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008599/0.4351, allocations: 79.91 kB / 413.5 MB, free: 3.629 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.074e-05/0.4352, allocations: 35.23 kB / 413.5 MB, free: 3.598 MB / 318.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.0005667/0.4358, allocations: 277.7 kB / 413.8 MB, free: 3.375 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001989/0.436, allocations: 185.8 kB / 414 MB, free: 3.191 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002023/0.438, allocations: 0.802 MB / 414.8 MB, free: 2.383 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.754e-06/0.4381, allocations: 4 kB / 414.8 MB, free: 2.379 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-06/0.4381, allocations: 0 / 414.8 MB, free: 2.379 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.581e-06/0.4381, allocations: 0 / 414.8 MB, free: 2.379 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002425/0.4405, allocations: 1.347 MB / 416.1 MB, free: 0.9688 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.871e-05/0.4406, allocations: 35.98 kB / 416.2 MB, free: 0.9336 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002626/0.4408, allocations: 61.02 kB / 416.2 MB, free: 0.875 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002357/0.4411, allocations: 120.8 kB / 416.3 MB, free: 0.7539 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.599e-05/0.4411, allocations: 16 kB / 416.3 MB, free: 0.7383 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005322/0.4417, allocations: 0.6748 MB / 417 MB, free: 40 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.517e-06/0.4417, allocations: 3.984 kB / 417 MB, free: 36 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001375/0.4431, allocations: 0.7856 MB / 417.8 MB, free: 15.2 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004951/0.4436, allocations: 274.8 kB / 418.1 MB, free: 14.91 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001549/0.4437, allocations: 4 kB / 418.1 MB, free: 14.91 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004381/0.4442, allocations: 43.89 kB / 418.1 MB, free: 14.87 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001119/0.4443, allocations: 47.91 kB / 418.2 MB, free: 14.82 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.675e-05/0.4444, allocations: 16 kB / 418.2 MB, free: 14.81 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001237/0.4456, allocations: 0.9492 MB / 419.1 MB, free: 13.84 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4456, allocations: 1.859 kB / 419.1 MB, free: 13.84 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001017/0.4466, allocations: 331.8 kB / 419.5 MB, free: 13.51 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.002491/0.4491, allocations: 1.909 MB / 421.4 MB, free: 11.66 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001383/0.4505, allocations: 0.5434 MB / 421.9 MB, free: 11.11 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.4505, allocations: 0 / 421.9 MB, free: 11.11 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006563/0.4512, allocations: 314.6 kB / 422.2 MB, free: 10.79 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001235/0.4525, allocations: 302.8 kB / 422.5 MB, free: 10.49 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01915/0.4716, allocations: 12.38 MB / 434.9 MB, free: 13.43 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006726/0.4723, allocations: 1.176 MB / 436.1 MB, free: 12.23 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0007887/0.4731, allocations: 207.9 kB / 436.3 MB, free: 12.02 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000564/0.4737, allocations: 0.5579 MB / 436.8 MB, free: 11.46 MB / 350.1 MB Notification: Performance of SimCode: time 8.81e-07/0.4737, allocations: 0 / 436.8 MB, free: 11.46 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06003/0.5338, allocations: 32.28 MB / 469.1 MB, free: 11.52 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000206/0.534, allocations: 200.7 kB / 469.3 MB, free: 11.28 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.562/3.096, allocations: 4 kB / 469.3 MB, free: 11.28 MB / 382.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Inverter_fmu --startTime=0 --stopTime=1e-11 --timeout=50 --tolerance=1e-07 Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Inverter.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Inverter_res.mat does not exist to compare? outputFormat=mat