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.001716/0.001716, allocations: 178.4 kB / 8.697 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.494/1.494, allocations: 205.3 MB / 214.4 MB, free: 1.738 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008309/0.000831, allocations: 86.69 kB / 262.4 MB, free: 1.68 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.854e-05/1.85e-05, allocations: 0 / 315.6 MB, free: 22.62 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09637/0.09641, allocations: 47.58 MB / 363.2 MB, free: 6.984 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3545/0.451, allocations: 101.8 MB / 465 MB, free: 10.13 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002066/0.4513, allocations: 64.84 kB / 465 MB, free: 10.1 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5445/0.9958, allocations: 122.1 MB / 0.5733 GB, free: 74.3 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.743e-06/0.9959, allocations: 0 / 0.5733 GB, free: 74.3 MB / 410.7 MB Notification: Performance of Transformations before backend: time 9.571e-05/0.996, allocations: 45.81 kB / 0.5734 GB, free: 74.3 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.005113/1.001, allocations: 2.81 MB / 0.5761 GB, free: 72.76 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.793e-05/1.001, allocations: 10.66 kB / 0.5761 GB, free: 72.76 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004798/1.002, allocations: 420.1 kB / 0.5765 GB, free: 72.54 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003443/1.005, allocations: 2.428 MB / 0.5789 GB, free: 71.88 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.656e-05/1.005, allocations: 18.58 kB / 0.5789 GB, free: 71.87 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001118/1.005, allocations: 42.64 kB / 0.579 GB, free: 71.87 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009178/1.006, allocations: 0.6832 MB / 0.5796 GB, free: 71.86 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009077/1.007, allocations: 0.726 MB / 0.5803 GB, free: 71.73 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.43e-05/1.007, allocations: 0 / 0.5803 GB, free: 71.73 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.731e-05/1.007, allocations: 7.438 kB / 0.5804 GB, free: 71.73 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2e-05/1.007, allocations: 16.44 kB / 0.5804 GB, free: 71.73 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005061/1.012, allocations: 3.165 MB / 0.5835 GB, free: 71.2 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006263/1.013, allocations: 467.2 kB / 0.5839 GB, free: 71.17 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006098/1.014, allocations: 0.5685 MB / 0.5845 GB, free: 71.15 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03024/1.044, allocations: 36.19 MB / 0.6198 GB, free: 44.67 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004425/1.044, allocations: 304.4 kB / 0.6201 GB, free: 44.62 MB / 410.7 MB Notification: Performance of pre-optimization done (n=49): time 2.364e-06/1.044, allocations: 0 / 0.6201 GB, free: 44.62 MB / 410.7 MB Notification: Performance of matching and sorting (n=49): time 0.001273/1.046, allocations: 0.802 MB / 0.6209 GB, free: 44.25 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.189e-05/1.046, allocations: 276.9 kB / 0.6211 GB, free: 43.92 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003046/1.049, allocations: 2.456 MB / 0.6235 GB, free: 42.07 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.941e-05/1.049, allocations: 33.7 kB / 0.6236 GB, free: 42.03 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001082/1.05, allocations: 1.579 MB / 0.6251 GB, free: 40.56 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001184/1.05, allocations: 156.5 kB / 0.6253 GB, free: 40.42 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.14e-05/1.05, allocations: 0 / 0.6253 GB, free: 40.42 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 8.909e-05/1.05, allocations: 337.4 kB / 0.6256 GB, free: 40.1 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002352/1.05, allocations: 174.6 kB / 0.6258 GB, free: 39.93 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004348/1.051, allocations: 0.5811 MB / 0.6263 GB, free: 39.16 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004112/1.051, allocations: 267.2 kB / 0.6266 GB, free: 38.92 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.252e-06/1.051, allocations: 4 kB / 0.6266 GB, free: 38.92 MB / 410.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001333/1.053, allocations: 1.051 MB / 0.6276 GB, free: 37.91 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.128e-05/1.053, allocations: 12 kB / 0.6276 GB, free: 37.9 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001265/1.053, allocations: 79.89 kB / 0.6277 GB, free: 37.83 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.092e-05/1.053, allocations: 20.75 kB / 0.6277 GB, free: 37.81 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006825/1.053, allocations: 209.1 kB / 0.6279 GB, free: 37.63 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.811e-05/1.054, allocations: 31.67 kB / 0.6279 GB, free: 37.61 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00122/1.055, allocations: 114.5 kB / 0.6281 GB, free: 37.5 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.346e-05/1.055, allocations: 67.95 kB / 0.6281 GB, free: 37.44 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.000165/1.055, allocations: 145.2 kB / 0.6283 GB, free: 37.29 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.000897/1.056, allocations: 0.8036 MB / 0.629 GB, free: 36.5 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002921/1.056, allocations: 399.1 kB / 0.6294 GB, free: 36.11 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002501/1.059, allocations: 1.126 MB / 0.6305 GB, free: 35.12 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.093e-06/1.059, allocations: 6.625 kB / 0.6305 GB, free: 35.11 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.743e-06/1.059, allocations: 7.953 kB / 0.6305 GB, free: 35.11 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.311e-06/1.059, allocations: 2.812 kB / 0.6305 GB, free: 35.11 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002744/1.062, allocations: 2.087 MB / 0.6326 GB, free: 32.99 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.328e-05/1.062, allocations: 67.98 kB / 0.6326 GB, free: 32.92 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004691/1.062, allocations: 107.9 kB / 0.6327 GB, free: 32.82 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.671e-06/1.062, allocations: 0 / 0.6327 GB, free: 32.82 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.899e-05/1.062, allocations: 31.94 kB / 0.6328 GB, free: 32.79 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.877e-06/1.062, allocations: 4 kB / 0.6328 GB, free: 32.78 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/1.062, allocations: 0 / 0.6328 GB, free: 32.78 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001149/1.063, allocations: 1.213 MB / 0.634 GB, free: 31.53 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000734/1.064, allocations: 0.5155 MB / 0.6345 GB, free: 30.99 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003121/1.064, allocations: 7.984 kB / 0.6345 GB, free: 30.98 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007729/1.065, allocations: 40.03 kB / 0.6345 GB, free: 30.94 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001323/1.065, allocations: 63.92 kB / 0.6346 GB, free: 30.88 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.045e-05/1.065, allocations: 32 kB / 0.6346 GB, free: 30.85 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002051/1.067, allocations: 1.824 MB / 0.6364 GB, free: 29.03 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.7e-07/1.067, allocations: 3.938 kB / 0.6364 GB, free: 29.03 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00138/1.069, allocations: 0.6241 MB / 0.637 GB, free: 28.41 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.00241/1.071, allocations: 2.756 MB / 0.6397 GB, free: 25.71 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0008775/1.072, allocations: 0.6655 MB / 0.6403 GB, free: 25.02 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.549e-06/1.072, allocations: 4 kB / 0.6403 GB, free: 25.02 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003787/1.073, allocations: 383.1 kB / 0.6407 GB, free: 24.62 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0015/1.074, allocations: 0.5113 MB / 0.6412 GB, free: 24.1 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005708/1.08, allocations: 3.762 MB / 0.6449 GB, free: 20.29 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009145/1.081, allocations: 1.785 MB / 0.6466 GB, free: 18.48 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001204/1.082, allocations: 383.1 kB / 0.647 GB, free: 18.11 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009867/1.083, allocations: 1.261 MB / 0.6482 GB, free: 16.85 MB / 410.7 MB Notification: Performance of SimCode: time 9.62e-07/1.083, allocations: 0 / 0.6482 GB, free: 16.85 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3533/1.436, allocations: 56.17 MB / 0.7031 GB, free: 108.6 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001688/1.436, allocations: 146.5 kB / 0.7032 GB, free: 108.4 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.479/5.916, allocations: 0.875 kB / 0.7032 GB, free: 108.4 MB / 442.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