Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.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.InvertersExtendedModel,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001136/0.001136, allocations: 197.5 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.319/1.319, allocations: 227.2 MB / 245 MB, free: 5.875 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000989/0.0009889, allocations: 112.3 kB / 297.3 MB, free: 5.98 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002546/0.0002546, allocations: 8 kB / 358 MB, free: 9.234 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2574/0.2577, allocations: 51.48 MB / 409.5 MB, free: 26.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1246/0.3824, allocations: 105.1 MB / 0.5025 GB, free: 1.441 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000194/0.3826, allocations: 75.95 kB / 0.5026 GB, free: 1.367 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4392/0.8218, allocations: 143.7 MB / 0.6429 GB, free: 13.74 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.374e-06/0.8219, allocations: 0 / 0.6429 GB, free: 13.74 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003045/0.8222, allocations: 48 kB / 0.643 GB, free: 13.7 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.009182/0.8314, allocations: 3.556 MB / 0.6464 GB, free: 10.07 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.249e-05/0.8315, allocations: 8.031 kB / 0.6465 GB, free: 10.06 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003566/0.8318, allocations: 102.5 kB / 0.6466 GB, free: 9.949 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006145/0.8324, allocations: 418.9 kB / 0.647 GB, free: 9.535 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004851/0.8373, allocations: 2.436 MB / 0.6493 GB, free: 7.031 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.345e-05/0.8374, allocations: 44.98 kB / 0.6494 GB, free: 6.984 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001269/0.8375, allocations: 51.91 kB / 0.6494 GB, free: 6.934 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001538/0.839, allocations: 0.8612 MB / 0.6503 GB, free: 6.035 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.547e-05/0.8391, allocations: 0 / 0.6503 GB, free: 6.035 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.429e-05/0.8392, allocations: 20 kB / 0.6503 GB, free: 6.016 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.754e-05/0.8392, allocations: 23.98 kB / 0.6503 GB, free: 5.992 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001615/0.8408, allocations: 0.8515 MB / 0.6511 GB, free: 5.137 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006227/0.847, allocations: 3.275 MB / 0.6543 GB, free: 1.785 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001176/0.8483, allocations: 0.6258 MB / 0.6549 GB, free: 1.148 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2835/1.132, allocations: 36.58 MB / 0.6907 GB, free: 67.38 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007342/1.133, allocations: 384.3 kB / 0.691 GB, free: 67.32 MB / 442.7 MB Notification: Performance of pre-optimization done (n=49): time 2.584e-06/1.133, allocations: 0.7188 kB / 0.691 GB, free: 67.32 MB / 442.7 MB Notification: Performance of matching and sorting (n=49): time 0.002276/1.135, allocations: 1.482 MB / 0.6925 GB, free: 66.74 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.225e-05/1.135, allocations: 274.4 kB / 0.6927 GB, free: 66.42 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003763/1.139, allocations: 2.693 MB / 0.6954 GB, free: 66.15 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 5.875e-05/1.139, allocations: 36.17 kB / 0.6954 GB, free: 66.12 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001146/1.14, allocations: 1.578 MB / 0.697 GB, free: 65.9 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001281/1.14, allocations: 172.9 kB / 0.6971 GB, free: 65.82 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.994e-05/1.14, allocations: 17.75 kB / 0.6971 GB, free: 65.82 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 8.286e-05/1.14, allocations: 342.3 kB / 0.6975 GB, free: 65.51 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005226/1.141, allocations: 259.6 kB / 0.6977 GB, free: 65.51 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007468/1.141, allocations: 0.668 MB / 0.6984 GB, free: 65 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005801/1.142, allocations: 355.6 kB / 0.6987 GB, free: 64.99 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.532e-06/1.142, allocations: 3.406 kB / 0.6987 GB, free: 64.99 MB / 442.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001867/1.144, allocations: 1.28 MB / 0.7 GB, free: 64.77 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.232e-05/1.144, allocations: 13.06 kB / 0.7 GB, free: 64.77 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.688e-05/1.144, allocations: 81.64 kB / 0.7 GB, free: 64.77 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.009e-05/1.144, allocations: 18 kB / 0.7001 GB, free: 64.77 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006554/1.145, allocations: 212.1 kB / 0.7003 GB, free: 64.77 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.272e-05/1.145, allocations: 28.64 kB / 0.7003 GB, free: 64.77 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001244/1.146, allocations: 123.6 kB / 0.7004 GB, free: 64.74 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.249e-05/1.146, allocations: 68.17 kB / 0.7005 GB, free: 64.74 MB / 442.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.0008619/1.147, allocations: 454.5 kB / 0.7009 GB, free: 64.62 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003103/1.147, allocations: 398.8 kB / 0.7013 GB, free: 64.42 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002837/1.15, allocations: 1.296 MB / 0.7026 GB, free: 64.33 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.724e-06/1.15, allocations: 5.438 kB / 0.7026 GB, free: 64.33 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.012e-06/1.15, allocations: 0 / 0.7026 GB, free: 64.33 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.261e-06/1.15, allocations: 3.938 kB / 0.7026 GB, free: 64.33 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00344/1.154, allocations: 2.333 MB / 0.7048 GB, free: 63.94 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.468e-05/1.154, allocations: 66.81 kB / 0.7049 GB, free: 63.94 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004658/1.154, allocations: 109.3 kB / 0.705 GB, free: 63.94 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.512e-06/1.154, allocations: 7.344 kB / 0.705 GB, free: 63.94 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.361e-05/1.154, allocations: 25.94 kB / 0.705 GB, free: 63.94 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.28e-06/1.154, allocations: 10.41 kB / 0.705 GB, free: 63.94 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/1.154, allocations: 0 / 0.705 GB, free: 63.94 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002013/1.156, allocations: 1.433 MB / 0.7064 GB, free: 63.48 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009346/1.157, allocations: 0.5156 MB / 0.707 GB, free: 63.18 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002874/1.158, allocations: 20.33 kB / 0.707 GB, free: 63.18 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007147/1.158, allocations: 36.28 kB / 0.707 GB, free: 63.18 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001341/1.158, allocations: 64.53 kB / 0.7071 GB, free: 63.18 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.242e-05/1.159, allocations: 47.14 kB / 0.7071 GB, free: 63.18 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002251/1.161, allocations: 2.054 MB / 0.7091 GB, free: 63 MB / 442.7 MB Notification: Performance of sort global known variables: time 2e-07/1.161, allocations: 0 / 0.7091 GB, free: 63 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.00148/1.162, allocations: 0.6658 MB / 0.7098 GB, free: 62.99 MB / 442.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.003293/1.166, allocations: 2.871 MB / 0.7126 GB, free: 61.93 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001446/1.167, allocations: 0.8461 MB / 0.7134 GB, free: 61.8 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/1.167, allocations: 0 / 0.7134 GB, free: 61.8 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006414/1.168, allocations: 462.2 kB / 0.7138 GB, free: 61.67 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002033/1.17, allocations: 0.6249 MB / 0.7144 GB, free: 61.64 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03193/1.202, allocations: 27.77 MB / 0.7416 GB, free: 42.46 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009235/1.203, allocations: 1.774 MB / 0.7433 GB, free: 41.73 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.00146/1.204, allocations: 387.2 kB / 0.7437 GB, free: 41.71 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001017/1.205, allocations: 1.248 MB / 0.7449 GB, free: 41.7 MB / 442.7 MB Notification: Performance of SimCode: time 8.12e-07/1.205, allocations: 0 / 0.7449 GB, free: 41.7 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08333/1.288, allocations: 62.33 MB / 0.8058 GB, free: 0.5469 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001375/1.289, allocations: 188.6 kB / 0.8059 GB, free: 312 kB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.235/5.524, allocations: 0 / 0.8059 GB, free: 312 kB / 442.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel.fmu > Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat does not exist to compare? outputFormat=mat