Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.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.InvertersExtendedModel,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel",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.0009602/0.0009604, allocations: 172.4 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.351/1.351, allocations: 205.2 MB / 219.8 MB, free: 14.2 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008498/0.0008498, allocations: 86.7 kB / 268 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.423e-05/2.426e-05, allocations: 4 kB / 322.5 MB, free: 17.27 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08598/0.08602, allocations: 47.58 MB / 370.1 MB, free: 1.617 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3508/0.4369, allocations: 102.2 MB / 472.3 MB, free: 7.293 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000266/0.4372, allocations: 70.28 kB / 472.4 MB, free: 7.258 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4909/0.9281, allocations: 127.4 MB / 0.5857 GB, free: 89.68 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.375e-06/0.9282, allocations: 0 / 0.5857 GB, free: 89.68 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001243/0.9283, allocations: 46.06 kB / 0.5858 GB, free: 89.68 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.006286/0.9346, allocations: 2.803 MB / 0.5885 GB, free: 87.96 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.213e-05/0.9347, allocations: 6.469 kB / 0.5885 GB, free: 87.96 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002116/0.9349, allocations: 100.8 kB / 0.5886 GB, free: 87.88 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001047/0.936, allocations: 426.3 kB / 0.589 GB, free: 87.66 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006154/0.9422, allocations: 2.418 MB / 0.5914 GB, free: 86.55 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.395e-05/0.9422, allocations: 44.17 kB / 0.5914 GB, free: 86.53 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001902/0.9424, allocations: 56.38 kB / 0.5915 GB, free: 86.5 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001544/0.944, allocations: 0.7962 MB / 0.5922 GB, free: 86.13 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.878e-05/0.944, allocations: 0 / 0.5922 GB, free: 86.13 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.321e-05/0.9441, allocations: 22.09 kB / 0.5923 GB, free: 86.11 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.192e-05/0.9442, allocations: 20.94 kB / 0.5923 GB, free: 86.11 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009233/0.9451, allocations: 0.7097 MB / 0.593 GB, free: 85.9 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007488/0.9526, allocations: 3.291 MB / 0.5962 GB, free: 84.34 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009385/0.9536, allocations: 493.5 kB / 0.5967 GB, free: 84.09 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001001/0.9546, allocations: 0.5891 MB / 0.5972 GB, free: 83.79 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04207/0.9967, allocations: 36.2 MB / 0.6326 GB, free: 43.61 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000649/0.9974, allocations: 317.5 kB / 0.6329 GB, free: 43.28 MB / 410.7 MB Notification: Performance of pre-optimization done (n=49): time 3.056e-06/0.9974, allocations: 0 / 0.6329 GB, free: 43.28 MB / 410.7 MB Notification: Performance of matching and sorting (n=49): time 0.001793/0.9992, allocations: 0.8209 MB / 0.6337 GB, free: 42.45 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.913e-05/0.9993, allocations: 265 kB / 0.6339 GB, free: 42.13 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004675/1.004, allocations: 2.667 MB / 0.6365 GB, free: 39.46 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 7.98e-05/1.004, allocations: 37.7 kB / 0.6366 GB, free: 39.42 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001563/1.006, allocations: 1.584 MB / 0.6381 GB, free: 37.83 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001814/1.006, allocations: 165.7 kB / 0.6383 GB, free: 37.67 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.085e-05/1.006, allocations: 16 kB / 0.6383 GB, free: 37.66 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 9.231e-05/1.006, allocations: 341.9 kB / 0.6386 GB, free: 37.32 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004744/1.006, allocations: 194 kB / 0.6388 GB, free: 37.12 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006842/1.007, allocations: 0.5971 MB / 0.6394 GB, free: 36.33 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006022/1.008, allocations: 280.3 kB / 0.6397 GB, free: 36.06 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.106e-05/1.008, allocations: 4 kB / 0.6397 GB, free: 36.05 MB / 410.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002488/1.01, allocations: 1.148 MB / 0.6408 GB, free: 34.9 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.141e-05/1.01, allocations: 8 kB / 0.6408 GB, free: 34.89 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001367/1.011, allocations: 84.86 kB / 0.6409 GB, free: 34.81 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.114e-05/1.011, allocations: 19.94 kB / 0.6409 GB, free: 34.79 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001039/1.012, allocations: 219.6 kB / 0.6411 GB, free: 34.57 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.576e-05/1.012, allocations: 27.88 kB / 0.6411 GB, free: 34.55 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001921/1.014, allocations: 126.9 kB / 0.6412 GB, free: 34.42 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001273/1.014, allocations: 67.98 kB / 0.6413 GB, free: 34.36 MB / 410.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.0002092/1.014, allocations: 161.5 kB / 0.6415 GB, free: 34.19 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004842/1.014, allocations: 403.1 kB / 0.6419 GB, free: 33.79 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004354/1.019, allocations: 1.159 MB / 0.643 GB, free: 32.63 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.004e-05/1.019, allocations: 7.984 kB / 0.643 GB, free: 32.62 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.322e-06/1.019, allocations: 4 kB / 0.643 GB, free: 32.62 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.247e-06/1.019, allocations: 7.938 kB / 0.643 GB, free: 32.61 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00435/1.023, allocations: 2.191 MB / 0.6451 GB, free: 30.36 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.711e-05/1.023, allocations: 75.98 kB / 0.6452 GB, free: 30.29 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004804/1.024, allocations: 99.97 kB / 0.6453 GB, free: 30.19 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.012e-05/1.024, allocations: 7.938 kB / 0.6453 GB, free: 30.18 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.45e-05/1.024, allocations: 39.89 kB / 0.6454 GB, free: 30.14 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.29e-06/1.024, allocations: 7.938 kB / 0.6454 GB, free: 30.14 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/1.024, allocations: 4 kB / 0.6454 GB, free: 30.13 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00126/1.025, allocations: 1.233 MB / 0.6466 GB, free: 28.86 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009329/1.026, allocations: 0.5116 MB / 0.6471 GB, free: 28.32 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002919/1.026, allocations: 15.98 kB / 0.6471 GB, free: 28.31 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007192/1.027, allocations: 47.78 kB / 0.6471 GB, free: 28.27 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001333/1.027, allocations: 55.94 kB / 0.6472 GB, free: 28.21 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.397e-05/1.027, allocations: 43.92 kB / 0.6472 GB, free: 28.17 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002231/1.03, allocations: 2.031 MB / 0.6492 GB, free: 26.14 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.5e-07/1.03, allocations: 0 / 0.6492 GB, free: 26.14 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001397/1.031, allocations: 0.6674 MB / 0.6499 GB, free: 25.47 MB / 410.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.002486/1.034, allocations: 2.668 MB / 0.6525 GB, free: 22.94 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0009746/1.035, allocations: 0.7144 MB / 0.6532 GB, free: 22.2 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/1.035, allocations: 5.938 kB / 0.6532 GB, free: 22.2 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003877/1.035, allocations: 395.1 kB / 0.6535 GB, free: 21.79 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001447/1.036, allocations: 0.5228 MB / 0.6541 GB, free: 21.26 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005804/1.042, allocations: 3.801 MB / 0.6578 GB, free: 17.39 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000831/1.043, allocations: 1.782 MB / 0.6595 GB, free: 15.58 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001189/1.044, allocations: 390.8 kB / 0.6599 GB, free: 15.2 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009862/1.045, allocations: 1.261 MB / 0.6611 GB, free: 13.93 MB / 410.7 MB Notification: Performance of SimCode: time 1.412e-06/1.045, allocations: 0 / 0.6611 GB, free: 13.93 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3648/1.41, allocations: 62.14 MB / 0.7218 GB, free: 94.36 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001722/1.41, allocations: 162.1 kB / 0.7219 GB, free: 94.13 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.444/5.854, allocations: 7.375 kB / 0.722 GB, free: 94.13 MB / 426.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel.fmu > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat does not exist to compare? outputFormat=mat