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/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 3.2.3+maint.om/package.mo", uses=false) 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 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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008894/0.0008895, allocations: 99.58 kB / 16.95 MB, free: 6.094 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.001034/0.001034, allocations: 178.8 kB / 17.84 MB, free: 5.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.363/1.363, allocations: 205.4 MB / 224 MB, free: 13.06 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004369/0.000437, allocations: 12 kB / 280.9 MB, free: 3.609 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08739/0.08784, allocations: 47.59 MB / 328.5 MB, free: 3.949 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage): time 0.004294/0.09216, allocations: 4.424 MB / 332.9 MB, free: 15.5 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002336/0.09453, allocations: 1.574 MB / 334.5 MB, free: 13.92 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002214/0.09477, allocations: 16 kB / 334.5 MB, free: 13.9 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004278/0.0952, allocations: 198.9 kB / 334.7 MB, free: 13.71 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005544/0.09577, allocations: 262.3 kB / 334.9 MB, free: 13.45 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001212/0.09699, allocations: 0.6467 MB / 335.6 MB, free: 12.8 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007468/0.09775, allocations: 0.7545 MB / 336.3 MB, free: 12.04 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002242/0.1, allocations: 1.344 MB / 337.7 MB, free: 10.67 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003655/0.1004, allocations: 290.8 kB / 338 MB, free: 10.38 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004042/0.1008, allocations: 390.4 kB / 338.3 MB, free: 10 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.796e-05/0.1009, allocations: 36 kB / 338.4 MB, free: 9.965 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004515/0.1013, allocations: 211.8 kB / 338.6 MB, free: 9.758 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 9.581e-05/0.1014, allocations: 123.5 kB / 338.7 MB, free: 9.637 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001354/0.1016, allocations: 169.3 kB / 338.9 MB, free: 9.465 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007425/0.1023, allocations: 0.8961 MB / 339.8 MB, free: 8.566 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.572e-06/0.1023, allocations: 3.984 kB / 339.8 MB, free: 8.562 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.1023, allocations: 0 / 339.8 MB, free: 8.562 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.628e-06/0.1024, allocations: 3.938 kB / 339.8 MB, free: 8.559 MB / 286.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.003294/0.1057, allocations: 1.283 MB / 341.1 MB, free: 7.223 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.425e-05/0.1057, allocations: 8.031 kB / 341.1 MB, free: 7.215 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000184/0.1059, allocations: 156.2 kB / 341.2 MB, free: 7.055 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001519/0.1074, allocations: 258.7 kB / 341.5 MB, free: 6.801 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002303/0.1077, allocations: 250 kB / 341.7 MB, free: 6.516 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.339e-05/0.1077, allocations: 77.94 kB / 341.8 MB, free: 6.441 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001454/0.1079, allocations: 99.91 kB / 341.9 MB, free: 6.344 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001452/0.1094, allocations: 0.9302 MB / 342.8 MB, free: 5.398 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.005e-05/0.1094, allocations: 4 kB / 342.8 MB, free: 5.395 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.781e-05/0.1095, allocations: 40 kB / 342.9 MB, free: 5.355 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.261e-05/0.1095, allocations: 24 kB / 342.9 MB, free: 5.332 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001247/0.1108, allocations: 0.777 MB / 343.7 MB, free: 4.559 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00478/0.1156, allocations: 3.4 MB / 347.1 MB, free: 0.9727 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00184/0.1174, allocations: 1.259 MB / 348.3 MB, free: 15.62 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005256/0.118, allocations: 377.2 kB / 348.7 MB, free: 15.25 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001107/0.1181, allocations: 102.1 kB / 348.8 MB, free: 15.14 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.959e-05/0.1181, allocations: 43.56 kB / 348.8 MB, free: 15.09 MB / 302.1 MB Notification: Performance of pre-optimization done (n=87): time 2.955e-06/0.1181, allocations: 0 / 348.8 MB, free: 15.09 MB / 302.1 MB Notification: Performance of matching and sorting (n=87): time 0.002028/0.1202, allocations: 1.296 MB / 350.1 MB, free: 13.7 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.903e-05/0.1202, allocations: 94.08 kB / 350.2 MB, free: 13.59 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003872/0.1206, allocations: 360.3 kB / 350.6 MB, free: 13.23 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.907e-05/0.1207, allocations: 41.7 kB / 350.6 MB, free: 13.18 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002721/0.1209, allocations: 378.9 kB / 351 MB, free: 12.8 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002994/0.1213, allocations: 303.7 kB / 351.3 MB, free: 12.5 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.748e-05/0.1213, allocations: 20 kB / 351.3 MB, free: 12.48 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000176/0.1215, allocations: 358.8 kB / 351.7 MB, free: 12.12 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004784/0.122, allocations: 262.5 kB / 351.9 MB, free: 11.87 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005627/0.1226, allocations: 471.4 kB / 352.4 MB, free: 11.33 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005332/0.1231, allocations: 334.9 kB / 352.7 MB, free: 11 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.047e-06/0.1231, allocations: 4 kB / 352.7 MB, free: 11 MB / 302.1 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.001503/0.1246, allocations: 0.9689 MB / 353.7 MB, free: 10.02 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.036e-05/0.1247, allocations: 4 kB / 353.7 MB, free: 10.01 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.445e-05/0.1247, allocations: 11.98 kB / 353.7 MB, free: 10 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003487/0.125, allocations: 119.4 kB / 353.8 MB, free: 9.871 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007172/0.1258, allocations: 203.7 kB / 354 MB, free: 9.672 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003992/0.1298, allocations: 5.563 MB / 359.6 MB, free: 3.566 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005683/0.1304, allocations: 102.8 kB / 359.7 MB, free: 3.465 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.532e-05/0.1304, allocations: 40 kB / 359.7 MB, free: 3.426 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.0003533/0.1308, allocations: 237.6 kB / 359.9 MB, free: 3.184 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001149/0.1309, allocations: 55.39 kB / 360 MB, free: 3.129 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001433/0.1324, allocations: 0.8443 MB / 360.8 MB, free: 2.262 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.447e-06/0.1324, allocations: 11.94 kB / 360.8 MB, free: 2.25 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.236e-05/0.1324, allocations: 11.98 kB / 360.9 MB, free: 2.238 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.39e-05/0.1324, allocations: 3.984 kB / 360.9 MB, free: 2.234 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002782/0.1352, allocations: 1.916 MB / 362.8 MB, free: 188 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.545e-06/0.1352, allocations: 4 kB / 362.8 MB, free: 184 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005275/0.1358, allocations: 131.8 kB / 362.9 MB, free: 52 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002997/0.1361, allocations: 115.6 kB / 363 MB, free: 15.92 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.454e-05/0.1361, allocations: 20 kB / 363 MB, free: 15.9 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003518/0.1397, allocations: 5.302 MB / 368.3 MB, free: 10.08 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.719e-06/0.1397, allocations: 0 / 368.3 MB, free: 10.08 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001801/0.1415, allocations: 1.275 MB / 369.6 MB, free: 8.746 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001928/0.1417, allocations: 148.5 kB / 369.8 MB, free: 8.582 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.882e-05/0.1418, allocations: 16 kB / 369.8 MB, free: 8.566 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003691/0.1422, allocations: 20 kB / 369.8 MB, free: 8.547 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000107/0.1423, allocations: 64.52 kB / 369.9 MB, free: 8.484 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.637e-05/0.1423, allocations: 31.98 kB / 369.9 MB, free: 8.453 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002896/0.1426, allocations: 255.2 kB / 370.1 MB, free: 8.207 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1427, allocations: 0 / 370.1 MB, free: 8.207 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001088/0.1437, allocations: 255.4 kB / 370.4 MB, free: 7.957 MB / 318.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.002202/0.146, allocations: 1.857 MB / 372.2 MB, free: 6.035 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001972/0.1479, allocations: 1.161 MB / 373.4 MB, free: 4.812 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.788e-06/0.148, allocations: 0 / 373.4 MB, free: 4.812 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009202/0.1489, allocations: 0.7885 MB / 374.2 MB, free: 3.977 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006327/0.1495, allocations: 65.38 kB / 374.3 MB, free: 3.914 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006006/0.1556, allocations: 3.679 MB / 377.9 MB, free: 68 kB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1902/0.3458, allocations: 0.9155 MB / 378.9 MB, free: 50.81 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0006994/0.3465, allocations: 103.7 kB / 379 MB, free: 50.81 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004218/0.3469, allocations: 242.8 kB / 379.2 MB, free: 50.8 MB / 318.1 MB Notification: Performance of SimCode: time 1.393e-06/0.347, allocations: 0 / 379.2 MB, free: 50.8 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02871/0.3757, allocations: 11.76 MB / 391 MB, free: 47.49 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002413/0.376, allocations: 236 kB / 391.2 MB, free: 47.25 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.26/2.636, allocations: 0 / 391.2 MB, free: 47.25 MB / 318.1 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) Environment - environmentSimulation: 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