Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Inverter,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Inverter,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002114/0.002119, allocations: 181.5 kB / 8.366 MB, free: 0.7109 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.926/1.926, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001099/0.001099, allocations: 95.94 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.267e-05/2.271e-05, allocations: 4 kB / 314.9 MB, free: 9.062 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3288/0.3288, allocations: 47.56 MB / 362.4 MB, free: 45.74 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1617/0.4906, allocations: 101.2 MB / 463.7 MB, free: 0.9492 MB / 347.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002751/0.4909, allocations: 71.97 kB / 463.7 MB, free: 0.8789 MB / 347.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.6297/1.121, allocations: 85.03 MB / 0.5359 GB, free: 96.32 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.094e-06/1.121, allocations: 0 / 0.5359 GB, free: 96.32 MB / 395.1 MB Notification: Performance of Transformations before backend: time 3.699e-05/1.121, allocations: 22.69 kB / 0.5359 GB, free: 96.32 MB / 395.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.00391/1.125, allocations: 1.617 MB / 0.5375 GB, free: 95.28 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.439e-05/1.125, allocations: 11.75 kB / 0.5375 GB, free: 95.28 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003971/1.125, allocations: 193.1 kB / 0.5377 GB, free: 95.18 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002877/1.128, allocations: 1.216 MB / 0.5389 GB, free: 94.54 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.451e-05/1.128, allocations: 16 kB / 0.5389 GB, free: 94.54 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001149/1.128, allocations: 27.59 kB / 0.5389 GB, free: 94.53 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008837/1.129, allocations: 358 kB / 0.5393 GB, free: 94.42 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008208/1.13, allocations: 409.8 kB / 0.5397 GB, free: 94.23 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.536e-05/1.13, allocations: 0 / 0.5397 GB, free: 94.23 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.385e-05/1.13, allocations: 3.938 kB / 0.5397 GB, free: 94.23 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.13e-05/1.13, allocations: 11.31 kB / 0.5397 GB, free: 94.23 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00422/1.134, allocations: 1.593 MB / 0.5412 GB, free: 93.43 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005594/1.135, allocations: 268.1 kB / 0.5415 GB, free: 93.29 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006062/1.136, allocations: 358 kB / 0.5418 GB, free: 93.15 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02336/1.159, allocations: 18.18 MB / 0.5596 GB, free: 78.56 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004394/1.159, allocations: 200.3 kB / 0.5598 GB, free: 78.47 MB / 395.1 MB Notification: Performance of pre-optimization done (n=29): time 3.968e-06/1.159, allocations: 0 / 0.5598 GB, free: 78.47 MB / 395.1 MB Notification: Performance of matching and sorting (n=29): time 0.001243/1.161, allocations: 493.6 kB / 0.5602 GB, free: 78.25 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.461e-05/1.161, allocations: 157.6 kB / 0.5604 GB, free: 78.07 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001837/1.163, allocations: 1.118 MB / 0.5615 GB, free: 77.43 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001073/1.163, allocations: 25.7 kB / 0.5615 GB, free: 77.4 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00061/1.163, allocations: 0.6349 MB / 0.5621 GB, free: 76.77 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001549/1.164, allocations: 86.8 kB / 0.5622 GB, free: 76.68 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.712e-05/1.164, allocations: 0 / 0.5622 GB, free: 76.68 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 8.46e-05/1.164, allocations: 334.8 kB / 0.5625 GB, free: 76.34 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002705/1.164, allocations: 105.1 kB / 0.5626 GB, free: 76.24 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003714/1.164, allocations: 315.5 kB / 0.5629 GB, free: 75.83 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004339/1.165, allocations: 140.1 kB / 0.5631 GB, free: 75.69 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.967e-06/1.165, allocations: 8 kB / 0.5631 GB, free: 75.68 MB / 395.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001126/1.166, allocations: 463.2 kB / 0.5635 GB, free: 75.23 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.132e-05/1.166, allocations: 8 kB / 0.5635 GB, free: 75.22 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.161e-05/1.166, allocations: 43.97 kB / 0.5636 GB, free: 75.18 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004407/1.167, allocations: 131.6 kB / 0.5637 GB, free: 75.05 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007674/1.167, allocations: 119.8 kB / 0.5638 GB, free: 74.93 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008258/1.168, allocations: 0.6929 MB / 0.5645 GB, free: 74.21 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001339/1.17, allocations: 87.34 kB / 0.5646 GB, free: 74.12 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001386/1.17, allocations: 32 kB / 0.5646 GB, free: 74.09 MB / 395.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 () * 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.0001994/1.17, allocations: 128.8 kB / 0.5647 GB, free: 73.96 MB / 395.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001247/1.171, allocations: 480.2 kB / 0.5652 GB, free: 73.48 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003209/1.172, allocations: 197.7 kB / 0.5654 GB, free: 73.29 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002581/1.174, allocations: 0.643 MB / 0.566 GB, free: 72.63 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.115e-05/1.174, allocations: 4 kB / 0.566 GB, free: 72.63 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.434e-06/1.174, allocations: 0 / 0.566 GB, free: 72.63 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.818e-06/1.174, allocations: 11.94 kB / 0.566 GB, free: 72.62 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002866/1.177, allocations: 1.166 MB / 0.5671 GB, free: 71.4 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.968e-05/1.177, allocations: 36 kB / 0.5672 GB, free: 71.37 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004883/1.178, allocations: 63.94 kB / 0.5672 GB, free: 71.3 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003479/1.178, allocations: 124.8 kB / 0.5674 GB, free: 71.18 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.171e-05/1.178, allocations: 12 kB / 0.5674 GB, free: 71.17 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000764/1.179, allocations: 0.689 MB / 0.568 GB, free: 70.45 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.172e-06/1.179, allocations: 0.8438 kB / 0.568 GB, free: 70.45 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001194/1.18, allocations: 0.626 MB / 0.5687 GB, free: 69.78 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007687/1.181, allocations: 290.8 kB / 0.5689 GB, free: 69.48 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002884/1.181, allocations: 3.984 kB / 0.5689 GB, free: 69.47 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008987/1.182, allocations: 31.97 kB / 0.569 GB, free: 69.44 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001848/1.182, allocations: 51.81 kB / 0.569 GB, free: 69.39 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.843e-05/1.183, allocations: 24 kB / 0.569 GB, free: 69.37 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.001533/1.184, allocations: 0.833 MB / 0.5698 GB, free: 68.52 MB / 395.1 MB Notification: Performance of sort global known variables: time 6.62e-07/1.184, allocations: 0 / 0.5698 GB, free: 68.52 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.001736/1.186, allocations: 351.4 kB / 0.5702 GB, free: 68.18 MB / 395.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) * 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.00253/1.188, allocations: 1.932 MB / 0.5721 GB, free: 66.27 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.00103/1.19, allocations: 396.4 kB / 0.5724 GB, free: 65.87 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 5.159e-06/1.19, allocations: 0 / 0.5724 GB, free: 65.87 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005151/1.19, allocations: 243.1 kB / 0.5727 GB, free: 65.62 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001365/1.191, allocations: 240.3 kB / 0.5729 GB, free: 65.38 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004321/1.196, allocations: 1.809 MB / 0.5747 GB, free: 63.51 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000597/1.196, allocations: 1.182 MB / 0.5758 GB, free: 62.3 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000815/1.197, allocations: 0.5579 MB / 0.5764 GB, free: 61.74 MB / 395.1 MB Notification: Performance of SimCode: time 9.12e-07/1.197, allocations: 0 / 0.5764 GB, free: 61.74 MB / 395.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.936/4.133, allocations: 29.88 MB / 0.6056 GB, free: 31.84 MB / 395.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Inverter.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Inverter_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_Inverter_fmu --startTime=0 --stopTime=1e-11 --timeout=50 --tolerance=1e-07 Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_Inverter.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Inverter.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Inverter_res.mat does not exist to compare? outputFormat=mat