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.001495/0.001495, allocations: 176.4 kB / 8.349 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.34/1.34, allocations: 221.5 MB / 230.3 MB, free: 7.578 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.0009345/0.0009344, allocations: 90.84 kB / 281.2 MB, free: 5.336 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.64e-05/1.643e-05, allocations: 4 kB / 337.1 MB, free: 9.949 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.104/0.104, allocations: 50.41 MB / 387.6 MB, free: 7.496 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5077/0.6118, allocations: 103.6 MB / 491.1 MB, free: 7.227 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002974/0.6121, allocations: 67.97 kB / 491.2 MB, free: 7.16 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6181/1.23, allocations: 137.9 MB / 0.6143 GB, free: 90.19 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.493e-06/1.23, allocations: 0 / 0.6143 GB, free: 90.19 MB / 426.7 MB Notification: Performance of Transformations before backend: time 9.826e-05/1.23, allocations: 47.53 kB / 0.6144 GB, free: 90.19 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.00496/1.235, allocations: 2.787 MB / 0.6171 GB, free: 88.2 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.21e-05/1.235, allocations: 9.75 kB / 0.6171 GB, free: 88.2 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004527/1.236, allocations: 418.7 kB / 0.6175 GB, free: 87.98 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003039/1.239, allocations: 2.411 MB / 0.6198 GB, free: 86.33 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.459e-05/1.239, allocations: 22.38 kB / 0.6199 GB, free: 86.33 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000106/1.239, allocations: 32.47 kB / 0.6199 GB, free: 86.32 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000902/1.24, allocations: 0.6918 MB / 0.6206 GB, free: 85.81 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008737/1.241, allocations: 0.7167 MB / 0.6213 GB, free: 85.06 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.635e-05/1.241, allocations: 11.98 kB / 0.6213 GB, free: 85.05 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.389e-05/1.241, allocations: 0 / 0.6213 GB, free: 85.05 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.266e-05/1.241, allocations: 19.98 kB / 0.6213 GB, free: 85.03 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004872/1.246, allocations: 3.154 MB / 0.6244 GB, free: 81.84 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004889/1.246, allocations: 484.5 kB / 0.6248 GB, free: 81.36 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004904/1.247, allocations: 0.5654 MB / 0.6254 GB, free: 80.79 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02717/1.274, allocations: 36.09 MB / 0.6606 GB, free: 39.62 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003876/1.274, allocations: 305.6 kB / 0.6609 GB, free: 39.31 MB / 426.7 MB Notification: Performance of pre-optimization done (n=49): time 2.725e-06/1.274, allocations: 0 / 0.6609 GB, free: 39.31 MB / 426.7 MB Notification: Performance of matching and sorting (n=49): time 0.001177/1.276, allocations: 0.7963 MB / 0.6617 GB, free: 38.5 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.512e-05/1.276, allocations: 269 kB / 0.662 GB, free: 38.18 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002979/1.279, allocations: 2.44 MB / 0.6643 GB, free: 35.74 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 6.731e-05/1.279, allocations: 33.7 kB / 0.6644 GB, free: 35.7 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00107/1.28, allocations: 1.576 MB / 0.6659 GB, free: 34.12 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001182/1.28, allocations: 165.7 kB / 0.6661 GB, free: 33.95 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.233e-05/1.28, allocations: 0 / 0.6661 GB, free: 33.95 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 8.708e-05/1.28, allocations: 345.9 kB / 0.6664 GB, free: 33.61 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002478/1.28, allocations: 174.6 kB / 0.6666 GB, free: 33.44 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004058/1.281, allocations: 0.5742 MB / 0.6671 GB, free: 32.66 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004547/1.281, allocations: 263.3 kB / 0.6674 GB, free: 32.41 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.199e-05/1.281, allocations: 8 kB / 0.6674 GB, free: 32.41 MB / 426.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001437/1.283, allocations: 1.037 MB / 0.6684 GB, free: 31.36 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.362e-05/1.283, allocations: 13.25 kB / 0.6684 GB, free: 31.35 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.858e-05/1.283, allocations: 79.98 kB / 0.6685 GB, free: 31.27 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.987e-05/1.283, allocations: 16 kB / 0.6685 GB, free: 31.25 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007663/1.284, allocations: 220 kB / 0.6687 GB, free: 31.04 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.986e-05/1.284, allocations: 27.86 kB / 0.6687 GB, free: 31.01 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001306/1.285, allocations: 107 kB / 0.6688 GB, free: 30.91 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.318e-05/1.285, allocations: 68 kB / 0.6689 GB, free: 30.84 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.0001599/1.285, allocations: 140.6 kB / 0.669 GB, free: 30.7 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0009023/1.286, allocations: 0.8046 MB / 0.6698 GB, free: 29.89 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002846/1.287, allocations: 407.1 kB / 0.6702 GB, free: 29.48 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002522/1.289, allocations: 1.117 MB / 0.6713 GB, free: 28.36 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.883e-06/1.289, allocations: 7.938 kB / 0.6713 GB, free: 28.35 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/1.289, allocations: 3.984 kB / 0.6713 GB, free: 28.35 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/1.289, allocations: 4 kB / 0.6713 GB, free: 28.34 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002836/1.292, allocations: 2.081 MB / 0.6734 GB, free: 26.22 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.87e-05/1.292, allocations: 67.98 kB / 0.6734 GB, free: 26.16 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004714/1.292, allocations: 107.9 kB / 0.6735 GB, free: 26.05 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.585e-06/1.293, allocations: 4 kB / 0.6735 GB, free: 26.05 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.844e-05/1.293, allocations: 23.98 kB / 0.6735 GB, free: 26.02 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.018e-06/1.293, allocations: 4 kB / 0.6735 GB, free: 26.02 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.069e-06/1.293, allocations: 11.95 kB / 0.6736 GB, free: 26.01 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001198/1.294, allocations: 1.204 MB / 0.6747 GB, free: 24.76 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007719/1.295, allocations: 0.5117 MB / 0.6752 GB, free: 24.23 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003076/1.295, allocations: 11.98 kB / 0.6752 GB, free: 24.21 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007667/1.296, allocations: 36.03 kB / 0.6753 GB, free: 24.18 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001287/1.296, allocations: 59.92 kB / 0.6753 GB, free: 24.12 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.035e-05/1.296, allocations: 36 kB / 0.6754 GB, free: 24.09 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001948/1.298, allocations: 1.812 MB / 0.6771 GB, free: 22.28 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.7e-07/1.298, allocations: 4 kB / 0.6771 GB, free: 22.28 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00143/1.299, allocations: 0.6165 MB / 0.6777 GB, free: 21.66 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.002412/1.302, allocations: 2.745 MB / 0.6804 GB, free: 18.96 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0008933/1.303, allocations: 0.6593 MB / 0.6811 GB, free: 18.28 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/1.303, allocations: 2.5 kB / 0.6811 GB, free: 18.28 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003529/1.303, allocations: 387.1 kB / 0.6814 GB, free: 17.88 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002365/1.305, allocations: 0.6158 MB / 0.682 GB, free: 17.26 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005664/1.311, allocations: 3.736 MB / 0.6857 GB, free: 13.46 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008627/1.312, allocations: 1.777 MB / 0.6874 GB, free: 11.66 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001271/1.313, allocations: 382.7 kB / 0.6878 GB, free: 11.28 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009708/1.314, allocations: 1.253 MB / 0.689 GB, free: 10.02 MB / 426.7 MB Notification: Performance of SimCode: time 9.41e-07/1.314, allocations: 0 / 0.689 GB, free: 10.02 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3934/1.708, allocations: 55.95 MB / 0.7437 GB, free: 97.89 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000267/1.708, allocations: 158.3 kB / 0.7438 GB, free: 97.69 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.493/6.201, allocations: 3.938 kB / 0.7438 GB, free: 97.69 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