Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CuboidSections.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.FixedShapes.CuboidSections,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_FixedShapes_CuboidSections",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CuboidSections,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_FixedShapes_CuboidSections",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.001531/0.001531, allocations: 180.1 kB / 8.365 MB, free: 0.7109 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.057/2.057, 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.00112/0.00112, allocations: 91.58 kB / 262.1 MB, free: 13.86 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.372e-05/2.382e-05, allocations: 4 kB / 314.9 MB, free: 9.035 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3409/0.341, allocations: 47.57 MB / 362.4 MB, free: 45.73 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1325/0.4735, allocations: 80.8 MB / 443.2 MB, free: 5.398 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003461/0.4739, allocations: 83.95 kB / 443.3 MB, free: 5.316 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.08105/0.555, allocations: 20.39 MB / 463.7 MB, free: 0.7461 MB / 347.1 MB Notification: Performance of FrontEnd: time 2.264e-06/0.555, allocations: 0 / 463.7 MB, free: 0.7461 MB / 347.1 MB Notification: Performance of Transformations before backend: time 2.412e-05/0.5551, allocations: 12 kB / 463.7 MB, free: 0.7344 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: 188 * Number of variables: 188 Notification: Performance of Generate backend data structure: time 0.004362/0.5595, allocations: 0.9805 MB / 464.7 MB, free: 15.71 MB / 363.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.236e-05/0.5595, allocations: 12.03 kB / 464.7 MB, free: 15.7 MB / 363.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002114/0.5617, allocations: 210.9 kB / 464.9 MB, free: 15.49 MB / 363.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003658/0.5621, allocations: 231.9 kB / 465.1 MB, free: 15.23 MB / 363.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.886e-05/0.5622, allocations: 27.98 kB / 465.2 MB, free: 15.2 MB / 363.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002165/0.5624, allocations: 52.55 kB / 465.2 MB, free: 15.15 MB / 363.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00176/0.5642, allocations: 0.5663 MB / 465.8 MB, free: 14.58 MB / 363.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001699/0.5659, allocations: 0.6177 MB / 466.4 MB, free: 13.95 MB / 363.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.125e-05/0.566, allocations: 3.984 kB / 466.4 MB, free: 13.95 MB / 363.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.917e-05/0.5661, allocations: 4 kB / 466.4 MB, free: 13.94 MB / 363.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.682e-05/0.5661, allocations: 20 kB / 466.4 MB, free: 13.92 MB / 363.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00712/0.5732, allocations: 3.02 MB / 469.5 MB, free: 10.66 MB / 363.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003296/0.5766, allocations: 2.007 MB / 471.5 MB, free: 8.352 MB / 363.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000819/0.5775, allocations: 283 kB / 471.7 MB, free: 8.074 MB / 363.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001799/0.5777, allocations: 97.86 kB / 471.8 MB, free: 7.961 MB / 363.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.874e-05/0.5777, allocations: 47.34 kB / 471.9 MB, free: 7.906 MB / 363.1 MB Notification: Performance of pre-optimization done (n=72): time 3.908e-06/0.5778, allocations: 0 / 471.9 MB, free: 7.906 MB / 363.1 MB Notification: Performance of matching and sorting (n=72): time 0.002665/0.5804, allocations: 0.6769 MB / 472.6 MB, free: 7.215 MB / 363.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.814e-05/0.5805, allocations: 111.8 kB / 472.7 MB, free: 7.082 MB / 363.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003822/0.5809, allocations: 216.4 kB / 472.9 MB, free: 6.859 MB / 363.1 MB Notification: Performance of collectPreVariables (initialization): time 6.701e-05/0.581, allocations: 37.58 kB / 472.9 MB, free: 6.816 MB / 363.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002568/0.5813, allocations: 349.9 kB / 473.3 MB, free: 6.469 MB / 363.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000286/0.5816, allocations: 244.4 kB / 473.5 MB, free: 6.227 MB / 363.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.757e-05/0.5817, allocations: 0 / 473.5 MB, free: 6.227 MB / 363.1 MB Notification: Performance of setup shared object (initialization): time 0.0001548/0.5818, allocations: 338.8 kB / 473.8 MB, free: 5.887 MB / 363.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005216/0.5824, allocations: 182.6 kB / 474 MB, free: 5.707 MB / 363.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006617/0.583, allocations: 334.7 kB / 474.3 MB, free: 5.324 MB / 363.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001561/0.5846, allocations: 372.3 kB / 474.7 MB, free: 4.961 MB / 363.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.214e-05/0.5847, allocations: 4 kB / 474.7 MB, free: 4.957 MB / 363.1 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.002914/0.5876, allocations: 0.8095 MB / 475.5 MB, free: 4.133 MB / 363.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.152e-05/0.5877, allocations: 4.5 kB / 475.5 MB, free: 4.129 MB / 363.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.319e-05/0.5877, allocations: 8 kB / 475.5 MB, free: 4.121 MB / 363.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000604/0.5883, allocations: 125.6 kB / 475.6 MB, free: 3.992 MB / 363.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001334/0.5897, allocations: 169.7 kB / 475.8 MB, free: 3.828 MB / 363.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004314/0.594, allocations: 3.273 MB / 479.1 MB, free: 336 kB / 363.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001014/0.5951, allocations: 75.31 kB / 479.2 MB, free: 260 kB / 363.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.198e-05/0.5952, allocations: 32 kB / 479.2 MB, free: 228 kB / 363.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (86): * Single equations (assignments): 84 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 7,(1,100.0%) 7} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002213/0.5954, allocations: 120.7 kB / 479.3 MB, free: 100 kB / 363.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002631/0.5981, allocations: 0.6809 MB / 480 MB, free: 15.41 MB / 379.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001565/0.5983, allocations: 39.53 kB / 480 MB, free: 15.37 MB / 379.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002826/0.6011, allocations: 0.756 MB / 480.8 MB, free: 14.59 MB / 379.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.654e-05/0.6012, allocations: 8 kB / 480.8 MB, free: 14.59 MB / 379.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.208e-06/0.6012, allocations: 4 kB / 480.8 MB, free: 14.58 MB / 379.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.204e-05/0.6012, allocations: 7.984 kB / 480.8 MB, free: 14.57 MB / 379.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00437/0.6056, allocations: 1.43 MB / 482.2 MB, free: 13.09 MB / 379.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.231e-05/0.6057, allocations: 8 kB / 482.2 MB, free: 13.09 MB / 379.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001049/0.6067, allocations: 115.8 kB / 482.4 MB, free: 12.97 MB / 379.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005397/0.6073, allocations: 105.6 kB / 482.5 MB, free: 12.86 MB / 379.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.369e-05/0.6074, allocations: 11.95 kB / 482.5 MB, free: 12.85 MB / 379.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003534/0.6109, allocations: 2.963 MB / 485.4 MB, free: 9.664 MB / 379.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.012e-06/0.611, allocations: 0 / 485.4 MB, free: 9.664 MB / 379.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00339/0.6144, allocations: 1.134 MB / 486.6 MB, free: 8.5 MB / 379.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000201/0.6146, allocations: 128.5 kB / 486.7 MB, free: 8.355 MB / 379.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.136e-05/0.6147, allocations: 0 / 486.7 MB, free: 8.355 MB / 379.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007312/0.6155, allocations: 23.97 kB / 486.7 MB, free: 8.332 MB / 379.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001856/0.6157, allocations: 52.72 kB / 486.8 MB, free: 8.281 MB / 379.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.76e-05/0.6158, allocations: 31.92 kB / 486.8 MB, free: 8.25 MB / 379.1 MB Notification: Performance of sorting global known variables: time 0.0002452/0.616, allocations: 168.5 kB / 487 MB, free: 8.086 MB / 379.1 MB Notification: Performance of sort global known variables: time 4.51e-07/0.616, allocations: 0 / 487 MB, free: 8.086 MB / 379.1 MB Notification: Performance of remove unused functions: time 0.001198/0.6172, allocations: 190.7 kB / 487.1 MB, free: 7.902 MB / 379.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (cuboidBottom.port_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (60): * Single equations (assignments): 58 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(1,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003857/0.6211, allocations: 1.779 MB / 488.9 MB, free: 6.082 MB / 379.1 MB Notification: Performance of simCode: created initialization part: time 0.00199/0.6232, allocations: 0.762 MB / 489.7 MB, free: 5.297 MB / 379.1 MB Notification: Performance of simCode: created event and clocks part: time 6.462e-06/0.6232, allocations: 0 / 489.7 MB, free: 5.297 MB / 379.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001031/0.6243, allocations: 0.5032 MB / 490.2 MB, free: 4.777 MB / 379.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004938/0.6248, allocations: 16.42 kB / 490.2 MB, free: 4.762 MB / 379.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003411/0.6282, allocations: 0.8978 MB / 491.1 MB, free: 3.816 MB / 379.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005883/0.6288, allocations: 0.8775 MB / 492 MB, free: 2.91 MB / 379.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005642/0.6294, allocations: 199.4 kB / 492.2 MB, free: 2.715 MB / 379.1 MB Notification: Performance of SimCode: time 1.122e-06/0.6294, allocations: 0 / 492.2 MB, free: 2.715 MB / 379.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.951/3.58, allocations: 13.21 MB / 0.4935 GB, free: 5.516 MB / 395.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CuboidSections.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CuboidSections.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CuboidSections.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CuboidSections.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CuboidSections_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_FixedShapes_CuboidSections_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_FixedShapes_CuboidSections.fmu > Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CuboidSections.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CuboidSections_res.mat does not exist to compare? outputFormat=mat