Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.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.GeneralLeakage,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage",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.0009226/0.0009226, allocations: 181.2 kB / 17.01 MB, free: 5.121 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.348/1.348, allocations: 205.4 MB / 223.1 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.000858/0.000858, allocations: 88.09 kB / 271.5 MB, free: 8.383 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002653/0.0002653, allocations: 8 kB / 328.4 MB, free: 15.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2733/0.2736, allocations: 47.57 MB / 375.9 MB, free: 45.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1023/0.3759, allocations: 79.87 MB / 455.8 MB, free: 0.7773 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002865/0.3763, allocations: 87.94 kB / 455.9 MB, free: 0.6914 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02639/0.4027, allocations: 11.19 MB / 467.1 MB, free: 5.363 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.675e-06/0.4027, allocations: 0 / 467.1 MB, free: 5.363 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.574e-05/0.4028, allocations: 8 kB / 467.1 MB, free: 5.355 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: 81 * Number of variables: 81 Notification: Performance of Generate backend data structure: time 0.001427/0.4042, allocations: 0.616 MB / 467.7 MB, free: 4.691 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.44e-05/0.4043, allocations: 19.97 kB / 467.7 MB, free: 4.672 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.571e-05/0.4044, allocations: 70.47 kB / 467.8 MB, free: 4.594 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006811/0.4051, allocations: 107.5 kB / 467.9 MB, free: 4.488 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003975/0.4055, allocations: 257.9 kB / 468.1 MB, free: 4.199 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.684e-05/0.4055, allocations: 24.66 kB / 468.2 MB, free: 4.176 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.992e-05/0.4056, allocations: 35.95 kB / 468.2 MB, free: 4.141 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000563/0.4061, allocations: 329.1 kB / 468.5 MB, free: 3.805 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.899e-05/0.4062, allocations: 0 / 468.5 MB, free: 3.805 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.337e-05/0.4062, allocations: 16 kB / 468.5 MB, free: 3.789 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.159e-05/0.4062, allocations: 8 kB / 468.5 MB, free: 3.781 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003998/0.4066, allocations: 242.4 kB / 468.8 MB, free: 3.547 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002047/0.4087, allocations: 1.46 MB / 470.2 MB, free: 1.945 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00068/0.4094, allocations: 0.6949 MB / 470.9 MB, free: 1.133 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001307/0.4095, allocations: 81.11 kB / 471 MB, free: 1.035 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.981e-05/0.4096, allocations: 38.55 kB / 471.1 MB, free: 0.9883 MB / 346.7 MB Notification: Performance of pre-optimization done (n=24): time 1.322e-06/0.4096, allocations: 0 / 471.1 MB, free: 0.9883 MB / 346.7 MB Notification: Performance of matching and sorting (n=24): time 0.001184/0.4108, allocations: 489.8 kB / 471.5 MB, free: 496 kB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.837e-05/0.4108, allocations: 55.41 kB / 471.6 MB, free: 428 kB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001675/0.411, allocations: 154.5 kB / 471.7 MB, free: 260 kB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.835e-05/0.411, allocations: 41.69 kB / 471.8 MB, free: 212 kB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001235/0.4112, allocations: 172 kB / 471.9 MB, free: 36 kB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.359e-05/0.4112, allocations: 86.75 kB / 472 MB, free: 15.95 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.112e-05/0.4113, allocations: 4 kB / 472 MB, free: 15.95 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001475/0.4114, allocations: 330.8 kB / 472.4 MB, free: 15.61 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001055/0.4115, allocations: 60.55 kB / 472.4 MB, free: 15.55 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001667/0.4117, allocations: 123.3 kB / 472.5 MB, free: 15.41 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001367/0.4119, allocations: 85.11 kB / 472.6 MB, free: 15.33 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.996e-06/0.4119, allocations: 0 / 472.6 MB, free: 15.33 MB / 362.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0005379/0.4124, allocations: 316.9 kB / 472.9 MB, free: 15.02 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.903e-05/0.4124, allocations: 8 kB / 472.9 MB, free: 15.01 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.113e-06/0.4124, allocations: 0 / 472.9 MB, free: 15.01 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003399/0.4128, allocations: 84.86 kB / 473 MB, free: 14.92 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001479/0.413, allocations: 35.98 kB / 473.1 MB, free: 14.89 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001905/0.4149, allocations: 1.859 MB / 474.9 MB, free: 12.89 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000135/0.415, allocations: 27.67 kB / 474.9 MB, free: 12.87 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.756e-05/0.4151, allocations: 12 kB / 475 MB, free: 12.86 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (24): * Single equations (assignments): 23 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001747/0.4152, allocations: 149.8 kB / 475.1 MB, free: 12.7 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.104e-05/0.4153, allocations: 15.81 kB / 475.1 MB, free: 12.68 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005619/0.4158, allocations: 276.8 kB / 475.4 MB, free: 12.4 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.241e-05/0.4159, allocations: 4 kB / 475.4 MB, free: 12.4 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/0.4159, allocations: 7.891 kB / 475.4 MB, free: 12.39 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.322e-06/0.4159, allocations: 7.984 kB / 475.4 MB, free: 12.38 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001/0.4169, allocations: 0.6905 MB / 476.1 MB, free: 11.63 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.4169, allocations: 0 / 476.1 MB, free: 11.63 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000116/0.417, allocations: 35.88 kB / 476.1 MB, free: 11.6 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002243/0.4173, allocations: 68.81 kB / 476.2 MB, free: 11.53 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.948e-05/0.4173, allocations: 11.98 kB / 476.2 MB, free: 11.52 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001748/0.4191, allocations: 1.855 MB / 478.1 MB, free: 9.527 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.384e-06/0.4191, allocations: 3.984 kB / 478.1 MB, free: 9.523 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006159/0.4197, allocations: 452.5 kB / 478.5 MB, free: 9.062 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.174e-05/0.4198, allocations: 108.8 kB / 478.6 MB, free: 8.938 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.901e-05/0.4198, allocations: 4 kB / 478.6 MB, free: 8.934 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001092/0.4199, allocations: 4 kB / 478.6 MB, free: 8.93 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.025e-05/0.42, allocations: 19.97 kB / 478.6 MB, free: 8.91 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.151e-05/0.42, allocations: 8 kB / 478.6 MB, free: 8.902 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001011/0.4201, allocations: 131.5 kB / 478.8 MB, free: 8.773 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4201, allocations: 0 / 478.8 MB, free: 8.773 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.00046/0.4206, allocations: 107.7 kB / 478.9 MB, free: 8.668 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (constantSource.port_p.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 (15): * Single equations (assignments): 14 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009968/0.4216, allocations: 0.9951 MB / 479.9 MB, free: 7.645 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005941/0.4222, allocations: 358.4 kB / 480.2 MB, free: 7.281 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.4222, allocations: 0 / 480.2 MB, free: 7.281 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003133/0.4225, allocations: 246.4 kB / 480.5 MB, free: 7.027 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002379/0.4228, allocations: 20 kB / 480.5 MB, free: 7.008 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002386/0.4252, allocations: 2.372 MB / 482.9 MB, free: 4.562 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003296/0.4255, allocations: 0.7635 MB / 483.6 MB, free: 3.773 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001041/0.4256, allocations: 21.94 kB / 483.6 MB, free: 3.754 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001182/0.4257, allocations: 75.88 kB / 483.7 MB, free: 3.68 MB / 362.7 MB Notification: Performance of SimCode: time 3.5e-07/0.4258, allocations: 0 / 483.7 MB, free: 3.68 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01869/0.4444, allocations: 4.577 MB / 488.3 MB, free: 15.12 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002189/0.4447, allocations: 225.3 kB / 488.5 MB, free: 14.88 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.859/2.304, allocations: 0 / 488.5 MB, free: 14.88 MB / 378.7 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_Leakage_GeneralLeakage.fmu > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.GeneralLeakage_res.mat does not exist to compare? outputFormat=mat