Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.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.Leakage.CylinderLeakage,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_CylinderLeakage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001052/0.001052, allocations: 175.5 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.382/1.382, allocations: 221.3 MB / 235.5 MB, free: 2.914 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.00106/0.00106, allocations: 97.81 kB / 286.5 MB, free: 188 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.206e-05/3.219e-05, allocations: 0 / 343.9 MB, free: 4.219 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1322/0.1322, allocations: 50.41 MB / 394.3 MB, free: 1.766 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4234/0.5557, allocations: 83.06 MB / 477.4 MB, free: 4.34 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003348/0.5561, allocations: 93.75 kB / 477.5 MB, free: 4.25 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06701/0.6231, allocations: 26.2 MB / 0.4919 GB, free: 9.719 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.6232, allocations: 0 / 0.4919 GB, free: 9.719 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.243e-05/0.6232, allocations: 12 kB / 0.4919 GB, free: 9.707 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: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.003125/0.6263, allocations: 1.1 MB / 0.493 GB, free: 8.559 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 0.0001095/0.6264, allocations: 12.03 kB / 0.493 GB, free: 8.547 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001946/0.6267, allocations: 152.2 kB / 0.4931 GB, free: 8.391 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00163/0.6283, allocations: 250.8 kB / 0.4934 GB, free: 8.145 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002704/0.6286, allocations: 250 kB / 0.4936 GB, free: 7.859 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.756e-05/0.6287, allocations: 74 kB / 0.4937 GB, free: 7.789 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001607/0.6288, allocations: 99.91 kB / 0.4938 GB, free: 7.691 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001663/0.6305, allocations: 0.915 MB / 0.4947 GB, free: 6.762 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.043e-05/0.6306, allocations: 0 / 0.4947 GB, free: 6.762 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.813e-05/0.6306, allocations: 43.95 kB / 0.4947 GB, free: 6.719 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.157e-05/0.6307, allocations: 24 kB / 0.4947 GB, free: 6.695 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001391/0.6321, allocations: 0.7615 MB / 0.4955 GB, free: 5.934 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005621/0.6377, allocations: 3.404 MB / 0.4988 GB, free: 2.344 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00212/0.6399, allocations: 1.416 MB / 0.5002 GB, free: 0.8008 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006547/0.6406, allocations: 360.7 kB / 0.5005 GB, free: 456 kB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001338/0.6407, allocations: 101.9 kB / 0.5006 GB, free: 336 kB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.77e-05/0.6408, allocations: 43.34 kB / 0.5007 GB, free: 280 kB / 378.7 MB Notification: Performance of pre-optimization done (n=87): time 3.436e-06/0.6408, allocations: 0 / 0.5007 GB, free: 280 kB / 378.7 MB Notification: Performance of matching and sorting (n=87): time 0.001495/0.6423, allocations: 0.6747 MB / 0.5013 GB, free: 15.58 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.852e-05/0.6423, allocations: 93.83 kB / 0.5014 GB, free: 15.47 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004124/0.6428, allocations: 322.8 kB / 0.5017 GB, free: 15.15 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 5.88e-05/0.6428, allocations: 37.7 kB / 0.5018 GB, free: 15.11 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003196/0.6432, allocations: 390.6 kB / 0.5021 GB, free: 14.71 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002551/0.6434, allocations: 295.8 kB / 0.5024 GB, free: 14.42 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.29e-05/0.6435, allocations: 20 kB / 0.5024 GB, free: 14.4 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001888/0.6437, allocations: 362.7 kB / 0.5028 GB, free: 14.04 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005084/0.6442, allocations: 258.6 kB / 0.503 GB, free: 13.79 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006147/0.6448, allocations: 459.7 kB / 0.5035 GB, free: 13.26 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006191/0.6454, allocations: 332.8 kB / 0.5038 GB, free: 12.93 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.187e-06/0.6454, allocations: 0 / 0.5038 GB, free: 12.93 MB / 394.7 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.001737/0.6472, allocations: 0.9455 MB / 0.5047 GB, free: 11.97 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.701e-05/0.6472, allocations: 12.06 kB / 0.5047 GB, free: 11.96 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.213e-05/0.6472, allocations: 4 kB / 0.5047 GB, free: 11.96 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004071/0.6477, allocations: 119.4 kB / 0.5048 GB, free: 11.83 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007959/0.6485, allocations: 203.7 kB / 0.505 GB, free: 11.63 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004712/0.6532, allocations: 5.555 MB / 0.5105 GB, free: 5.539 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007269/0.6539, allocations: 98.91 kB / 0.5106 GB, free: 5.441 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.001e-05/0.654, allocations: 47.92 kB / 0.5106 GB, free: 5.395 MB / 394.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.0002064/0.6542, allocations: 160.7 kB / 0.5108 GB, free: 5.23 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001236/0.6544, allocations: 55.34 kB / 0.5108 GB, free: 5.176 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001631/0.656, allocations: 0.8313 MB / 0.5116 GB, free: 4.328 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.163e-05/0.656, allocations: 12 kB / 0.5116 GB, free: 4.316 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.423e-06/0.656, allocations: 4 kB / 0.5116 GB, free: 4.312 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.285e-05/0.6561, allocations: 11.94 kB / 0.5116 GB, free: 4.301 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003953/0.66, allocations: 2.73 MB / 0.5143 GB, free: 1.27 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.947e-06/0.66, allocations: 4 kB / 0.5143 GB, free: 1.266 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005674/0.6606, allocations: 136.7 kB / 0.5144 GB, free: 1.133 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003354/0.661, allocations: 119.3 kB / 0.5146 GB, free: 1.004 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.174e-05/0.6611, allocations: 24 kB / 0.5146 GB, free: 0.9805 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004055/0.6651, allocations: 5.303 MB / 0.5198 GB, free: 11.14 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.123e-05/0.6652, allocations: 12.17 kB / 0.5198 GB, free: 11.13 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002305/0.6675, allocations: 1.743 MB / 0.5215 GB, free: 9.07 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002063/0.6677, allocations: 164.2 kB / 0.5216 GB, free: 8.891 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000153/0.6679, allocations: 35.94 kB / 0.5217 GB, free: 8.855 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004305/0.6683, allocations: 27.91 kB / 0.5217 GB, free: 8.828 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001172/0.6684, allocations: 80.23 kB / 0.5218 GB, free: 8.75 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.855e-05/0.6685, allocations: 32 kB / 0.5218 GB, free: 8.719 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0003825/0.6689, allocations: 270.1 kB / 0.5221 GB, free: 8.453 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.6689, allocations: 3.938 kB / 0.5221 GB, free: 8.449 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001123/0.67, allocations: 263.5 kB / 0.5223 GB, free: 8.191 MB / 410.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.003744/0.6738, allocations: 4.556 MB / 0.5268 GB, free: 3.387 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002134/0.6759, allocations: 1.138 MB / 0.5279 GB, free: 2.195 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.543e-06/0.676, allocations: 0 / 0.5279 GB, free: 2.195 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001056/0.677, allocations: 0.7728 MB / 0.5286 GB, free: 1.375 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005002/0.6775, allocations: 61.86 kB / 0.5287 GB, free: 1.312 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002923/0.6805, allocations: 1.308 MB / 0.53 GB, free: 15.86 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006069/0.6811, allocations: 0.928 MB / 0.5309 GB, free: 14.9 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.000527/0.6816, allocations: 109.2 kB / 0.531 GB, free: 14.79 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004078/0.682, allocations: 259.3 kB / 0.5312 GB, free: 14.54 MB / 426.7 MB Notification: Performance of SimCode: time 1.673e-06/0.6821, allocations: 0 / 0.5312 GB, free: 14.54 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03011/0.7122, allocations: 12.72 MB / 0.5436 GB, free: 2 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002065/0.7124, allocations: 198.5 kB / 0.5438 GB, free: 1.777 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.816/3.529, allocations: 0 / 0.5438 GB, free: 1.777 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_CylinderLeakage_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_CylinderLeakage.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage_res.mat does not exist to compare? outputFormat=mat