Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.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.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage",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.002276/0.002275, allocations: 179.4 kB / 8.364 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.036/2.036, allocations: 205.3 MB / 214.1 MB, free: 14.15 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.001098/0.001098, allocations: 88.03 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.656e-05/2.667e-05, allocations: 0 / 314.9 MB, free: 9.039 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3515/0.3516, allocations: 47.56 MB / 362.4 MB, free: 45.74 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1292/0.4809, allocations: 79.13 MB / 441.6 MB, free: 7.086 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003188/0.4812, allocations: 87.94 kB / 441.7 MB, free: 7 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.04375/0.525, allocations: 11.01 MB / 452.7 MB, free: 11.91 MB / 347.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.5251, allocations: 0 / 452.7 MB, free: 11.91 MB / 347.1 MB Notification: Performance of Transformations before backend: time 2.276e-05/0.5251, allocations: 8 kB / 452.7 MB, free: 11.9 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: 81 * Number of variables: 81 Notification: Performance of Generate backend data structure: time 0.001915/0.527, allocations: 0.6123 MB / 453.3 MB, free: 11.24 MB / 347.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.504e-05/0.5271, allocations: 14.66 kB / 453.3 MB, free: 11.23 MB / 347.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001063/0.5282, allocations: 99.55 kB / 453.4 MB, free: 11.13 MB / 347.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005124/0.5287, allocations: 255.4 kB / 453.7 MB, free: 10.84 MB / 347.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.407e-05/0.5288, allocations: 8 kB / 453.7 MB, free: 10.84 MB / 347.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.508e-05/0.5289, allocations: 27.86 kB / 453.7 MB, free: 10.81 MB / 347.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006658/0.5295, allocations: 213.5 kB / 453.9 MB, free: 10.6 MB / 347.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007114/0.5303, allocations: 281.4 kB / 454.2 MB, free: 10.31 MB / 347.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.346e-05/0.5303, allocations: 0 / 454.2 MB, free: 10.31 MB / 347.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.817e-05/0.5304, allocations: 0 / 454.2 MB, free: 10.31 MB / 347.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.655e-05/0.5304, allocations: 8 kB / 454.2 MB, free: 10.3 MB / 347.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003042/0.5334, allocations: 1.392 MB / 455.6 MB, free: 8.789 MB / 347.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009916/0.5345, allocations: 0.6895 MB / 456.3 MB, free: 7.984 MB / 347.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002315/0.5347, allocations: 84.86 kB / 456.3 MB, free: 7.898 MB / 347.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00015/0.5349, allocations: 89.09 kB / 456.4 MB, free: 7.793 MB / 347.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.057e-05/0.5349, allocations: 34.56 kB / 456.5 MB, free: 7.75 MB / 347.1 MB Notification: Performance of pre-optimization done (n=24): time 3.246e-06/0.535, allocations: 4 kB / 456.5 MB, free: 7.746 MB / 347.1 MB Notification: Performance of matching and sorting (n=24): time 0.00113/0.5361, allocations: 258.4 kB / 456.7 MB, free: 7.484 MB / 347.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.552e-05/0.5362, allocations: 55.41 kB / 456.8 MB, free: 7.418 MB / 347.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002039/0.5364, allocations: 135.3 kB / 456.9 MB, free: 7.277 MB / 347.1 MB Notification: Performance of collectPreVariables (initialization): time 2.717e-05/0.5364, allocations: 29.64 kB / 456.9 MB, free: 7.242 MB / 347.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001855/0.5366, allocations: 246.6 kB / 457.2 MB, free: 7 MB / 347.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.413e-05/0.5367, allocations: 86.69 kB / 457.3 MB, free: 6.914 MB / 347.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.422e-05/0.5368, allocations: 0 / 457.3 MB, free: 6.914 MB / 347.1 MB Notification: Performance of setup shared object (initialization): time 0.0001699/0.5369, allocations: 326.8 kB / 457.6 MB, free: 6.586 MB / 347.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001727/0.5371, allocations: 60.56 kB / 457.6 MB, free: 6.523 MB / 347.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002156/0.5374, allocations: 107.1 kB / 457.7 MB, free: 6.398 MB / 347.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004967/0.5379, allocations: 116.4 kB / 457.9 MB, free: 6.289 MB / 347.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.728e-06/0.5379, allocations: 4 kB / 457.9 MB, free: 6.285 MB / 347.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.001304/0.5392, allocations: 320.6 kB / 458.2 MB, free: 5.965 MB / 347.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.544e-05/0.5393, allocations: 4 kB / 458.2 MB, free: 5.961 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.197e-05/0.5393, allocations: 4 kB / 458.2 MB, free: 5.957 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004672/0.5398, allocations: 68.75 kB / 458.2 MB, free: 5.887 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002948/0.5401, allocations: 39.98 kB / 458.3 MB, free: 5.848 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002732/0.5428, allocations: 1.761 MB / 460.1 MB, free: 3.969 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000234/0.5431, allocations: 23.77 kB / 460.1 MB, free: 3.945 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.789e-05/0.5432, allocations: 8 kB / 460.1 MB, free: 3.938 MB / 347.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (24): * Single equations (assignments): 23 * 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 {(1,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001484/0.5433, allocations: 104.9 kB / 460.2 MB, free: 3.828 MB / 347.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.000994/0.5443, allocations: 272.1 kB / 460.4 MB, free: 3.555 MB / 347.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.415e-05/0.5444, allocations: 15.81 kB / 460.5 MB, free: 3.539 MB / 347.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001037/0.5455, allocations: 290.9 kB / 460.7 MB, free: 3.246 MB / 347.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.766e-06/0.5455, allocations: 4 kB / 460.8 MB, free: 3.242 MB / 347.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.334e-06/0.5455, allocations: 7.953 kB / 460.8 MB, free: 3.234 MB / 347.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.64e-06/0.5455, allocations: 0 / 460.8 MB, free: 3.234 MB / 347.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001749/0.5473, allocations: 0.648 MB / 461.4 MB, free: 2.539 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.849e-06/0.5473, allocations: 0 / 461.4 MB, free: 2.539 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000234/0.5476, allocations: 31.92 kB / 461.4 MB, free: 2.508 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004002/0.548, allocations: 70.41 kB / 461.5 MB, free: 2.438 MB / 347.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.637e-05/0.548, allocations: 7.953 kB / 461.5 MB, free: 2.43 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002645/0.5507, allocations: 1.748 MB / 463.3 MB, free: 0.5742 MB / 347.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.394e-06/0.5507, allocations: 3.938 kB / 463.3 MB, free: 0.5703 MB / 347.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001273/0.552, allocations: 452 kB / 463.7 MB, free: 112 kB / 347.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001795/0.5522, allocations: 109 kB / 463.8 MB, free: 15.98 MB / 363.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.605e-05/0.5523, allocations: 7.938 kB / 463.8 MB, free: 15.97 MB / 363.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001807/0.5525, allocations: 0 / 463.8 MB, free: 15.97 MB / 363.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.759e-05/0.5526, allocations: 23.97 kB / 463.8 MB, free: 15.95 MB / 363.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.951e-05/0.5526, allocations: 8.062 kB / 463.9 MB, free: 15.94 MB / 363.1 MB Notification: Performance of sorting global known variables: time 0.0001323/0.5527, allocations: 119.6 kB / 464 MB, free: 15.82 MB / 363.1 MB Notification: Performance of sort global known variables: time 8.82e-07/0.5528, allocations: 0 / 464 MB, free: 15.82 MB / 363.1 MB Notification: Performance of remove unused functions: time 0.0007116/0.5535, allocations: 87.69 kB / 464.1 MB, free: 15.74 MB / 363.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (constantSource.port_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 14 * 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 {(1,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001811/0.5553, allocations: 1.009 MB / 465.1 MB, free: 14.7 MB / 363.1 MB Notification: Performance of simCode: created initialization part: time 0.0008727/0.5562, allocations: 314.2 kB / 465.4 MB, free: 14.38 MB / 363.1 MB Notification: Performance of simCode: created event and clocks part: time 3.456e-06/0.5562, allocations: 0 / 465.4 MB, free: 14.38 MB / 363.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004986/0.5568, allocations: 229.5 kB / 465.6 MB, free: 14.15 MB / 363.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003079/0.5571, allocations: 11.86 kB / 465.6 MB, free: 14.14 MB / 363.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001571/0.5587, allocations: 457.3 kB / 466.1 MB, free: 13.65 MB / 363.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004551/0.5592, allocations: 0.7713 MB / 466.8 MB, free: 12.85 MB / 363.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002102/0.5594, allocations: 71.41 kB / 466.9 MB, free: 12.78 MB / 363.1 MB Notification: Performance of SimCode: time 1.162e-06/0.5594, allocations: 0 / 466.9 MB, free: 12.78 MB / 363.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.785/3.344, allocations: 4.889 MB / 471.8 MB, free: 7.922 MB / 363.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage.fmu > Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage_res.mat does not exist to compare? outputFormat=mat