Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.FourInverters,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_FourInverters",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.FourInverters,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_FourInverters",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001066/0.001066, allocations: 198.1 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.545/1.545, allocations: 225.6 MB / 234.8 MB, free: 3.203 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008565/0.0008566, allocations: 98.22 kB / 286.7 MB, free: 5.273 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.318e-05/2.319e-05, allocations: 4 kB / 343.8 MB, free: 8.16 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1204/0.1205, allocations: 51.47 MB / 395.3 MB, free: 4.645 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4153/0.5358, allocations: 104.5 MB / 499.8 MB, free: 4.605 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002014/0.5361, allocations: 69.66 kB / 499.8 MB, free: 4.57 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7005/1.237, allocations: 213.9 MB / 0.697 GB, free: 42.37 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.423e-06/1.237, allocations: 0 / 0.697 GB, free: 42.37 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0004618/1.237, allocations: 88 kB / 0.6971 GB, free: 42.29 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 288 * Number of variables: 288 Notification: Performance of Generate backend data structure: time 0.009521/1.247, allocations: 4.658 MB / 0.7016 GB, free: 37.57 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.004e-05/1.247, allocations: 8.031 kB / 0.7016 GB, free: 37.56 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00153/1.248, allocations: 0.7434 MB / 0.7024 GB, free: 36.81 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008491/1.257, allocations: 4.477 MB / 0.7067 GB, free: 32.42 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.176e-05/1.257, allocations: 31.94 kB / 0.7068 GB, free: 32.39 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004359/1.257, allocations: 69.95 kB / 0.7068 GB, free: 32.32 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002195/1.259, allocations: 1.305 MB / 0.7081 GB, free: 31.02 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001849/1.261, allocations: 1.328 MB / 0.7094 GB, free: 29.62 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.25e-05/1.261, allocations: 0 / 0.7094 GB, free: 29.62 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001098/1.261, allocations: 4 kB / 0.7094 GB, free: 29.62 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.226e-05/1.262, allocations: 41.47 kB / 0.7094 GB, free: 29.58 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009428/1.271, allocations: 5.651 MB / 0.715 GB, free: 23.93 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009079/1.272, allocations: 0.8429 MB / 0.7158 GB, free: 23.07 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009317/1.273, allocations: 1.119 MB / 0.7169 GB, free: 21.95 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3608/1.634, allocations: 72.98 MB / 0.7881 GB, free: 33.82 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006777/1.634, allocations: 0.4883 MB / 0.7886 GB, free: 33.77 MB / 458.7 MB Notification: Performance of pre-optimization done (n=85): time 3.416e-06/1.634, allocations: 5.328 kB / 0.7886 GB, free: 33.77 MB / 458.7 MB Notification: Performance of matching and sorting (n=85): time 0.003138/1.638, allocations: 1.417 MB / 0.79 GB, free: 33.36 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003287/1.638, allocations: 477.8 kB / 0.7905 GB, free: 32.8 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009824/1.648, allocations: 4.379 MB / 0.7947 GB, free: 32.38 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002835/1.648, allocations: 29.89 kB / 0.7948 GB, free: 32.35 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002636/1.651, allocations: 2.934 MB / 0.7976 GB, free: 32 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004628/1.651, allocations: 297.8 kB / 0.7979 GB, free: 31.86 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.737e-05/1.651, allocations: 0 / 0.7979 GB, free: 31.86 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002022/1.652, allocations: 370.1 kB / 0.7983 GB, free: 31.55 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005331/1.652, allocations: 314.7 kB / 0.7986 GB, free: 31.55 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00113/1.653, allocations: 1.081 MB / 0.7996 GB, free: 30.57 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008884/1.654, allocations: 494.8 kB / 0.8001 GB, free: 30.55 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.658e-05/1.654, allocations: 8.562 kB / 0.8001 GB, free: 30.55 MB / 458.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.004175/1.658, allocations: 1.914 MB / 0.802 GB, free: 30.16 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.754e-05/1.658, allocations: 18.67 kB / 0.802 GB, free: 30.16 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003714/1.659, allocations: 158.5 kB / 0.8021 GB, free: 30.16 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.54e-05/1.659, allocations: 36.62 kB / 0.8022 GB, free: 30.16 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001443/1.66, allocations: 372.9 kB / 0.8025 GB, free: 30.16 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.901e-05/1.66, allocations: 49.75 kB / 0.8026 GB, free: 30.16 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003573/1.664, allocations: 177.8 kB / 0.8028 GB, free: 30.11 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000273/1.664, allocations: 121.6 kB / 0.8029 GB, free: 30.11 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 108 * 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 (184): * Single equations (assignments): 176 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.0003746/1.665, allocations: 176.1 kB / 0.803 GB, free: 30.01 MB / 458.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003645/1.668, allocations: 1.422 MB / 0.8044 GB, free: 29.59 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001552/1.67, allocations: 0.7192 MB / 0.8051 GB, free: 29.22 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006183/1.676, allocations: 2.078 MB / 0.8072 GB, free: 29.09 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.594e-05/1.676, allocations: 10.89 kB / 0.8072 GB, free: 29.09 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.935e-06/1.676, allocations: 2.75 kB / 0.8072 GB, free: 29.09 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.207e-06/1.676, allocations: 7.609 kB / 0.8072 GB, free: 29.09 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007856/1.684, allocations: 3.541 MB / 0.8106 GB, free: 28.69 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001695/1.684, allocations: 134.3 kB / 0.8108 GB, free: 28.69 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007855/1.685, allocations: 164.2 kB / 0.8109 GB, free: 28.69 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.401e-05/1.685, allocations: 6.109 kB / 0.8109 GB, free: 28.69 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.914e-05/1.685, allocations: 49.91 kB / 0.811 GB, free: 28.69 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.853e-06/1.685, allocations: 7.969 kB / 0.811 GB, free: 28.69 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/1.685, allocations: 0 / 0.811 GB, free: 28.69 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003275/1.688, allocations: 2.05 MB / 0.813 GB, free: 28 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00243/1.691, allocations: 0.9272 MB / 0.8139 GB, free: 27.47 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001196/1.692, allocations: 6.125 kB / 0.8139 GB, free: 27.47 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001351/1.693, allocations: 43.61 kB / 0.8139 GB, free: 27.47 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001892/1.694, allocations: 103 kB / 0.814 GB, free: 27.46 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001225/1.694, allocations: 73.06 kB / 0.8141 GB, free: 27.46 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.006092/1.7, allocations: 3.229 MB / 0.8173 GB, free: 27.21 MB / 458.7 MB Notification: Performance of sort global known variables: time 7.92e-07/1.7, allocations: 0 / 0.8173 GB, free: 27.21 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.003929/1.704, allocations: 1.125 MB / 0.8184 GB, free: 27.2 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (c1.vinternal,c2.vinternal,c3.vinternal,c4.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 (70): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.004806/1.709, allocations: 3.876 MB / 0.8221 GB, free: 25.95 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.001776/1.71, allocations: 1.248 MB / 0.8234 GB, free: 25.69 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 4.468e-06/1.711, allocations: 0 / 0.8234 GB, free: 25.69 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007515/1.711, allocations: 0.7056 MB / 0.824 GB, free: 25.44 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005672/1.717, allocations: 1.143 MB / 0.8252 GB, free: 25.4 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01369/1.731, allocations: 6.873 MB / 0.8319 GB, free: 23.44 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002706/1.733, allocations: 2.709 MB / 0.8345 GB, free: 22.66 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.003986/1.737, allocations: 0.7339 MB / 0.8352 GB, free: 22.61 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004241/1.742, allocations: 2.417 MB / 0.8376 GB, free: 22.6 MB / 458.7 MB Notification: Performance of SimCode: time 1.663e-06/1.742, allocations: 0 / 0.8376 GB, free: 22.6 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4413/2.183, allocations: 98.87 MB / 0.9342 GB, free: 99.53 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001611/2.183, allocations: 134.1 kB / 0.9343 GB, free: 99.34 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.891/11.07, allocations: 0 / 0.9343 GB, free: 99.34 MB / 490.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Spice3_Examples_FourInverters_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Spice3_Examples_FourInverters.fmu > Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat does not exist to compare? outputFormat=mat