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.002316/0.002316, allocations: 181.3 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.25/2.25, 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.001133/0.001133, allocations: 82.72 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.534e-05/4.561e-05, allocations: 4 kB / 321.6 MB, free: 17.73 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1361/0.1362, allocations: 47.58 MB / 369.2 MB, free: 2.086 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4482/0.5845, allocations: 81.99 MB / 451.2 MB, free: 11.22 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000335/0.5849, allocations: 85.81 kB / 451.3 MB, free: 11.17 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1019/0.6868, allocations: 26.05 MB / 477.3 MB, free: 2.66 MB / 346.7 MB Notification: Performance of FrontEnd: time 4.318e-06/0.6868, allocations: 3.984 kB / 477.3 MB, free: 2.656 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.823e-05/0.6869, allocations: 16 kB / 477.3 MB, free: 2.641 MB / 346.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.004776/0.6917, allocations: 1.088 MB / 478.4 MB, free: 1.504 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.436e-05/0.6917, allocations: 8.031 kB / 478.4 MB, free: 1.496 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000376/0.6921, allocations: 152.2 kB / 478.6 MB, free: 1.34 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00252/0.6946, allocations: 254.8 kB / 478.8 MB, free: 1.09 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004005/0.6951, allocations: 259.3 kB / 479.1 MB, free: 0.7969 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001127/0.6952, allocations: 77.89 kB / 479.2 MB, free: 0.7227 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003118/0.6955, allocations: 99.91 kB / 479.3 MB, free: 0.625 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002581/0.6981, allocations: 0.9112 MB / 480.2 MB, free: 15.7 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.241e-05/0.6982, allocations: 4 kB / 480.2 MB, free: 15.69 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001392/0.6984, allocations: 39.98 kB / 480.2 MB, free: 15.65 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.324e-05/0.6984, allocations: 24 kB / 480.2 MB, free: 15.63 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002334/0.7008, allocations: 0.7576 MB / 481 MB, free: 14.87 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009006/0.7098, allocations: 3.411 MB / 484.4 MB, free: 11.28 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003552/0.7134, allocations: 1.406 MB / 485.8 MB, free: 9.75 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001069/0.7146, allocations: 356.7 kB / 486.2 MB, free: 9.398 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002142/0.7148, allocations: 101.9 kB / 486.3 MB, free: 9.281 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.067e-05/0.7149, allocations: 43.34 kB / 486.3 MB, free: 9.23 MB / 362.7 MB Notification: Performance of pre-optimization done (n=87): time 3.957e-06/0.7149, allocations: 7.938 kB / 486.3 MB, free: 9.223 MB / 362.7 MB Notification: Performance of matching and sorting (n=87): time 0.002152/0.717, allocations: 0.6786 MB / 487 MB, free: 8.523 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.93e-05/0.7171, allocations: 85.89 kB / 487.1 MB, free: 8.422 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006445/0.7178, allocations: 326.8 kB / 487.4 MB, free: 8.098 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.739e-05/0.7179, allocations: 37.7 kB / 487.4 MB, free: 8.055 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003687/0.7183, allocations: 445.2 kB / 487.9 MB, free: 7.613 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003674/0.7187, allocations: 299.7 kB / 488.2 MB, free: 7.316 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.785e-05/0.7188, allocations: 24 kB / 488.2 MB, free: 7.293 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002006/0.719, allocations: 350.8 kB / 488.5 MB, free: 6.941 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007854/0.7198, allocations: 246.6 kB / 488.8 MB, free: 6.699 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009717/0.7208, allocations: 455.5 kB / 489.2 MB, free: 6.18 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009508/0.7217, allocations: 332.8 kB / 489.5 MB, free: 5.852 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.011e-05/0.7217, allocations: 8 kB / 489.5 MB, free: 5.844 MB / 362.7 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.002742/0.7245, allocations: 0.934 MB / 490.5 MB, free: 4.891 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.124e-05/0.7246, allocations: 11.95 kB / 490.5 MB, free: 4.879 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.848e-05/0.7246, allocations: 4 kB / 490.5 MB, free: 4.875 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006073/0.7252, allocations: 123.4 kB / 490.6 MB, free: 4.742 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001656/0.7269, allocations: 207.7 kB / 490.8 MB, free: 4.539 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005987/0.7329, allocations: 5.563 MB / 496.4 MB, free: 14.44 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00116/0.7341, allocations: 102.9 kB / 496.5 MB, free: 14.34 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001199/0.7343, allocations: 36 kB / 496.5 MB, free: 14.3 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 () * 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.0002744/0.7346, allocations: 161.7 kB / 496.7 MB, free: 14.14 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001821/0.7347, allocations: 51.34 kB / 496.7 MB, free: 14.09 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002502/0.7373, allocations: 0.8351 MB / 497.6 MB, free: 13.23 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.514e-05/0.7373, allocations: 8 kB / 497.6 MB, free: 13.23 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.655e-06/0.7373, allocations: 0 / 497.6 MB, free: 13.23 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.063e-05/0.7374, allocations: 7.984 kB / 497.6 MB, free: 13.22 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006548/0.7439, allocations: 2.738 MB / 0.4886 GB, free: 10.18 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.947e-05/0.744, allocations: 12 kB / 0.4886 GB, free: 10.17 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001121/0.7451, allocations: 135.8 kB / 0.4887 GB, free: 10.04 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005442/0.7457, allocations: 123.4 kB / 0.4888 GB, free: 9.906 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.93e-05/0.7458, allocations: 20 kB / 0.4889 GB, free: 9.887 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005489/0.7513, allocations: 5.307 MB / 0.494 GB, free: 4.043 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.319e-05/0.7513, allocations: 8 kB / 0.494 GB, free: 4.035 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003748/0.7551, allocations: 1.746 MB / 0.4958 GB, free: 1.973 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003907/0.7556, allocations: 164.2 kB / 0.4959 GB, free: 1.793 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000167/0.7557, allocations: 20 kB / 0.4959 GB, free: 1.773 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008116/0.7566, allocations: 27.98 kB / 0.496 GB, free: 1.746 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002361/0.7568, allocations: 84.27 kB / 0.496 GB, free: 1.664 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.249e-05/0.7569, allocations: 28 kB / 0.4961 GB, free: 1.637 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0005677/0.7575, allocations: 278.1 kB / 0.4963 GB, free: 1.367 MB / 378.7 MB Notification: Performance of sort global known variables: time 5.92e-07/0.7575, allocations: 0 / 0.4963 GB, free: 1.367 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001771/0.7593, allocations: 259.4 kB / 0.4966 GB, free: 1.113 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 33 * Number of states: 1 (referenceSensor.port.reference.gamma) * Number of discrete variables: 0 () * Number of discrete 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.005422/0.7648, allocations: 4.548 MB / 0.501 GB, free: 12.31 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002835/0.7677, allocations: 1.138 MB / 0.5021 GB, free: 11.12 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.273e-05/0.7677, allocations: 4 kB / 0.5021 GB, free: 11.12 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001565/0.7693, allocations: 0.7762 MB / 0.5029 GB, free: 10.29 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000752/0.7701, allocations: 62.94 kB / 0.5029 GB, free: 10.23 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004612/0.7747, allocations: 1.356 MB / 0.5043 GB, free: 8.723 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007609/0.7756, allocations: 0.9358 MB / 0.5052 GB, free: 7.762 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007517/0.7763, allocations: 263.3 kB / 0.5054 GB, free: 7.504 MB / 394.7 MB Notification: Performance of SimCode: time 1.192e-06/0.7763, allocations: 0 / 0.5054 GB, free: 7.504 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.992/3.768, allocations: 22.57 MB / 0.5275 GB, free: 0.8906 MB / 410.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