Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.ParallelResonance.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.Analog.Examples.ParallelResonance,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_ParallelResonance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ParallelResonance,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_ParallelResonance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001372/0.001372, 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.184/1.184, allocations: 227.2 MB / 245 MB, free: 7.664 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008599/0.0008599, allocations: 95.22 kB / 297.3 MB, free: 6.203 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002035/0.0002035, allocations: 8 kB / 358 MB, free: 9.457 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1795/0.1798, allocations: 51.48 MB / 409.5 MB, free: 26.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08704/0.2668, allocations: 80.19 MB / 489.7 MB, free: 10.43 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001872/0.2671, allocations: 75.97 kB / 489.8 MB, free: 10.36 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01345/0.2805, allocations: 5.199 MB / 495 MB, free: 5.148 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.042e-06/0.2805, allocations: 4 kB / 495 MB, free: 5.145 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.639e-05/0.2806, allocations: 4 kB / 495 MB, free: 5.141 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.000827/0.2814, allocations: 0.5846 MB / 495.6 MB, free: 4.504 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.151e-05/0.2815, allocations: 12.02 kB / 495.6 MB, free: 4.492 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.828e-05/0.2815, allocations: 62.55 kB / 495.6 MB, free: 4.422 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.296e-05/0.2816, allocations: 43.56 kB / 495.7 MB, free: 4.379 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000302/0.2819, allocations: 270.4 kB / 495.9 MB, free: 4.074 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.263e-05/0.282, allocations: 24.64 kB / 496 MB, free: 4.051 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.008e-05/0.282, allocations: 32 kB / 496 MB, free: 4.02 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005211/0.2825, allocations: 282.1 kB / 496.3 MB, free: 3.742 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.048e-05/0.2826, allocations: 0 / 496.3 MB, free: 3.742 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.976e-05/0.2826, allocations: 15.98 kB / 496.3 MB, free: 3.727 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.145e-05/0.2826, allocations: 8 kB / 496.3 MB, free: 3.719 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004432/0.2831, allocations: 214.5 kB / 496.5 MB, free: 3.508 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001554/0.2846, allocations: 1.065 MB / 497.6 MB, free: 2.371 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003007/0.2849, allocations: 174.5 kB / 497.7 MB, free: 2.191 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.636e-05/0.285, allocations: 0 / 497.7 MB, free: 2.191 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.664e-05/0.285, allocations: 38.56 kB / 497.8 MB, free: 2.145 MB / 362.7 MB Notification: Performance of pre-optimization done (n=19): time 9.22e-07/0.285, allocations: 0 / 497.8 MB, free: 2.145 MB / 362.7 MB Notification: Performance of matching and sorting (n=19): time 0.0005578/0.2856, allocations: 255.7 kB / 498 MB, free: 1.891 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.105e-05/0.2856, allocations: 59.34 kB / 498.1 MB, free: 1.82 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001758/0.2858, allocations: 190.3 kB / 498.3 MB, free: 1.625 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.061e-05/0.2858, allocations: 33.7 kB / 498.3 MB, free: 1.586 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001091/0.2859, allocations: 196 kB / 498.5 MB, free: 1.391 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.176e-05/0.286, allocations: 70.94 kB / 498.6 MB, free: 1.32 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.058e-05/0.286, allocations: 4 kB / 498.6 MB, free: 1.316 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000143/0.2862, allocations: 338.8 kB / 498.9 MB, free: 0.9766 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001675/0.2863, allocations: 76.52 kB / 499 MB, free: 0.9023 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001984/0.2865, allocations: 141.3 kB / 499.1 MB, free: 0.7383 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001868/0.2867, allocations: 99.67 kB / 499.2 MB, free: 0.6445 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.2867, allocations: 0 / 499.2 MB, free: 0.6445 MB / 362.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0004642/0.2872, allocations: 281.1 kB / 499.5 MB, free: 372 kB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.298e-05/0.2872, allocations: 4 kB / 499.5 MB, free: 368 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.083e-06/0.2873, allocations: 4 kB / 499.5 MB, free: 364 kB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.272e-05/0.2873, allocations: 4 kB / 499.5 MB, free: 360 kB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003053/0.2876, allocations: 75.89 kB / 499.6 MB, free: 284 kB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.394e-06/0.2876, allocations: 4 kB / 499.6 MB, free: 280 kB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000154/0.2878, allocations: 35.92 kB / 499.6 MB, free: 244 kB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.797e-05/0.2878, allocations: 8 kB / 499.6 MB, free: 236 kB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.0001356/0.2879, allocations: 153.6 kB / 499.8 MB, free: 72 kB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.406e-05/0.288, allocations: 23.72 kB / 499.8 MB, free: 48 kB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004538/0.2884, allocations: 222 kB / 0.4883 GB, free: 15.82 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.268e-06/0.2884, allocations: 7.984 kB / 0.4883 GB, free: 15.81 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.2885, allocations: 0 / 0.4883 GB, free: 15.81 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.819e-06/0.2885, allocations: 7.922 kB / 0.4883 GB, free: 15.8 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003382/0.2888, allocations: 333.5 kB / 0.4886 GB, free: 15.43 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/0.2888, allocations: 0 / 0.4886 GB, free: 15.43 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003108/0.2891, allocations: 59.97 kB / 0.4887 GB, free: 15.37 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.264e-06/0.2891, allocations: 4 kB / 0.4887 GB, free: 15.37 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.655e-05/0.2892, allocations: 4 kB / 0.4887 GB, free: 15.36 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.815e-06/0.2892, allocations: 4 kB / 0.4887 GB, free: 15.36 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.2892, allocations: 0 / 0.4887 GB, free: 15.36 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005994/0.2898, allocations: 395.6 kB / 0.4891 GB, free: 14.95 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.025e-05/0.2899, allocations: 92.92 kB / 0.4892 GB, free: 14.84 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.195e-05/0.2899, allocations: 4.062 kB / 0.4892 GB, free: 14.84 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001748/0.2901, allocations: 19.98 kB / 0.4892 GB, free: 14.82 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.655e-05/0.2902, allocations: 19.97 kB / 0.4892 GB, free: 14.8 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.6e-05/0.2902, allocations: 4 kB / 0.4892 GB, free: 14.8 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001389/0.2903, allocations: 152.6 kB / 0.4893 GB, free: 14.65 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2904, allocations: 4 kB / 0.4893 GB, free: 14.64 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003179/0.2907, allocations: 79.69 kB / 0.4894 GB, free: 14.57 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (sineCurrent.phi,inductor1.i,capacitor1.v,cosineCurrent.phi,inductor2.i,capacitor2.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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 Backend phase and start with SimCode phase: time 0.0009537/0.2916, allocations: 0.9301 MB / 0.4903 GB, free: 13.61 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004106/0.2921, allocations: 191.8 kB / 0.4905 GB, free: 13.43 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.2921, allocations: 0 / 0.4905 GB, free: 13.43 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001632/0.2922, allocations: 88.27 kB / 0.4906 GB, free: 13.34 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000246/0.2925, allocations: 25.33 kB / 0.4906 GB, free: 13.32 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002854/0.2954, allocations: 3.1 MB / 0.4936 GB, free: 10.13 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003067/0.2957, allocations: 0.7713 MB / 0.4944 GB, free: 9.336 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 9.969e-05/0.2958, allocations: 25.94 kB / 0.4944 GB, free: 9.309 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001203/0.2959, allocations: 95.34 kB / 0.4945 GB, free: 9.215 MB / 378.7 MB Notification: Performance of SimCode: time 2.3e-07/0.2959, allocations: 0 / 0.4945 GB, free: 9.215 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01504/0.311, allocations: 4.174 MB / 0.4986 GB, free: 5.191 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002006/0.3112, allocations: 188.2 kB / 0.4988 GB, free: 4.945 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.642/1.953, allocations: 0 / 0.4988 GB, free: 4.945 MB / 378.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ParallelResonance.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.ParallelResonance_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_ParallelResonance_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_ParallelResonance.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Analog.Examples.ParallelResonance_res.mat does not exist to compare? outputFormat=mat