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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009611/0.0009611, allocations: 97.33 kB / 16.3 MB, free: 5.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009901/0.0009902, allocations: 182.3 kB / 17.2 MB, free: 5.512 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.368/1.368, allocations: 223.2 MB / 241.1 MB, free: 296 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002836/0.0002837, allocations: 8 kB / 300.8 MB, free: 6.34 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.111/0.1113, allocations: 50.43 MB / 351.2 MB, free: 3.902 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage): time 0.004878/0.1162, allocations: 4.152 MB / 355.4 MB, free: 15.73 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002607/0.1189, allocations: 1.554 MB / 357 MB, free: 14.17 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000225/0.1191, allocations: 16 kB / 357 MB, free: 14.15 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004796/0.1196, allocations: 198.9 kB / 357.2 MB, free: 13.96 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005941/0.1202, allocations: 295.2 kB / 357.5 MB, free: 13.67 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001236/0.1214, allocations: 0.6575 MB / 358.1 MB, free: 13.01 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006778/0.1221, allocations: 0.5578 MB / 358.7 MB, free: 12.45 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00229/0.1244, allocations: 1.332 MB / 360 MB, free: 11.09 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003753/0.1248, allocations: 286.9 kB / 360.3 MB, free: 10.81 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004215/0.1252, allocations: 374.4 kB / 360.6 MB, free: 10.44 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.986e-05/0.1253, allocations: 36 kB / 360.7 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004615/0.1258, allocations: 187.8 kB / 360.9 MB, free: 10.22 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001084/0.1259, allocations: 131.4 kB / 361 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001358/0.126, allocations: 169.3 kB / 361.2 MB, free: 9.922 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008805/0.1269, allocations: 0.8922 MB / 362.1 MB, free: 9.027 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.935e-06/0.1269, allocations: 4 kB / 362.1 MB, free: 9.023 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.1269, allocations: 0 / 362.1 MB, free: 9.023 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.254e-05/0.127, allocations: 4 kB / 362.1 MB, free: 9.02 MB / 302.1 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.003547/0.1305, allocations: 1.291 MB / 363.4 MB, free: 7.676 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.279e-05/0.1306, allocations: 8.031 kB / 363.4 MB, free: 7.668 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002054/0.1308, allocations: 156.1 kB / 363.5 MB, free: 7.508 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001575/0.1324, allocations: 250.8 kB / 363.8 MB, free: 7.262 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002168/0.1326, allocations: 254 kB / 364 MB, free: 6.973 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.541e-05/0.1327, allocations: 74 kB / 364.1 MB, free: 6.902 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001352/0.1328, allocations: 103.9 kB / 364.2 MB, free: 6.801 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001391/0.1342, allocations: 0.9227 MB / 365.1 MB, free: 5.863 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.81e-05/0.1342, allocations: 3.984 kB / 365.1 MB, free: 5.859 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.927e-05/0.1343, allocations: 44 kB / 365.1 MB, free: 5.816 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.878e-05/0.1344, allocations: 20 kB / 365.2 MB, free: 5.797 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001228/0.1356, allocations: 0.773 MB / 365.9 MB, free: 5.027 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005056/0.1407, allocations: 3.4 MB / 369.3 MB, free: 1.441 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001849/0.1425, allocations: 1.248 MB / 370.6 MB, free: 100 kB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1878/0.3303, allocations: 98.69 kB / 370.7 MB, free: 24 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.04e-05/0.3304, allocations: 41.7 kB / 370.7 MB, free: 23.96 MB / 302.1 MB Notification: Performance of pre-optimization done (n=87): time 2.736e-06/0.3304, allocations: 0 / 370.7 MB, free: 23.96 MB / 302.1 MB Notification: Performance of matching and sorting (n=87): time 0.002327/0.3328, allocations: 1.294 MB / 372 MB, free: 23.49 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.763e-05/0.3328, allocations: 91.19 kB / 372.1 MB, free: 23.4 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004646/0.3333, allocations: 362.4 kB / 372.5 MB, free: 23.29 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.61e-05/0.3333, allocations: 39.64 kB / 372.5 MB, free: 23.25 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001954/0.3335, allocations: 380.8 kB / 372.9 MB, free: 23.03 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001924/0.3337, allocations: 302.2 kB / 373.2 MB, free: 22.84 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.975e-05/0.3338, allocations: 20.69 kB / 373.2 MB, free: 22.84 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001048/0.3339, allocations: 367.5 kB / 373.5 MB, free: 22.52 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000509/0.3344, allocations: 261.3 kB / 373.8 MB, free: 22.52 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005867/0.335, allocations: 468.7 kB / 374.3 MB, free: 22.31 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005413/0.3355, allocations: 333.5 kB / 374.6 MB, free: 22.3 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.36e-06/0.3356, allocations: 3.438 kB / 374.6 MB, free: 22.3 MB / 302.1 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.001381/0.3369, allocations: 0.9678 MB / 375.6 MB, free: 21.89 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.091e-05/0.337, allocations: 8.25 kB / 375.6 MB, free: 21.89 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.208e-05/0.337, allocations: 6.297 kB / 375.6 MB, free: 21.89 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003424/0.3373, allocations: 118 kB / 375.7 MB, free: 21.84 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007723/0.3381, allocations: 207.7 kB / 375.9 MB, free: 21.82 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002788/0.3409, allocations: 5.593 MB / 381.5 MB, free: 16.26 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005477/0.3415, allocations: 100.7 kB / 381.6 MB, free: 16.19 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.8e-05/0.3415, allocations: 43.27 kB / 381.6 MB, free: 16.18 MB / 302.1 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.0002759/0.3418, allocations: 233.6 kB / 381.8 MB, free: 15.98 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.377e-05/0.3419, allocations: 53.72 kB / 381.9 MB, free: 15.95 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001273/0.3432, allocations: 0.8476 MB / 382.7 MB, free: 15.53 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.444e-06/0.3432, allocations: 8.906 kB / 382.8 MB, free: 15.53 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.903e-06/0.3432, allocations: 3.891 kB / 382.8 MB, free: 15.53 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.588e-06/0.3433, allocations: 4.125 kB / 382.8 MB, free: 15.53 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002515/0.3458, allocations: 1.931 MB / 384.7 MB, free: 14.33 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.763e-06/0.3458, allocations: 4.906 kB / 384.7 MB, free: 14.33 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005523/0.3464, allocations: 139.8 kB / 384.8 MB, free: 14.32 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002586/0.3466, allocations: 106.4 kB / 384.9 MB, free: 14.27 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.98e-05/0.3467, allocations: 20.77 kB / 385 MB, free: 14.25 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002406/0.3491, allocations: 5.326 MB / 390.3 MB, free: 8.891 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.559e-06/0.3491, allocations: 7.547 kB / 390.3 MB, free: 8.887 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001604/0.3507, allocations: 1.384 MB / 391.7 MB, free: 7.938 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001532/0.3509, allocations: 143.5 kB / 391.8 MB, free: 7.805 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.319e-05/0.351, allocations: 19.95 kB / 391.8 MB, free: 7.793 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000365/0.3513, allocations: 25.39 kB / 391.9 MB, free: 7.781 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000116/0.3514, allocations: 69.47 kB / 391.9 MB, free: 7.762 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.037e-05/0.3515, allocations: 24.34 kB / 392 MB, free: 7.758 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002608/0.3518, allocations: 254 kB / 392.2 MB, free: 7.617 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3518, allocations: 0 / 392.2 MB, free: 7.617 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0009668/0.3527, allocations: 263.1 kB / 392.5 MB, free: 7.551 MB / 302.1 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.001953/0.3547, allocations: 2.661 MB / 395.1 MB, free: 5.406 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001534/0.3562, allocations: 1.163 MB / 396.3 MB, free: 4.688 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.469e-06/0.3563, allocations: 1.438 kB / 396.3 MB, free: 4.688 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007285/0.357, allocations: 0.7965 MB / 397.1 MB, free: 4.094 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003818/0.3574, allocations: 42.67 kB / 397.1 MB, free: 4.066 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005738/0.3631, allocations: 7.326 MB / 404.5 MB, free: 14.23 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004983/0.3637, allocations: 0.9275 MB / 405.4 MB, free: 13.52 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005364/0.3642, allocations: 110.5 kB / 405.5 MB, free: 13.47 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003066/0.3645, allocations: 243.8 kB / 405.7 MB, free: 13.3 MB / 318.1 MB Notification: Performance of SimCode: time 7.41e-07/0.3645, allocations: 0 / 405.7 MB, free: 13.3 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02241/0.3869, allocations: 11.74 MB / 417.5 MB, free: 4.852 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00016/0.3871, allocations: 229.8 kB / 417.7 MB, free: 4.613 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.075/2.462, allocations: 0 / 417.7 MB, free: 4.613 MB / 318.1 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