Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance.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.QuasiStationary.SinglePhase.Examples.SeriesResonance,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_QuasiStationary_SinglePhase_Examples_SeriesResonance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_QuasiStationary_SinglePhase_Examples_SeriesResonance",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.001437/0.001437, allocations: 177.8 kB / 8.36 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.081/2.081, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001095/0.001095, allocations: 89.69 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 3.616e-05/3.614e-05, allocations: 0 / 314.9 MB, free: 9.043 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.367/0.3671, allocations: 47.56 MB / 362.4 MB, free: 45.73 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1359/0.503, allocations: 80.64 MB / 443.1 MB, free: 5.57 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002702/0.5033, allocations: 79.94 kB / 443.1 MB, free: 5.492 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.06397/0.5673, allocations: 15.95 MB / 459.1 MB, free: 5.422 MB / 347.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.5674, allocations: 7.938 kB / 459.1 MB, free: 5.414 MB / 347.1 MB Notification: Performance of Transformations before backend: time 2.209e-05/0.5674, allocations: 8 kB / 459.1 MB, free: 5.406 MB / 347.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 144 * Number of variables: 144 Notification: Performance of Generate backend data structure: time 0.002547/0.57, allocations: 0.7567 MB / 459.9 MB, free: 4.605 MB / 347.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.585e-05/0.57, allocations: 12.03 kB / 459.9 MB, free: 4.594 MB / 347.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004397/0.5745, allocations: 431 kB / 460.3 MB, free: 4.172 MB / 347.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007072/0.5752, allocations: 306.4 kB / 460.6 MB, free: 3.832 MB / 347.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.025e-05/0.5753, allocations: 20 kB / 460.6 MB, free: 3.812 MB / 347.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000143/0.5754, allocations: 39.86 kB / 460.7 MB, free: 3.773 MB / 347.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0017/0.5771, allocations: 0.5649 MB / 461.2 MB, free: 3.207 MB / 347.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001217/0.5784, allocations: 431.9 kB / 461.6 MB, free: 2.777 MB / 347.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.248e-05/0.5785, allocations: 0 / 461.6 MB, free: 2.777 MB / 347.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.776e-05/0.5786, allocations: 3.938 kB / 461.7 MB, free: 2.773 MB / 347.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.044e-05/0.5786, allocations: 16 kB / 461.7 MB, free: 2.758 MB / 347.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004864/0.5835, allocations: 1.954 MB / 463.6 MB, free: 0.6836 MB / 347.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003771/0.5873, allocations: 2.964 MB / 466.6 MB, free: 13.17 MB / 363.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005474/0.5879, allocations: 194.1 kB / 466.8 MB, free: 12.98 MB / 363.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001505/0.5881, allocations: 93.52 kB / 466.9 MB, free: 12.87 MB / 363.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.832e-05/0.5881, allocations: 39 kB / 466.9 MB, free: 12.82 MB / 363.1 MB Notification: Performance of pre-optimization done (n=49): time 3.496e-06/0.5881, allocations: 3.938 kB / 466.9 MB, free: 12.81 MB / 363.1 MB Notification: Performance of matching and sorting (n=49): time 0.001802/0.5899, allocations: 468.4 kB / 467.4 MB, free: 12.34 MB / 363.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.646e-05/0.59, allocations: 59.84 kB / 467.4 MB, free: 12.27 MB / 363.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002348/0.5903, allocations: 165.4 kB / 467.6 MB, free: 12.1 MB / 363.1 MB Notification: Performance of collectPreVariables (initialization): time 4.543e-05/0.5903, allocations: 25.7 kB / 467.6 MB, free: 12.07 MB / 363.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001976/0.5905, allocations: 310.4 kB / 467.9 MB, free: 11.77 MB / 363.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001716/0.5907, allocations: 157.7 kB / 468.1 MB, free: 11.61 MB / 363.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.044e-05/0.5908, allocations: 0 / 468.1 MB, free: 11.61 MB / 363.1 MB Notification: Performance of setup shared object (initialization): time 0.0001396/0.5909, allocations: 338.8 kB / 468.4 MB, free: 11.27 MB / 363.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003471/0.5913, allocations: 129.1 kB / 468.5 MB, free: 11.14 MB / 363.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004825/0.5918, allocations: 245.9 kB / 468.8 MB, free: 10.86 MB / 363.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001092/0.5929, allocations: 260.5 kB / 469 MB, free: 10.61 MB / 363.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.689e-06/0.5929, allocations: 4 kB / 469 MB, free: 10.61 MB / 363.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.002077/0.595, allocations: 0.5744 MB / 469.6 MB, free: 10.02 MB / 363.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.981e-05/0.5951, allocations: 11.98 kB / 469.6 MB, free: 10.01 MB / 363.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.446e-05/0.5951, allocations: 4 kB / 469.6 MB, free: 10.01 MB / 363.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005241/0.5957, allocations: 93.16 kB / 469.7 MB, free: 9.914 MB / 363.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008133/0.5965, allocations: 107.8 kB / 469.8 MB, free: 9.809 MB / 363.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002802/0.5993, allocations: 1.777 MB / 471.6 MB, free: 7.918 MB / 363.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000575/0.5999, allocations: 39.53 kB / 471.6 MB, free: 7.879 MB / 363.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.736e-05/0.6, allocations: 27.94 kB / 471.7 MB, free: 7.852 MB / 363.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (58): * Single equations (assignments): 57 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001756/0.6002, allocations: 116.8 kB / 471.8 MB, free: 7.73 MB / 363.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00177/0.602, allocations: 476.5 kB / 472.2 MB, free: 7.254 MB / 363.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.97e-05/0.6021, allocations: 27.72 kB / 472.3 MB, free: 7.227 MB / 363.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00253/0.6047, allocations: 0.5512 MB / 472.8 MB, free: 6.668 MB / 363.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.27e-05/0.6047, allocations: 4 kB / 472.8 MB, free: 6.664 MB / 363.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.541e-06/0.6047, allocations: 0 / 472.8 MB, free: 6.664 MB / 363.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.444e-05/0.6048, allocations: 7.938 kB / 472.8 MB, free: 6.656 MB / 363.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003369/0.6082, allocations: 1.069 MB / 473.9 MB, free: 5.535 MB / 363.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.855e-06/0.6082, allocations: 0 / 473.9 MB, free: 5.535 MB / 363.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006855/0.6089, allocations: 87.84 kB / 474 MB, free: 5.449 MB / 363.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005606/0.6095, allocations: 84.81 kB / 474.1 MB, free: 5.363 MB / 363.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.021e-05/0.6096, allocations: 0 / 474.1 MB, free: 5.363 MB / 363.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00341/0.613, allocations: 1.771 MB / 475.8 MB, free: 3.48 MB / 363.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.754e-06/0.6131, allocations: 32 / 475.8 MB, free: 3.48 MB / 363.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003474/0.6166, allocations: 0.792 MB / 476.6 MB, free: 2.668 MB / 363.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002044/0.6168, allocations: 108.7 kB / 476.7 MB, free: 2.543 MB / 363.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.587e-05/0.617, allocations: 0 / 476.7 MB, free: 2.543 MB / 363.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005803/0.6176, allocations: 24.05 kB / 476.8 MB, free: 2.52 MB / 363.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001651/0.6177, allocations: 32.39 kB / 476.8 MB, free: 2.488 MB / 363.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.897e-05/0.6178, allocations: 19.98 kB / 476.8 MB, free: 2.469 MB / 363.1 MB Notification: Performance of sorting global known variables: time 0.000225/0.6181, allocations: 124.3 kB / 476.9 MB, free: 2.348 MB / 363.1 MB Notification: Performance of sort global known variables: time 8.02e-07/0.6181, allocations: 0 / 476.9 MB, free: 2.348 MB / 363.1 MB Notification: Performance of remove unused functions: time 0.001412/0.6195, allocations: 139.5 kB / 477.1 MB, free: 2.211 MB / 363.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (capacitor.pin_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (44): * Single equations (assignments): 43 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004209/0.6238, allocations: 1.368 MB / 478.4 MB, free: 0.8125 MB / 363.1 MB Notification: Performance of simCode: created initialization part: time 0.002016/0.6259, allocations: 0.52 MB / 478.9 MB, free: 292 kB / 363.1 MB Notification: Performance of simCode: created event and clocks part: time 5.932e-06/0.6259, allocations: 192 / 478.9 MB, free: 292 kB / 363.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00117/0.6271, allocations: 347.4 kB / 479.3 MB, free: 15.93 MB / 379.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005375/0.6277, allocations: 8 kB / 479.3 MB, free: 15.93 MB / 379.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007041/0.6347, allocations: 1.169 MB / 480.5 MB, free: 14.71 MB / 379.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007545/0.6356, allocations: 0.8287 MB / 481.3 MB, free: 13.86 MB / 379.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006022/0.6362, allocations: 147.4 kB / 481.4 MB, free: 13.71 MB / 379.1 MB Notification: Performance of SimCode: time 1.573e-06/0.6362, allocations: 0 / 481.4 MB, free: 13.71 MB / 379.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.694/3.331, allocations: 8.019 MB / 489.5 MB, free: 5.727 MB / 379.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_QuasiStationary_SinglePhase_Examples_SeriesResonance_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_QuasiStationary_SinglePhase_Examples_SeriesResonance.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.SeriesResonance_res.mat does not exist to compare? outputFormat=mat