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.CylinderLeakage.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.CylinderLeakage,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_CylinderLeakage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_CylinderLeakage",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.001448/0.001448, allocations: 186.2 kB / 16.4 MB, free: 5.746 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.879/1.879, allocations: 205.4 MB / 222.5 MB, free: 9.133 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.001106/0.001106, allocations: 95.39 kB / 270.9 MB, free: 8.375 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003703/0.0003703, allocations: 8 kB / 327.1 MB, free: 104 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.323/0.3234, allocations: 47.57 MB / 374.6 MB, free: 45.34 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1309/0.4544, allocations: 82.09 MB / 456.7 MB, free: 14.56 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003388/0.4548, allocations: 91.95 kB / 456.8 MB, free: 14.47 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09635/0.5512, allocations: 26.12 MB / 482.9 MB, free: 4.02 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.893e-06/0.5512, allocations: 0 / 482.9 MB, free: 4.02 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.887e-05/0.5513, allocations: 16 kB / 482.9 MB, free: 4.004 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.00445/0.5557, allocations: 1.115 MB / 484.1 MB, free: 2.836 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.671e-05/0.5558, allocations: 12.03 kB / 484.1 MB, free: 2.824 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002617/0.5561, allocations: 148.2 kB / 484.2 MB, free: 2.672 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002404/0.5585, allocations: 254.8 kB / 484.5 MB, free: 2.422 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003078/0.5588, allocations: 270.5 kB / 484.7 MB, free: 2.117 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.027e-05/0.5589, allocations: 69.95 kB / 484.8 MB, free: 2.051 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002404/0.5591, allocations: 103.9 kB / 484.9 MB, free: 1.949 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002438/0.5616, allocations: 0.9265 MB / 485.8 MB, free: 1.008 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.111e-05/0.5617, allocations: 4 kB / 485.8 MB, free: 1.004 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001359/0.5618, allocations: 43.94 kB / 485.9 MB, free: 0.9609 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.992e-05/0.5618, allocations: 24 kB / 485.9 MB, free: 0.9375 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002241/0.5641, allocations: 0.7808 MB / 486.7 MB, free: 160 kB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008093/0.5722, allocations: 3.409 MB / 490.1 MB, free: 12.56 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003383/0.5756, allocations: 1.418 MB / 491.5 MB, free: 11.02 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001869/0.5758, allocations: 102.1 kB / 491.6 MB, free: 10.91 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.911e-05/0.5759, allocations: 39.56 kB / 491.6 MB, free: 10.86 MB / 378.7 MB Notification: Performance of pre-optimization done (n=87): time 3.096e-06/0.5759, allocations: 4 kB / 491.6 MB, free: 10.86 MB / 378.7 MB Notification: Performance of matching and sorting (n=87): time 0.003585/0.5795, allocations: 1.296 MB / 492.9 MB, free: 9.469 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.287e-05/0.5796, allocations: 86.11 kB / 493 MB, free: 9.367 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005901/0.5802, allocations: 335.6 kB / 493.4 MB, free: 9.035 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.906e-05/0.5803, allocations: 37.7 kB / 493.4 MB, free: 8.992 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003466/0.5806, allocations: 441.2 kB / 493.8 MB, free: 8.555 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003424/0.581, allocations: 299.7 kB / 494.1 MB, free: 8.258 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.216e-05/0.5811, allocations: 20 kB / 494.1 MB, free: 8.238 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001999/0.5813, allocations: 346.8 kB / 494.5 MB, free: 7.891 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007826/0.5821, allocations: 266.5 kB / 494.7 MB, free: 7.633 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001037/0.5831, allocations: 475.4 kB / 495.2 MB, free: 7.09 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009452/0.5841, allocations: 326.9 kB / 495.5 MB, free: 6.766 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.222e-06/0.5841, allocations: 4 kB / 495.5 MB, free: 6.762 MB / 378.7 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.002661/0.5868, allocations: 0.9574 MB / 496.5 MB, free: 5.789 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.557e-05/0.5868, allocations: 8.938 kB / 496.5 MB, free: 5.781 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.692e-05/0.5869, allocations: 8 kB / 496.5 MB, free: 5.773 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005867/0.5875, allocations: 127.5 kB / 496.6 MB, free: 5.637 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001532/0.589, allocations: 207.6 kB / 496.8 MB, free: 5.434 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2652/0.8542, allocations: 5.582 MB / 0.4906 GB, free: 95.58 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001062/0.8553, allocations: 102.7 kB / 0.4907 GB, free: 95.58 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001244/0.8554, allocations: 39.39 kB / 0.4908 GB, free: 95.58 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (120): * Single equations (assignments): 116 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005276/0.856, allocations: 229.7 kB / 0.491 GB, free: 95.47 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001691/0.8561, allocations: 53.52 kB / 0.491 GB, free: 95.47 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002523/0.8587, allocations: 0.8565 MB / 0.4919 GB, free: 95.37 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.718e-05/0.8587, allocations: 8.5 kB / 0.4919 GB, free: 95.37 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.458e-06/0.8587, allocations: 2.219 kB / 0.4919 GB, free: 95.37 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.216e-05/0.8588, allocations: 8.016 kB / 0.4919 GB, free: 95.37 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004328/0.8631, allocations: 2.041 MB / 0.4939 GB, free: 94.63 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.818e-06/0.8632, allocations: 2.469 kB / 0.4939 GB, free: 94.63 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001076/0.8642, allocations: 135.5 kB / 0.494 GB, free: 94.63 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000464/0.8647, allocations: 108.9 kB / 0.4941 GB, free: 94.6 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.639e-05/0.8648, allocations: 22.73 kB / 0.4941 GB, free: 94.6 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003652/0.8685, allocations: 5.335 MB / 0.4994 GB, free: 89.59 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.522e-06/0.8685, allocations: 6.438 kB / 0.4994 GB, free: 89.59 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002875/0.8714, allocations: 1.383 MB / 0.5007 GB, free: 89.04 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002004/0.8716, allocations: 148.1 kB / 0.5008 GB, free: 88.92 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001184/0.8718, allocations: 18.53 kB / 0.5009 GB, free: 88.92 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006406/0.8724, allocations: 23.78 kB / 0.5009 GB, free: 88.92 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001755/0.8726, allocations: 68.53 kB / 0.501 GB, free: 88.92 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.878e-05/0.8727, allocations: 25.59 kB / 0.501 GB, free: 88.92 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003872/0.8731, allocations: 250.7 kB / 0.5012 GB, free: 88.83 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.8731, allocations: 0 / 0.5012 GB, free: 88.83 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00133/0.8744, allocations: 268.9 kB / 0.5015 GB, free: 88.82 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 1 (referenceSensor.port.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (78): * Single equations (assignments): 74 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003275/0.8777, allocations: 2.663 MB / 0.5041 GB, free: 87.1 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002396/0.8801, allocations: 1.161 MB / 0.5052 GB, free: 86.63 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.364e-06/0.8802, allocations: 4.938 kB / 0.5052 GB, free: 86.63 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001297/0.8815, allocations: 0.7917 MB / 0.506 GB, free: 86.18 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005781/0.8821, allocations: 48.05 kB / 0.506 GB, free: 86.18 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008416/0.8905, allocations: 7.359 MB / 0.5132 GB, free: 81.06 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004545/0.891, allocations: 0.9285 MB / 0.5141 GB, free: 80.35 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000604/0.8916, allocations: 260 kB / 0.5144 GB, free: 80.35 MB / 378.7 MB Notification: Performance of SimCode: time 1.313e-06/0.8916, allocations: 3.75 kB / 0.5144 GB, free: 80.35 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.901/3.792, allocations: 22.33 MB / 0.5362 GB, free: 72.11 MB / 378.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_CylinderLeakage_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_CylinderLeakage.fmu > Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.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.CylinderLeakage_res.mat does not exist to compare? outputFormat=mat