Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CuboidSections.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CuboidSections,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_FixedShapes_CuboidSections",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CuboidSections,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.002327/0.002327, allocations: 174.8 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.521/1.521, allocations: 221.3 MB / 235.5 MB, free: 2.941 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009661/0.000966, allocations: 99.48 kB / 286.5 MB, free: 216 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.226e-05/3.242e-05, allocations: 0 / 343.9 MB, free: 4.203 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1338/0.1338, allocations: 50.42 MB / 394.4 MB, free: 1.742 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4052/0.5392, allocations: 82.5 MB / 476.9 MB, free: 4.945 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003509/0.5396, allocations: 87.94 kB / 476.9 MB, free: 4.859 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05803/0.5976, allocations: 20.75 MB / 497.7 MB, free: 15.85 MB / 378.7 MB Notification: Performance of FrontEnd: time 4.779e-06/0.5977, allocations: 4 kB / 497.7 MB, free: 15.85 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.03e-05/0.5977, allocations: 12 kB / 497.7 MB, free: 15.84 MB / 378.7 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.003301/0.601, allocations: 0.9794 MB / 498.7 MB, free: 14.81 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.766e-05/0.6011, allocations: 12.03 kB / 498.7 MB, free: 14.8 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003324/0.6014, allocations: 122.6 kB / 498.8 MB, free: 14.67 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001567/0.603, allocations: 207 kB / 499 MB, free: 14.46 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004139/0.6035, allocations: 238.9 kB / 499.3 MB, free: 14.2 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.103e-05/0.6035, allocations: 58 kB / 499.3 MB, free: 14.14 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001518/0.6037, allocations: 72 kB / 499.4 MB, free: 14.07 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001456/0.6052, allocations: 0.7271 MB / 0.4884 GB, free: 13.32 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.882e-05/0.6052, allocations: 3.984 kB / 0.4884 GB, free: 13.32 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.592e-05/0.6053, allocations: 32 kB / 0.4884 GB, free: 13.29 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.005e-05/0.6053, allocations: 19.95 kB / 0.4884 GB, free: 13.27 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001163/0.6065, allocations: 0.6065 MB / 0.489 GB, free: 12.66 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005386/0.6119, allocations: 3.162 MB / 0.4921 GB, free: 9.242 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002317/0.6143, allocations: 2.041 MB / 0.4941 GB, free: 6.898 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005686/0.6149, allocations: 292 kB / 0.4944 GB, free: 6.609 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000151/0.6151, allocations: 97.86 kB / 0.4945 GB, free: 6.492 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.122e-05/0.6151, allocations: 55.52 kB / 0.4945 GB, free: 6.43 MB / 378.7 MB Notification: Performance of pre-optimization done (n=72): time 5.36e-06/0.6151, allocations: 3.984 kB / 0.4945 GB, free: 6.426 MB / 378.7 MB Notification: Performance of matching and sorting (n=72): time 0.00141/0.6166, allocations: 0.5834 MB / 0.4951 GB, free: 5.832 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001641/0.6168, allocations: 111.6 kB / 0.4952 GB, free: 5.695 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003608/0.6171, allocations: 250.7 kB / 0.4955 GB, free: 5.445 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.469e-05/0.6172, allocations: 37.7 kB / 0.4955 GB, free: 5.402 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002446/0.6174, allocations: 295.4 kB / 0.4958 GB, free: 5.105 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002812/0.6177, allocations: 244.4 kB / 0.496 GB, free: 4.863 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.158e-05/0.6179, allocations: 16 kB / 0.496 GB, free: 4.848 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002179/0.6181, allocations: 354.7 kB / 0.4964 GB, free: 4.492 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003886/0.6185, allocations: 202 kB / 0.4966 GB, free: 4.293 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005961/0.6191, allocations: 351.1 kB / 0.4969 GB, free: 3.898 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005369/0.6196, allocations: 262 kB / 0.4971 GB, free: 3.645 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.703e-06/0.6196, allocations: 0 / 0.4971 GB, free: 3.645 MB / 378.7 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.001491/0.6211, allocations: 0.7629 MB / 0.4979 GB, free: 2.867 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.956e-05/0.6212, allocations: 8 kB / 0.4979 GB, free: 2.859 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.291e-05/0.6212, allocations: 4 kB / 0.4979 GB, free: 2.855 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004449/0.6217, allocations: 129.7 kB / 0.498 GB, free: 2.723 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007061/0.6224, allocations: 163.8 kB / 0.4982 GB, free: 2.562 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00375/0.6262, allocations: 3.4 MB / 0.5015 GB, free: 14.89 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007053/0.6269, allocations: 91.11 kB / 0.5016 GB, free: 14.8 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.071e-05/0.627, allocations: 31.98 kB / 0.5016 GB, free: 14.77 MB / 394.7 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.0002954/0.6273, allocations: 152.9 kB / 0.5018 GB, free: 14.62 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001263/0.6275, allocations: 43.75 kB / 0.5018 GB, free: 14.57 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001472/0.6289, allocations: 0.6856 MB / 0.5025 GB, free: 13.88 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.756e-06/0.629, allocations: 11.94 kB / 0.5025 GB, free: 13.86 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.131e-06/0.629, allocations: 4 kB / 0.5025 GB, free: 13.86 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.036e-06/0.629, allocations: 7.984 kB / 0.5025 GB, free: 13.85 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002622/0.6316, allocations: 1.457 MB / 0.5039 GB, free: 12.33 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.514e-06/0.6316, allocations: 3.984 kB / 0.5039 GB, free: 12.33 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005685/0.6322, allocations: 115.9 kB / 0.504 GB, free: 12.21 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003196/0.6326, allocations: 105.7 kB / 0.5041 GB, free: 12.11 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.601e-05/0.6326, allocations: 16 kB / 0.5041 GB, free: 12.09 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003049/0.6357, allocations: 3.094 MB / 0.5072 GB, free: 8.723 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.6357, allocations: 0 / 0.5072 GB, free: 8.723 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00177/0.6375, allocations: 1.06 MB / 0.5082 GB, free: 7.637 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001867/0.6377, allocations: 124.5 kB / 0.5083 GB, free: 7.496 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.551e-05/0.6378, allocations: 19.95 kB / 0.5083 GB, free: 7.477 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004229/0.6382, allocations: 31.98 kB / 0.5084 GB, free: 7.445 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001747/0.6384, allocations: 60.7 kB / 0.5084 GB, free: 7.387 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.203e-05/0.6384, allocations: 23.98 kB / 0.5085 GB, free: 7.363 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0002287/0.6387, allocations: 187.1 kB / 0.5086 GB, free: 7.18 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.8e-07/0.6387, allocations: 0 / 0.5086 GB, free: 7.18 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0009827/0.6397, allocations: 215.5 kB / 0.5088 GB, free: 6.969 MB / 394.7 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.00246/0.6421, allocations: 1.744 MB / 0.5105 GB, free: 5.188 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001848/0.644, allocations: 0.8216 MB / 0.5113 GB, free: 4.34 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.637e-06/0.644, allocations: 0 / 0.5113 GB, free: 4.34 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008903/0.6449, allocations: 0.526 MB / 0.5119 GB, free: 3.789 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004437/0.6454, allocations: 32.5 kB / 0.5119 GB, free: 3.758 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002535/0.6479, allocations: 0.9318 MB / 0.5128 GB, free: 2.785 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006607/0.6486, allocations: 0.8772 MB / 0.5137 GB, free: 1.883 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0004124/0.649, allocations: 84.36 kB / 0.5137 GB, free: 1.797 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003587/0.6494, allocations: 195.4 kB / 0.5139 GB, free: 1.605 MB / 394.7 MB Notification: Performance of SimCode: time 1.342e-06/0.6494, allocations: 0 / 0.5139 GB, free: 1.605 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02904/0.6785, allocations: 10.16 MB / 0.5238 GB, free: 7.633 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003624/0.6789, allocations: 207.6 kB / 0.524 GB, free: 7.402 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.527/3.206, allocations: 0 / 0.524 GB, free: 7.402 MB / 410.7 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CuboidSections.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CuboidSections.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CuboidSections.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CuboidSections.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CuboidSections_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_FixedShapes_CuboidSections_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_FixedShapes_CuboidSections.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CuboidSections.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CuboidSections_res.mat does not exist to compare? outputFormat=mat