Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.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.InvertersApartRecord,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_InvertersApartRecord",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.001954/0.001954, allocations: 180.4 kB / 16.38 MB, free: 5.766 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.369/1.369, allocations: 223.2 MB / 240.3 MB, free: 11.89 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00111/0.00111, allocations: 93.86 kB / 291.5 MB, free: 10.89 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002553/0.0002554, allocations: 8 kB / 351.2 MB, free: 15.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2591/0.2594, allocations: 50.4 MB / 401.6 MB, free: 32.56 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1242/0.3836, allocations: 104.3 MB / 0.494 GB, free: 8.133 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001998/0.3838, allocations: 79.95 kB / 0.4941 GB, free: 8.055 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5137/0.8975, allocations: 141.1 MB / 0.6319 GB, free: 10.7 MB / 410.7 MB Notification: Performance of FrontEnd: time 4.408e-06/0.8976, allocations: 0 / 0.6319 GB, free: 10.7 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0003277/0.898, allocations: 44 kB / 0.6319 GB, free: 10.66 MB / 410.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.009011/0.907, allocations: 3.425 MB / 0.6353 GB, free: 7.164 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.427e-05/0.907, allocations: 8.031 kB / 0.6353 GB, free: 7.156 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003878/0.9074, allocations: 98.5 kB / 0.6354 GB, free: 7.051 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009679/0.9084, allocations: 395.2 kB / 0.6357 GB, free: 6.66 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005594/0.914, allocations: 2.379 MB / 0.6381 GB, free: 4.207 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.633e-05/0.9141, allocations: 44.94 kB / 0.6381 GB, free: 4.164 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002075/0.9143, allocations: 51.91 kB / 0.6382 GB, free: 4.113 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001692/0.916, allocations: 0.8612 MB / 0.639 GB, free: 3.223 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.649e-05/0.9161, allocations: 0 / 0.639 GB, free: 3.223 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.39e-05/0.9161, allocations: 24 kB / 0.639 GB, free: 3.199 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.832e-05/0.9162, allocations: 19.98 kB / 0.639 GB, free: 3.18 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001639/0.9178, allocations: 0.8515 MB / 0.6399 GB, free: 2.32 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006214/0.9241, allocations: 3.176 MB / 0.643 GB, free: 15.06 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001223/0.9253, allocations: 0.6219 MB / 0.6436 GB, free: 14.43 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3575/1.283, allocations: 35.9 MB / 0.6786 GB, free: 60.03 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009354/1.284, allocations: 398 kB / 0.679 GB, free: 59.98 MB / 426.7 MB Notification: Performance of pre-optimization done (n=49): time 3.847e-06/1.284, allocations: 0 / 0.679 GB, free: 59.98 MB / 426.7 MB Notification: Performance of matching and sorting (n=49): time 0.003103/1.287, allocations: 1.464 MB / 0.6805 GB, free: 59.39 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.039e-05/1.287, allocations: 270.3 kB / 0.6807 GB, free: 59.08 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004121/1.291, allocations: 2.535 MB / 0.6832 GB, free: 58.81 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 7.245e-05/1.291, allocations: 40.67 kB / 0.6832 GB, free: 58.78 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001253/1.293, allocations: 1.496 MB / 0.6847 GB, free: 58.56 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001737/1.293, allocations: 170.8 kB / 0.6849 GB, free: 58.48 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.814e-05/1.293, allocations: 13.72 kB / 0.6849 GB, free: 58.48 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 9.318e-05/1.293, allocations: 338.7 kB / 0.6852 GB, free: 58.18 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005552/1.293, allocations: 268 kB / 0.6854 GB, free: 58.18 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006802/1.294, allocations: 0.6635 MB / 0.6861 GB, free: 57.66 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006004/1.295, allocations: 352.6 kB / 0.6864 GB, free: 57.66 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.242e-06/1.295, allocations: 2.25 kB / 0.6864 GB, free: 57.66 MB / 426.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002139/1.297, allocations: 1.27 MB / 0.6877 GB, free: 57.43 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.408e-05/1.297, allocations: 9.094 kB / 0.6877 GB, free: 57.43 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.449e-05/1.297, allocations: 78.28 kB / 0.6878 GB, free: 57.43 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.969e-05/1.297, allocations: 22.38 kB / 0.6878 GB, free: 57.43 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006711/1.298, allocations: 218.9 kB / 0.688 GB, free: 57.43 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.073e-05/1.298, allocations: 19.69 kB / 0.688 GB, free: 57.43 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0013/1.299, allocations: 130.8 kB / 0.6881 GB, free: 57.41 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001097/1.299, allocations: 65.72 kB / 0.6882 GB, free: 57.41 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 () * Number of clocked 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.001084/1.3, allocations: 441.9 kB / 0.6886 GB, free: 57.29 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003974/1.301, allocations: 386.4 kB / 0.689 GB, free: 57.1 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002902/1.304, allocations: 1.278 MB / 0.6902 GB, free: 57.01 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.937e-06/1.304, allocations: 3.312 kB / 0.6902 GB, free: 57.01 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/1.304, allocations: 0 / 0.6902 GB, free: 57.01 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.912e-06/1.304, allocations: 2.719 kB / 0.6902 GB, free: 57.01 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003195/1.307, allocations: 2.249 MB / 0.6924 GB, free: 56.62 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.033e-05/1.307, allocations: 70.48 kB / 0.6925 GB, free: 56.62 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004609/1.307, allocations: 103.5 kB / 0.6926 GB, free: 56.62 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.423e-06/1.307, allocations: 7.094 kB / 0.6926 GB, free: 56.62 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.448e-05/1.308, allocations: 33.98 kB / 0.6926 GB, free: 56.62 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.569e-06/1.308, allocations: 7.25 kB / 0.6926 GB, free: 56.62 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/1.308, allocations: 0 / 0.6926 GB, free: 56.62 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001947/1.31, allocations: 1.41 MB / 0.694 GB, free: 56.18 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007836/1.31, allocations: 0.5564 MB / 0.6946 GB, free: 55.82 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002622/1.311, allocations: 14.61 kB / 0.6946 GB, free: 55.82 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006663/1.311, allocations: 46.44 kB / 0.6946 GB, free: 55.82 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001391/1.311, allocations: 63.12 kB / 0.6947 GB, free: 55.82 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.16e-05/1.311, allocations: 41.17 kB / 0.6947 GB, free: 55.82 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002193/1.314, allocations: 1.947 MB / 0.6966 GB, free: 55.64 MB / 426.7 MB Notification: Performance of sort global known variables: time 3e-07/1.314, allocations: 0 / 0.6966 GB, free: 55.64 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00166/1.315, allocations: 0.6316 MB / 0.6972 GB, free: 55.63 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) * Number of clocked states: 0 () * 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.003896/1.319, allocations: 2.824 MB / 0.7 GB, free: 54.58 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001572/1.321, allocations: 0.8502 MB / 0.7008 GB, free: 54.44 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.436e-06/1.321, allocations: 0 / 0.7008 GB, free: 54.44 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006496/1.322, allocations: 464.8 kB / 0.7013 GB, free: 54.32 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002179/1.324, allocations: 0.5974 MB / 0.7019 GB, free: 54.28 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03279/1.356, allocations: 26.64 MB / 0.7279 GB, free: 35.95 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009831/1.358, allocations: 1.726 MB / 0.7296 GB, free: 35.22 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001541/1.359, allocations: 382.9 kB / 0.7299 GB, free: 35.19 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001126/1.36, allocations: 1.206 MB / 0.7311 GB, free: 35.18 MB / 426.7 MB Notification: Performance of SimCode: time 7.214e-06/1.36, allocations: 0 / 0.7311 GB, free: 35.18 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09235/1.453, allocations: 59.26 MB / 0.789 GB, free: 10.59 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001799/1.453, allocations: 183.4 kB / 0.7892 GB, free: 10.35 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.326/5.779, allocations: 4 kB / 0.7892 GB, free: 10.35 MB / 442.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_InvertersApartRecord_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_InvertersApartRecord.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat does not exist to compare? outputFormat=mat