Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.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.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_Components_SinglePhaseInductance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_Components_SinglePhaseInductance",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.001537/0.001536, allocations: 182 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.141/2.141, allocations: 205.2 MB / 219.4 MB, free: 14.21 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001131/0.00113, allocations: 94.62 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.308e-05/3.316e-05, allocations: 0 / 321.6 MB, free: 17.74 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0996/0.09967, allocations: 47.58 MB / 369.2 MB, free: 2.098 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4701/0.5698, allocations: 81.07 MB / 450.3 MB, free: 12.17 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003159/0.5702, allocations: 75.89 kB / 450.3 MB, free: 12.13 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04147/0.6117, allocations: 9.962 MB / 460.3 MB, free: 3.898 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.472e-06/0.6117, allocations: 0 / 460.3 MB, free: 3.898 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.806e-05/0.6118, allocations: 15.94 kB / 460.3 MB, free: 3.883 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.001792/0.6136, allocations: 0.6371 MB / 460.9 MB, free: 3.234 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.992e-05/0.6137, allocations: 8.031 kB / 461 MB, free: 3.227 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001281/0.6138, allocations: 71.03 kB / 461 MB, free: 3.148 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007118/0.6145, allocations: 83.48 kB / 461.1 MB, free: 3.066 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006423/0.6152, allocations: 315 kB / 461.4 MB, free: 2.715 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.742e-05/0.6152, allocations: 24.78 kB / 461.4 MB, free: 2.691 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.656e-05/0.6153, allocations: 32 kB / 461.5 MB, free: 2.66 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008793/0.6162, allocations: 330.6 kB / 461.8 MB, free: 2.324 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.356e-05/0.6163, allocations: 3.938 kB / 461.8 MB, free: 2.32 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.462e-05/0.6163, allocations: 12 kB / 461.8 MB, free: 2.309 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.452e-05/0.6164, allocations: 12 kB / 461.8 MB, free: 2.297 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000663/0.617, allocations: 222.2 kB / 462 MB, free: 2.078 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003344/0.6204, allocations: 1.377 MB / 463.4 MB, free: 0.6016 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004812/0.6209, allocations: 169.2 kB / 463.6 MB, free: 428 kB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001944/0.6211, allocations: 77.7 kB / 463.7 MB, free: 344 kB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001271/0.6224, allocations: 0.8753 MB / 464.5 MB, free: 15.36 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.84e-05/0.6225, allocations: 34.56 kB / 464.6 MB, free: 15.32 MB / 346.7 MB Notification: Performance of pre-optimization done (n=13): time 2.755e-06/0.6225, allocations: 0 / 464.6 MB, free: 15.32 MB / 346.7 MB Notification: Performance of matching and sorting (n=13): time 0.0004457/0.6229, allocations: 137.3 kB / 464.7 MB, free: 15.18 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.111e-05/0.623, allocations: 81.09 kB / 464.8 MB, free: 15.08 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004473/0.6235, allocations: 247.3 kB / 465 MB, free: 14.83 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.547e-05/0.6235, allocations: 33.7 kB / 465.1 MB, free: 14.79 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002645/0.6238, allocations: 301.5 kB / 465.3 MB, free: 14.49 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.972e-05/0.6239, allocations: 43.36 kB / 465.4 MB, free: 14.45 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.915e-05/0.6239, allocations: 4 kB / 465.4 MB, free: 14.44 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001648/0.6241, allocations: 326.8 kB / 465.7 MB, free: 14.11 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001568/0.6242, allocations: 48 kB / 465.8 MB, free: 14.07 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002901/0.6246, allocations: 185.3 kB / 465.9 MB, free: 13.82 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002288/0.6248, allocations: 83.89 kB / 466 MB, free: 13.74 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.418e-06/0.6248, allocations: 7.875 kB / 466 MB, free: 13.73 MB / 346.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.000674/0.6255, allocations: 257.3 kB / 466.3 MB, free: 13.48 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.525e-05/0.6255, allocations: 8 kB / 466.3 MB, free: 13.47 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.565e-05/0.6256, allocations: 7.953 kB / 466.3 MB, free: 13.46 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.589e-05/0.6256, allocations: 8 kB / 466.3 MB, free: 13.45 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005332/0.6261, allocations: 75.83 kB / 466.4 MB, free: 13.38 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.92e-05/0.6262, allocations: 8 kB / 466.4 MB, free: 13.37 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003474/0.6265, allocations: 36.06 kB / 466.4 MB, free: 13.34 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.479e-05/0.6266, allocations: 16.16 kB / 466.4 MB, free: 13.32 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (35): * Single equations (assignments): 35 * 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.0001318/0.6267, allocations: 124.9 kB / 466.6 MB, free: 13.19 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.533e-05/0.6268, allocations: 27.7 kB / 466.6 MB, free: 13.16 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.046e-05/0.6269, allocations: 25.86 kB / 466.6 MB, free: 13.13 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.203e-05/0.627, allocations: 7.953 kB / 466.6 MB, free: 13.12 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.026e-06/0.627, allocations: 7.922 kB / 466.6 MB, free: 13.12 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.43e-06/0.627, allocations: 0 / 466.6 MB, free: 13.12 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009975/0.628, allocations: 0.4953 MB / 467.1 MB, free: 12.56 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.637e-06/0.628, allocations: 0 / 467.1 MB, free: 12.56 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003737/0.6284, allocations: 39.92 kB / 467.2 MB, free: 12.52 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.054e-05/0.6284, allocations: 3.953 kB / 467.2 MB, free: 12.52 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.212e-05/0.6285, allocations: 4 kB / 467.2 MB, free: 12.52 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.532e-06/0.6285, allocations: 3.984 kB / 467.2 MB, free: 12.51 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.709e-06/0.6285, allocations: 8.016 kB / 467.2 MB, free: 12.5 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005996/0.6291, allocations: 378.7 kB / 467.6 MB, free: 12.1 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001245/0.6292, allocations: 104.8 kB / 467.7 MB, free: 11.98 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.762e-05/0.6293, allocations: 8 kB / 467.7 MB, free: 11.97 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003304/0.6297, allocations: 12.06 kB / 467.7 MB, free: 11.96 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.963e-05/0.6298, allocations: 15.98 kB / 467.7 MB, free: 11.95 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.897e-05/0.6298, allocations: 3.984 kB / 467.7 MB, free: 11.94 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003075/0.6301, allocations: 191.1 kB / 467.9 MB, free: 11.76 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.3e-07/0.6301, allocations: 0 / 467.9 MB, free: 11.76 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006203/0.6307, allocations: 87.81 kB / 468 MB, free: 11.67 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (inductor_e.i,converter_m.Phi.re) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 13 * 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.00116/0.6319, allocations: 1.082 MB / 469 MB, free: 10.55 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0004645/0.6324, allocations: 148.9 kB / 469.2 MB, free: 10.41 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.058e-06/0.6324, allocations: 4.469 kB / 469.2 MB, free: 10.41 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001556/0.6326, allocations: 51.92 kB / 469.2 MB, free: 10.36 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004112/0.633, allocations: 29.64 kB / 469.3 MB, free: 10.32 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001806/0.6348, allocations: 0.5454 MB / 469.8 MB, free: 9.73 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004623/0.6353, allocations: 0.7794 MB / 470.6 MB, free: 8.922 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002389/0.6356, allocations: 111.4 kB / 470.7 MB, free: 8.816 MB / 346.7 MB Notification: Performance of SimCode: time 1.313e-06/0.6356, allocations: 0 / 470.7 MB, free: 8.816 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.719/3.355, allocations: 4.73 MB / 475.4 MB, free: 4.086 MB / 346.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_Components_SinglePhaseInductance_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_Components_SinglePhaseInductance.fmu > Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.Components.SinglePhaseInductance_res.mat does not exist to compare? outputFormat=mat