Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.00121/0.00121, allocations: 181.2 kB / 17.01 MB, free: 5.125 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.244/1.244, allocations: 205.4 MB / 223.1 MB, free: 9.129 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.0008498/0.0008498, allocations: 92.17 kB / 271.5 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002321/0.0002321, allocations: 4 kB / 328.4 MB, free: 15.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.19/0.1903, allocations: 47.57 MB / 375.9 MB, free: 45.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08304/0.2734, allocations: 82.07 MB / 458 MB, free: 14.57 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002544/0.2737, allocations: 95.94 kB / 458.1 MB, free: 14.47 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0557/0.3294, allocations: 26.12 MB / 484.2 MB, free: 4.027 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.025e-06/0.3294, allocations: 4 kB / 484.2 MB, free: 4.023 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.52e-05/0.3294, allocations: 16 kB / 484.2 MB, free: 4.008 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.002621/0.3321, allocations: 1.111 MB / 485.3 MB, free: 2.844 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.749e-05/0.3321, allocations: 12.03 kB / 485.3 MB, free: 2.832 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001691/0.3323, allocations: 156.1 kB / 485.5 MB, free: 2.672 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001562/0.3338, allocations: 254.8 kB / 485.7 MB, free: 2.422 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002021/0.3341, allocations: 262.5 kB / 486 MB, free: 2.125 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.358e-05/0.3341, allocations: 77.95 kB / 486.1 MB, free: 2.051 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001336/0.3343, allocations: 99.91 kB / 486.2 MB, free: 1.953 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001352/0.3356, allocations: 0.9187 MB / 487.1 MB, free: 1.02 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.713e-05/0.3356, allocations: 4 kB / 487.1 MB, free: 1.016 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.263e-05/0.3357, allocations: 44 kB / 487.1 MB, free: 0.9727 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.743e-05/0.3358, allocations: 24 kB / 487.2 MB, free: 0.9492 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001194/0.3369, allocations: 0.7808 MB / 487.9 MB, free: 172 kB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004674/0.3416, allocations: 3.413 MB / 491.4 MB, free: 12.57 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00189/0.3435, allocations: 1.426 MB / 492.8 MB, free: 11.02 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.73e-05/0.3437, allocations: 106.1 kB / 492.9 MB, free: 10.9 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.135e-05/0.3437, allocations: 39.56 kB / 492.9 MB, free: 10.86 MB / 378.7 MB Notification: Performance of pre-optimization done (n=87): time 2.785e-06/0.3437, allocations: 0 / 492.9 MB, free: 10.86 MB / 378.7 MB Notification: Performance of matching and sorting (n=87): time 0.001962/0.3457, allocations: 1.296 MB / 494.2 MB, free: 9.469 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.216e-05/0.3457, allocations: 90.05 kB / 494.3 MB, free: 9.363 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003349/0.3461, allocations: 327.5 kB / 494.6 MB, free: 9.039 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.819e-05/0.3461, allocations: 41.7 kB / 494.7 MB, free: 8.992 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002122/0.3463, allocations: 382.8 kB / 495 MB, free: 8.609 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000208/0.3466, allocations: 295.7 kB / 495.3 MB, free: 8.316 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.286e-05/0.3466, allocations: 20 kB / 495.4 MB, free: 8.297 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001382/0.3467, allocations: 362.8 kB / 495.7 MB, free: 7.934 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000416/0.3472, allocations: 266.5 kB / 496 MB, free: 7.676 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005509/0.3477, allocations: 471.3 kB / 496.4 MB, free: 7.137 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005026/0.3482, allocations: 334.9 kB / 496.8 MB, free: 6.805 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.97e-06/0.3483, allocations: 4 kB / 496.8 MB, free: 6.801 MB / 378.7 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.001451/0.3497, allocations: 0.9649 MB / 497.7 MB, free: 5.82 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.702e-05/0.3497, allocations: 11.94 kB / 497.7 MB, free: 5.809 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.775e-05/0.3498, allocations: 8 kB / 497.7 MB, free: 5.801 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003349/0.3501, allocations: 123.6 kB / 497.9 MB, free: 5.668 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007497/0.3509, allocations: 199.7 kB / 498.1 MB, free: 5.473 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1518/0.5027, allocations: 5.595 MB / 0.4919 GB, free: 96.08 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008213/0.5035, allocations: 102.7 kB / 0.492 GB, free: 96.08 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.506e-05/0.5036, allocations: 39.02 kB / 0.492 GB, free: 96.08 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.000414/0.5041, allocations: 229 kB / 0.4922 GB, free: 95.97 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001302/0.5042, allocations: 52.47 kB / 0.4923 GB, free: 95.97 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001617/0.5058, allocations: 0.8574 MB / 0.4931 GB, free: 95.87 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.034e-05/0.5058, allocations: 9.438 kB / 0.4931 GB, free: 95.87 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.372e-06/0.5058, allocations: 2.594 kB / 0.4931 GB, free: 95.87 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.925e-06/0.5059, allocations: 4.438 kB / 0.4931 GB, free: 95.87 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002608/0.5085, allocations: 2.041 MB / 0.4951 GB, free: 95.13 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.792e-06/0.5085, allocations: 9.469 kB / 0.4951 GB, free: 95.13 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005417/0.509, allocations: 135.7 kB / 0.4952 GB, free: 95.13 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002575/0.5093, allocations: 107.7 kB / 0.4953 GB, free: 95.1 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.215e-05/0.5094, allocations: 20.47 kB / 0.4954 GB, free: 95.1 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002421/0.5118, allocations: 5.327 MB / 0.5006 GB, free: 90.09 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.516e-06/0.5118, allocations: 9.172 kB / 0.5006 GB, free: 90.09 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001575/0.5134, allocations: 1.383 MB / 0.5019 GB, free: 89.55 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000144/0.5135, allocations: 146.1 kB / 0.5021 GB, free: 89.43 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.346e-05/0.5136, allocations: 16.47 kB / 0.5021 GB, free: 89.43 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003766/0.514, allocations: 29.41 kB / 0.5021 GB, free: 89.43 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.43e-05/0.5141, allocations: 66.38 kB / 0.5022 GB, free: 89.42 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.007e-05/0.5141, allocations: 22.97 kB / 0.5022 GB, free: 89.42 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002385/0.5144, allocations: 254.9 kB / 0.5024 GB, free: 89.34 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.11e-07/0.5144, allocations: 0 / 0.5024 GB, free: 89.34 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000962/0.5154, allocations: 264.6 kB / 0.5027 GB, free: 89.32 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.001925/0.5173, allocations: 2.655 MB / 0.5053 GB, free: 87.6 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001443/0.5188, allocations: 1.168 MB / 0.5064 GB, free: 87.14 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.968e-06/0.5188, allocations: 0 / 0.5064 GB, free: 87.14 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006831/0.5195, allocations: 0.7945 MB / 0.5072 GB, free: 86.68 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003542/0.5198, allocations: 44.22 kB / 0.5072 GB, free: 86.68 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004723/0.5246, allocations: 7.319 MB / 0.5144 GB, free: 81.59 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000299/0.5249, allocations: 0.9239 MB / 0.5153 GB, free: 80.88 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0004922/0.5254, allocations: 111 kB / 0.5154 GB, free: 80.85 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002691/0.5256, allocations: 261 kB / 0.5156 GB, free: 80.85 MB / 378.7 MB Notification: Performance of SimCode: time 4.51e-07/0.5257, allocations: 0 / 0.5156 GB, free: 80.85 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02248/0.5481, allocations: 11.95 MB / 0.5273 GB, free: 79.92 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000232/0.5484, allocations: 230.4 kB / 0.5275 GB, free: 79.67 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.266/2.815, allocations: 0 / 0.5275 GB, free: 79.67 MB / 378.7 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_CylinderLeakage_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_CylinderLeakage.fmu > Modelica_3.2.3_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_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage_res.mat does not exist to compare? outputFormat=mat