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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001272/0.001272, allocations: 175.5 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.392/1.392, allocations: 221.3 MB / 235.5 MB, free: 2.953 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008407/0.0008404, allocations: 90.23 kB / 286.5 MB, free: 232 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.615e-05/2.617e-05, allocations: 4 kB / 343.9 MB, free: 4.219 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1077/0.1077, allocations: 50.41 MB / 394.3 MB, free: 1.766 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3551/0.4629, allocations: 104.2 MB / 498.6 MB, free: 15.22 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001996/0.4632, allocations: 73.72 kB / 498.6 MB, free: 15.15 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5184/0.9816, allocations: 143.2 MB / 0.6268 GB, free: 77.28 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.853e-06/0.9816, allocations: 0 / 0.6268 GB, free: 77.28 MB / 426.7 MB Notification: Performance of Transformations before backend: time 9.008e-05/0.9817, allocations: 47.98 kB / 0.6268 GB, free: 77.23 MB / 426.7 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.004062/0.9858, allocations: 2.794 MB / 0.6296 GB, free: 74.39 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.342e-05/0.9858, allocations: 8.031 kB / 0.6296 GB, free: 74.38 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001074/0.9859, allocations: 98.5 kB / 0.6297 GB, free: 74.27 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003712/0.9863, allocations: 418.9 kB / 0.6301 GB, free: 73.86 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003454/0.9898, allocations: 2.414 MB / 0.6324 GB, free: 71.38 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.983e-05/0.9898, allocations: 33 kB / 0.6325 GB, free: 71.34 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001212/0.99, allocations: 63.94 kB / 0.6325 GB, free: 71.28 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001011/0.991, allocations: 0.7794 MB / 0.6333 GB, free: 70.47 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.415e-05/0.991, allocations: 0 / 0.6333 GB, free: 70.47 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.956e-05/0.9911, allocations: 23.98 kB / 0.6333 GB, free: 70.45 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.063e-05/0.9911, allocations: 20 kB / 0.6333 GB, free: 70.43 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008639/0.992, allocations: 0.7111 MB / 0.634 GB, free: 69.71 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004903/0.9969, allocations: 3.274 MB / 0.6372 GB, free: 66.36 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006038/0.9975, allocations: 496.9 kB / 0.6377 GB, free: 65.86 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005707/0.9981, allocations: 0.5927 MB / 0.6383 GB, free: 65.26 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0265/1.025, allocations: 36.11 MB / 0.6735 GB, free: 24.02 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004578/1.025, allocations: 321.5 kB / 0.6738 GB, free: 23.7 MB / 426.7 MB Notification: Performance of pre-optimization done (n=49): time 2.525e-06/1.025, allocations: 0 / 0.6738 GB, free: 23.7 MB / 426.7 MB Notification: Performance of matching and sorting (n=49): time 0.001235/1.026, allocations: 0.8054 MB / 0.6746 GB, free: 22.88 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.071e-05/1.026, allocations: 280.9 kB / 0.6749 GB, free: 22.54 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003078/1.03, allocations: 2.646 MB / 0.6775 GB, free: 19.9 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 6.951e-05/1.03, allocations: 37.7 kB / 0.6775 GB, free: 19.86 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009181/1.031, allocations: 1.58 MB / 0.6791 GB, free: 18.27 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001373/1.031, allocations: 169.6 kB / 0.6792 GB, free: 18.1 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.982e-05/1.031, allocations: 16 kB / 0.6792 GB, free: 18.08 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 7.72e-05/1.031, allocations: 342.3 kB / 0.6796 GB, free: 17.74 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002798/1.031, allocations: 190 kB / 0.6797 GB, free: 17.55 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004087/1.032, allocations: 0.5972 MB / 0.6803 GB, free: 16.76 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003639/1.032, allocations: 281.3 kB / 0.6806 GB, free: 16.48 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.534e-06/1.032, allocations: 4 kB / 0.6806 GB, free: 16.48 MB / 426.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001473/1.033, allocations: 1.139 MB / 0.6817 GB, free: 15.33 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.263e-05/1.033, allocations: 9.25 kB / 0.6817 GB, free: 15.32 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.377e-05/1.034, allocations: 80.89 kB / 0.6818 GB, free: 15.25 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.752e-05/1.034, allocations: 20 kB / 0.6818 GB, free: 15.23 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006759/1.034, allocations: 219.6 kB / 0.682 GB, free: 15.01 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.022e-05/1.034, allocations: 23.92 kB / 0.6821 GB, free: 14.99 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001228/1.036, allocations: 131 kB / 0.6822 GB, free: 14.86 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.453e-05/1.036, allocations: 64 kB / 0.6822 GB, free: 14.8 MB / 426.7 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 () * 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.0001484/1.036, allocations: 161.4 kB / 0.6824 GB, free: 14.63 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002699/1.036, allocations: 399.1 kB / 0.6828 GB, free: 14.24 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002563/1.039, allocations: 1.164 MB / 0.6839 GB, free: 13.06 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.344e-06/1.039, allocations: 7.938 kB / 0.6839 GB, free: 13.05 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.439e-06/1.039, allocations: 0 / 0.6839 GB, free: 13.05 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.731e-06/1.039, allocations: 7.969 kB / 0.6839 GB, free: 13.04 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003068/1.042, allocations: 2.19 MB / 0.6861 GB, free: 10.79 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.225e-05/1.042, allocations: 67.98 kB / 0.6861 GB, free: 10.72 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000484/1.042, allocations: 103.9 kB / 0.6862 GB, free: 10.62 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.283e-06/1.042, allocations: 8.062 kB / 0.6862 GB, free: 10.61 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.994e-05/1.042, allocations: 31.98 kB / 0.6863 GB, free: 10.58 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.302e-06/1.042, allocations: 7.953 kB / 0.6863 GB, free: 10.57 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/1.042, allocations: 0 / 0.6863 GB, free: 10.57 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001273/1.044, allocations: 1.228 MB / 0.6875 GB, free: 9.297 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009627/1.045, allocations: 0.5194 MB / 0.688 GB, free: 8.754 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003002/1.045, allocations: 16 kB / 0.688 GB, free: 8.738 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007047/1.046, allocations: 39.95 kB / 0.688 GB, free: 8.699 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001358/1.046, allocations: 67.88 kB / 0.6881 GB, free: 8.633 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.905e-05/1.046, allocations: 40.05 kB / 0.6881 GB, free: 8.594 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002248/1.048, allocations: 2.015 MB / 0.6901 GB, free: 6.582 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.41e-07/1.048, allocations: 0 / 0.6901 GB, free: 6.582 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001434/1.05, allocations: 0.6557 MB / 0.6907 GB, free: 5.926 MB / 426.7 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) * 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.002535/1.052, allocations: 2.663 MB / 0.6933 GB, free: 3.223 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0009608/1.053, allocations: 0.7082 MB / 0.694 GB, free: 2.492 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.955e-06/1.053, allocations: 0 / 0.694 GB, free: 2.492 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000388/1.054, allocations: 399.3 kB / 0.6944 GB, free: 2.078 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002451/1.056, allocations: 0.6279 MB / 0.695 GB, free: 1.449 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00713/1.063, allocations: 3.783 MB / 0.6987 GB, free: 13.61 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001253/1.064, allocations: 1.777 MB / 0.7005 GB, free: 11.8 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001354/1.066, allocations: 382.7 kB / 0.7008 GB, free: 11.42 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00134/1.067, allocations: 1.249 MB / 0.702 GB, free: 10.17 MB / 442.7 MB Notification: Performance of SimCode: time 1.282e-06/1.067, allocations: 3.938 kB / 0.702 GB, free: 10.17 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3879/1.455, allocations: 61.89 MB / 0.7625 GB, free: 88.73 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001492/1.455, allocations: 161.6 kB / 0.7626 GB, free: 88.52 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.388/5.843, allocations: 0 / 0.7626 GB, free: 88.52 MB / 442.7 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