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.001527/0.001531, allocations: 183.7 kB / 16.4 MB, free: 5.754 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.986/1.986, allocations: 205.4 MB / 222.5 MB, free: 9.105 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.001807/0.001806, allocations: 95.5 kB / 270.9 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003856/0.0003856, allocations: 12 kB / 327.1 MB, free: 100 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3227/0.3231, allocations: 47.57 MB / 374.6 MB, free: 45.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage): time 0.006004/0.3292, allocations: 4.134 MB / 378.8 MB, free: 42.25 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0037/0.3329, allocations: 1.589 MB / 380.4 MB, free: 40.97 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005835/0.3336, allocations: 16.16 kB / 380.4 MB, free: 40.97 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007348/0.3343, allocations: 199 kB / 380.6 MB, free: 40.82 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001115/0.3355, allocations: 293.8 kB / 380.9 MB, free: 40.59 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002188/0.3377, allocations: 0.6559 MB / 381.5 MB, free: 40.09 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001452/0.3391, allocations: 0.5634 MB / 382.1 MB, free: 39.75 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003489/0.3427, allocations: 1.316 MB / 383.4 MB, free: 38.79 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006321/0.3433, allocations: 293.4 kB / 383.7 MB, free: 38.63 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006133/0.3439, allocations: 363 kB / 384 MB, free: 38.42 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001045/0.3441, allocations: 34.72 kB / 384.1 MB, free: 38.42 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007638/0.3448, allocations: 194.1 kB / 384.3 MB, free: 38.34 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000123/0.345, allocations: 131.8 kB / 384.4 MB, free: 38.24 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002059/0.3452, allocations: 167.1 kB / 384.5 MB, free: 38.13 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00128/0.3465, allocations: 0.8905 MB / 385.4 MB, free: 37.45 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.886e-06/0.3465, allocations: 0 / 385.4 MB, free: 37.45 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.003e-06/0.3465, allocations: 0 / 385.4 MB, free: 37.45 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.408e-05/0.3466, allocations: 5.344 kB / 385.4 MB, free: 37.44 MB / 298.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.005643/0.3522, allocations: 1.286 MB / 386.7 MB, free: 36.52 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.82e-05/0.3523, allocations: 9.062 kB / 386.7 MB, free: 36.52 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002596/0.3525, allocations: 151.5 kB / 386.9 MB, free: 36.39 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002355/0.3549, allocations: 257.1 kB / 387.1 MB, free: 36.22 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003876/0.3553, allocations: 255.7 kB / 387.4 MB, free: 35.93 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.395e-05/0.3554, allocations: 74 kB / 387.5 MB, free: 35.86 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002916/0.3557, allocations: 103.8 kB / 387.6 MB, free: 35.76 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002143/0.3579, allocations: 0.9224 MB / 388.5 MB, free: 34.82 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.207e-05/0.358, allocations: 7.938 kB / 388.5 MB, free: 34.82 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001207/0.3581, allocations: 44 kB / 388.5 MB, free: 34.77 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.148e-05/0.3581, allocations: 27.94 kB / 388.6 MB, free: 34.75 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001977/0.3601, allocations: 0.7692 MB / 389.3 MB, free: 33.98 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007378/0.3675, allocations: 3.393 MB / 392.7 MB, free: 30.4 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002748/0.3703, allocations: 1.256 MB / 394 MB, free: 29.07 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001514/0.3705, allocations: 102.1 kB / 394.1 MB, free: 28.95 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.668e-05/0.3706, allocations: 43.56 kB / 394.1 MB, free: 28.9 MB / 298.7 MB Notification: Performance of pre-optimization done (n=87): time 3.146e-06/0.3706, allocations: 0 / 394.1 MB, free: 28.9 MB / 298.7 MB Notification: Performance of matching and sorting (n=87): time 0.003071/0.3737, allocations: 1.292 MB / 395.4 MB, free: 27.52 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.736e-05/0.3737, allocations: 90.09 kB / 395.5 MB, free: 27.41 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005204/0.3743, allocations: 368.3 kB / 395.9 MB, free: 27.05 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.689e-05/0.3743, allocations: 41.7 kB / 395.9 MB, free: 27 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001953/0.3745, allocations: 437.3 kB / 396.3 MB, free: 26.57 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002271/0.3748, allocations: 303.6 kB / 396.6 MB, free: 26.27 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.606e-05/0.3748, allocations: 24 kB / 396.6 MB, free: 26.24 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.58e-05/0.3749, allocations: 346.8 kB / 397 MB, free: 25.89 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006739/0.3756, allocations: 258.5 kB / 397.2 MB, free: 25.64 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007698/0.3764, allocations: 467.5 kB / 397.7 MB, free: 25.11 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008203/0.3772, allocations: 334.9 kB / 398 MB, free: 24.78 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.003e-06/0.3773, allocations: 4 kB / 398 MB, free: 24.78 MB / 298.7 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.002321/0.3796, allocations: 0.9536 MB / 399 MB, free: 23.8 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.488e-05/0.3796, allocations: 8 kB / 399 MB, free: 23.8 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.547e-05/0.3797, allocations: 11.97 kB / 399 MB, free: 23.79 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005526/0.3802, allocations: 127.3 kB / 399.1 MB, free: 23.65 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001473/0.3817, allocations: 203.7 kB / 399.3 MB, free: 23.45 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003988/0.3857, allocations: 5.594 MB / 404.9 MB, free: 17.31 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001039/0.3868, allocations: 106.8 kB / 405 MB, free: 17.21 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.543e-05/0.3869, allocations: 40 kB / 405.1 MB, free: 17.17 MB / 298.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.0004192/0.3873, allocations: 233.6 kB / 405.3 MB, free: 16.93 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001389/0.3875, allocations: 47.44 kB / 405.3 MB, free: 16.88 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002059/0.3896, allocations: 0.8482 MB / 406.2 MB, free: 16.02 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.007e-05/0.3896, allocations: 12 kB / 406.2 MB, free: 16.01 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.203e-06/0.3896, allocations: 0 / 406.2 MB, free: 16.01 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.067e-05/0.3896, allocations: 7.984 kB / 406.2 MB, free: 16 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003781/0.3934, allocations: 1.928 MB / 408.1 MB, free: 13.93 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.124e-06/0.3935, allocations: 0 / 408.1 MB, free: 13.93 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001055/0.3945, allocations: 135.8 kB / 408.3 MB, free: 13.8 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004418/0.395, allocations: 119.6 kB / 408.4 MB, free: 13.67 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.038e-05/0.3951, allocations: 20 kB / 408.4 MB, free: 13.65 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003486/0.3986, allocations: 5.326 MB / 413.7 MB, free: 7.801 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.819e-06/0.3986, allocations: 4 kB / 413.7 MB, free: 7.797 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002625/0.4013, allocations: 1.378 MB / 415.1 MB, free: 6.301 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001938/0.4015, allocations: 148.3 kB / 415.3 MB, free: 6.137 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001154/0.4016, allocations: 23.94 kB / 415.3 MB, free: 6.113 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006448/0.4023, allocations: 20 kB / 415.3 MB, free: 6.094 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001727/0.4025, allocations: 64.52 kB / 415.4 MB, free: 6.031 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.957e-05/0.4025, allocations: 24 kB / 415.4 MB, free: 6.008 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003478/0.4029, allocations: 251.2 kB / 415.6 MB, free: 5.762 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.4029, allocations: 4 kB / 415.6 MB, free: 5.758 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001267/0.4042, allocations: 263.4 kB / 415.9 MB, free: 5.5 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * 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 (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.002988/0.4072, allocations: 2.665 MB / 418.6 MB, free: 2.734 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.002164/0.4094, allocations: 1.158 MB / 419.7 MB, free: 1.52 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 5.951e-06/0.4094, allocations: 8.125 kB / 419.7 MB, free: 1.512 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001122/0.4105, allocations: 0.7912 MB / 420.5 MB, free: 0.6719 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005883/0.4111, allocations: 46.19 kB / 420.6 MB, free: 0.625 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01018/0.4213, allocations: 7.363 MB / 427.9 MB, free: 9.051 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006766/0.4221, allocations: 0.9362 MB / 428.9 MB, free: 8.09 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000696/0.4228, allocations: 258.6 kB / 429.1 MB, free: 7.84 MB / 314.7 MB Notification: Performance of SimCode: time 1.092e-06/0.4228, allocations: 0 / 429.1 MB, free: 7.84 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.059/3.482, allocations: 22.23 MB / 451.3 MB, free: 1.586 MB / 330.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