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.0009817/0.0009817, allocations: 172.9 kB / 14.1 MB, free: 1.223 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.358/1.358, allocations: 205.2 MB / 219.8 MB, free: 14.2 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.0008145/0.0008143, allocations: 82.72 kB / 268 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.359e-05/3.371e-05, allocations: 8 kB / 322.6 MB, free: 17.23 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08217/0.08223, allocations: 47.57 MB / 370.1 MB, free: 1.594 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2971/0.3794, allocations: 81.97 MB / 452.1 MB, free: 11.36 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002656/0.3797, allocations: 86.14 kB / 452.2 MB, free: 11.31 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05944/0.4392, allocations: 26.05 MB / 478.2 MB, free: 2.34 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.364e-06/0.4392, allocations: 0 / 478.2 MB, free: 2.34 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.787e-05/0.4392, allocations: 12 kB / 478.3 MB, free: 2.328 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.002699/0.4419, allocations: 1.096 MB / 479.4 MB, free: 1.184 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.743e-05/0.442, allocations: 12.03 kB / 479.4 MB, free: 1.172 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001813/0.4422, allocations: 148.2 kB / 479.5 MB, free: 1.02 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001503/0.4437, allocations: 254.8 kB / 479.8 MB, free: 0.7695 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002056/0.4439, allocations: 259.2 kB / 480 MB, free: 488 kB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.534e-05/0.444, allocations: 77.95 kB / 480.1 MB, free: 412 kB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001313/0.4441, allocations: 103.9 kB / 480.2 MB, free: 308 kB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001379/0.4455, allocations: 0.9034 MB / 481.1 MB, free: 15.38 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.713e-05/0.4455, allocations: 7.984 kB / 481.1 MB, free: 15.37 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.235e-05/0.4456, allocations: 40 kB / 481.1 MB, free: 15.33 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.941e-05/0.4456, allocations: 27.98 kB / 481.2 MB, free: 15.3 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001191/0.4468, allocations: 0.7538 MB / 481.9 MB, free: 14.55 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004634/0.4515, allocations: 3.411 MB / 485.3 MB, free: 10.96 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001922/0.4534, allocations: 1.41 MB / 486.7 MB, free: 9.422 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005133/0.4539, allocations: 356.7 kB / 487.1 MB, free: 9.07 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001089/0.4541, allocations: 105.9 kB / 487.2 MB, free: 8.949 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.661e-05/0.4541, allocations: 43.33 kB / 487.2 MB, free: 8.898 MB / 362.7 MB Notification: Performance of pre-optimization done (n=87): time 3.096e-06/0.4541, allocations: 3.938 kB / 487.2 MB, free: 8.895 MB / 362.7 MB Notification: Performance of matching and sorting (n=87): time 0.001182/0.4553, allocations: 0.6786 MB / 487.9 MB, free: 8.195 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.94e-05/0.4554, allocations: 85.89 kB / 488 MB, free: 8.094 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003505/0.4557, allocations: 322.8 kB / 488.3 MB, free: 7.773 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.139e-05/0.4558, allocations: 41.7 kB / 488.4 MB, free: 7.727 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002246/0.456, allocations: 378.8 kB / 488.7 MB, free: 7.348 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002169/0.4562, allocations: 299.7 kB / 489 MB, free: 7.051 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.023e-05/0.4563, allocations: 24.03 kB / 489 MB, free: 7.027 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001492/0.4564, allocations: 362.8 kB / 489.4 MB, free: 6.664 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004052/0.4568, allocations: 246.6 kB / 489.6 MB, free: 6.422 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005356/0.4574, allocations: 459.5 kB / 490.1 MB, free: 5.898 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005137/0.4579, allocations: 328.8 kB / 490.4 MB, free: 5.574 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.657e-06/0.4579, allocations: 4 kB / 490.4 MB, free: 5.57 MB / 362.7 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.001475/0.4594, allocations: 0.9533 MB / 491.4 MB, free: 4.598 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.436e-05/0.4594, allocations: 15.89 kB / 491.4 MB, free: 4.582 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.073e-05/0.4594, allocations: 7.938 kB / 491.4 MB, free: 4.574 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003673/0.4598, allocations: 123.5 kB / 491.5 MB, free: 4.441 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007256/0.4606, allocations: 207.7 kB / 491.7 MB, free: 4.238 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00371/0.4643, allocations: 5.563 MB / 497.3 MB, free: 14.14 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005631/0.4649, allocations: 98.91 kB / 497.4 MB, free: 14.04 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.777e-05/0.4649, allocations: 40 kB / 497.4 MB, free: 14 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.0001644/0.4651, allocations: 165.6 kB / 497.6 MB, free: 13.84 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001002/0.4652, allocations: 51.34 kB / 497.6 MB, free: 13.79 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001415/0.4666, allocations: 0.8234 MB / 498.4 MB, free: 12.94 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.957e-06/0.4666, allocations: 12 kB / 498.5 MB, free: 12.93 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.189e-05/0.4667, allocations: 8 kB / 498.5 MB, free: 12.92 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.035e-06/0.4667, allocations: 3.984 kB / 498.5 MB, free: 12.92 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003493/0.4702, allocations: 2.734 MB / 0.4895 GB, free: 9.891 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.013e-05/0.4702, allocations: 7.984 kB / 0.4895 GB, free: 9.883 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004926/0.4707, allocations: 139.9 kB / 0.4896 GB, free: 9.746 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002828/0.471, allocations: 115.3 kB / 0.4897 GB, free: 9.621 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.919e-05/0.471, allocations: 27.98 kB / 0.4897 GB, free: 9.594 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003292/0.4743, allocations: 5.303 MB / 0.4949 GB, free: 3.758 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.093e-06/0.4744, allocations: 8 kB / 0.4949 GB, free: 3.75 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002069/0.4764, allocations: 1.75 MB / 0.4966 GB, free: 1.684 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001956/0.4767, allocations: 156.2 kB / 0.4968 GB, free: 1.512 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.3e-05/0.4767, allocations: 23.98 kB / 0.4968 GB, free: 1.488 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004238/0.4772, allocations: 31.91 kB / 0.4968 GB, free: 1.457 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001223/0.4773, allocations: 84.25 kB / 0.4969 GB, free: 1.375 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.75e-05/0.4774, allocations: 32 kB / 0.4969 GB, free: 1.344 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003269/0.4777, allocations: 270.1 kB / 0.4972 GB, free: 1.082 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4777, allocations: 0 / 0.4972 GB, free: 1.082 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001059/0.4788, allocations: 255.5 kB / 0.4974 GB, free: 0.832 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.003371/0.4821, allocations: 4.559 MB / 0.5019 GB, free: 12.02 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001628/0.4838, allocations: 1.134 MB / 0.503 GB, free: 10.83 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.278e-06/0.4838, allocations: 0 / 0.503 GB, free: 10.83 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007943/0.4846, allocations: 0.7731 MB / 0.5038 GB, free: 10.01 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004526/0.4851, allocations: 65.8 kB / 0.5038 GB, free: 9.945 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002617/0.4877, allocations: 1.323 MB / 0.5051 GB, free: 8.477 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004667/0.4882, allocations: 0.9319 MB / 0.506 GB, free: 7.52 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0005039/0.4887, allocations: 113.2 kB / 0.5061 GB, free: 7.406 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003371/0.489, allocations: 259.3 kB / 0.5064 GB, free: 7.152 MB / 394.7 MB Notification: Performance of SimCode: time 6.11e-07/0.489, allocations: 0 / 0.5064 GB, free: 7.152 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02768/0.5167, allocations: 12.69 MB / 0.5188 GB, free: 10.45 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002187/0.517, allocations: 203.5 kB / 0.519 GB, free: 10.21 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.209/2.726, allocations: 0 / 0.519 GB, free: 10.21 MB / 410.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