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.0009514/0.0009514, allocations: 84.78 kB / 16.31 MB, free: 6.449 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.001155/0.001155, allocations: 180.2 kB / 17.21 MB, free: 6.32 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.443/1.443, allocations: 223.3 MB / 241.2 MB, free: 5.41 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002963/0.0002964, allocations: 7.281 kB / 300.9 MB, free: 6.012 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1085/0.1088, allocations: 50.42 MB / 351.3 MB, free: 11.57 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.Leakage.CylinderLeakage): time 0.005641/0.1145, allocations: 4.465 MB / 355.8 MB, free: 7.09 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003292/0.1178, allocations: 1.534 MB / 357.3 MB, free: 5.547 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003593/0.1182, allocations: 16 kB / 357.4 MB, free: 5.531 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005543/0.1188, allocations: 198.9 kB / 357.6 MB, free: 5.336 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007689/0.1196, allocations: 262.3 kB / 357.8 MB, free: 5.078 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001541/0.1211, allocations: 0.6566 MB / 358.5 MB, free: 4.422 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001089/0.1222, allocations: 0.7417 MB / 359.2 MB, free: 3.68 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002647/0.1249, allocations: 1.36 MB / 360.6 MB, free: 2.285 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004671/0.1254, allocations: 282.8 kB / 360.8 MB, free: 2.008 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004452/0.1258, allocations: 390.4 kB / 361.2 MB, free: 1.625 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 7.116e-05/0.1259, allocations: 36 kB / 361.3 MB, free: 1.59 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005673/0.1265, allocations: 215.7 kB / 361.5 MB, free: 1.379 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001045/0.1266, allocations: 131.4 kB / 361.6 MB, free: 1.25 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001671/0.1268, allocations: 169.3 kB / 361.8 MB, free: 1.078 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009179/0.1277, allocations: 0.9035 MB / 362.7 MB, free: 176 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.1277, allocations: 0 / 362.7 MB, free: 176 kB / 286.1 MB Notification: Performance of FrontEnd: time 2.855e-06/0.1277, allocations: 0 / 362.7 MB, free: 176 kB / 286.1 MB Notification: Performance of Transformations before backend: time 1.098e-05/0.1277, allocations: 3.938 kB / 362.7 MB, free: 172 kB / 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.00353/0.1313, allocations: 1.291 MB / 364 MB, free: 14.82 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.575e-05/0.1313, allocations: 16.02 kB / 364 MB, free: 14.81 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001973/0.1315, allocations: 144.2 kB / 364.1 MB, free: 14.66 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001587/0.1331, allocations: 258.8 kB / 364.4 MB, free: 14.41 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002748/0.1334, allocations: 250 kB / 364.6 MB, free: 14.12 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.554e-05/0.1335, allocations: 70 kB / 364.7 MB, free: 14.05 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001499/0.1336, allocations: 111.9 kB / 364.8 MB, free: 13.95 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001553/0.1352, allocations: 0.9227 MB / 365.7 MB, free: 13.01 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.113e-05/0.1352, allocations: 7.984 kB / 365.7 MB, free: 13 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.412e-05/0.1353, allocations: 36 kB / 365.8 MB, free: 12.96 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.258e-05/0.1353, allocations: 24 kB / 365.8 MB, free: 12.94 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001283/0.1366, allocations: 0.7769 MB / 366.6 MB, free: 12.17 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005039/0.1417, allocations: 3.396 MB / 370 MB, free: 8.586 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001814/0.1435, allocations: 1.248 MB / 371.2 MB, free: 7.242 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005188/0.1441, allocations: 373.1 kB / 371.6 MB, free: 6.875 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001377/0.1442, allocations: 98.08 kB / 371.7 MB, free: 6.762 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.519e-05/0.1443, allocations: 47.56 kB / 371.7 MB, free: 6.707 MB / 302.1 MB Notification: Performance of pre-optimization done (n=87): time 3.627e-06/0.1443, allocations: 0 / 371.7 MB, free: 6.707 MB / 302.1 MB Notification: Performance of matching and sorting (n=87): time 0.00209/0.1464, allocations: 1.3 MB / 373 MB, free: 5.312 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.881e-05/0.1464, allocations: 86.11 kB / 373.1 MB, free: 5.211 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004144/0.1469, allocations: 380.2 kB / 373.5 MB, free: 4.836 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.758e-05/0.1469, allocations: 33.7 kB / 373.5 MB, free: 4.797 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002339/0.1471, allocations: 386.9 kB / 373.9 MB, free: 4.41 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002028/0.1474, allocations: 295.7 kB / 374.2 MB, free: 4.117 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.097e-05/0.1474, allocations: 20 kB / 374.2 MB, free: 4.098 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001509/0.1476, allocations: 358.8 kB / 374.5 MB, free: 3.738 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000411/0.148, allocations: 262.5 kB / 374.8 MB, free: 3.48 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005421/0.1485, allocations: 471.4 kB / 375.3 MB, free: 2.945 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005111/0.149, allocations: 334.9 kB / 375.6 MB, free: 2.617 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.231e-06/0.1491, allocations: 4 kB / 375.6 MB, free: 2.613 MB / 302.1 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.00148/0.1505, allocations: 0.9651 MB / 376.6 MB, free: 1.629 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.092e-05/0.1506, allocations: 12 kB / 376.6 MB, free: 1.617 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.112e-05/0.1506, allocations: 4 kB / 376.6 MB, free: 1.613 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003604/0.151, allocations: 119.4 kB / 376.7 MB, free: 1.484 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007363/0.1517, allocations: 215.6 kB / 376.9 MB, free: 1.273 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003691/0.1554, allocations: 5.555 MB / 382.4 MB, free: 11.18 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005906/0.156, allocations: 106.8 kB / 382.6 MB, free: 11.08 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.002e-05/0.1561, allocations: 39.98 kB / 382.6 MB, free: 11.04 MB / 318.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.0003404/0.1564, allocations: 226.1 kB / 382.8 MB, free: 10.81 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000102/0.1566, allocations: 47.44 kB / 382.9 MB, free: 10.76 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001425/0.158, allocations: 0.8521 MB / 383.7 MB, free: 9.887 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.347e-06/0.158, allocations: 15.89 kB / 383.7 MB, free: 9.871 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.158, allocations: 0 / 383.7 MB, free: 9.871 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.065e-06/0.158, allocations: 7.984 kB / 383.7 MB, free: 9.863 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002788/0.1608, allocations: 1.933 MB / 385.7 MB, free: 7.797 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.771e-06/0.1608, allocations: 0 / 385.7 MB, free: 7.797 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005337/0.1614, allocations: 139.8 kB / 385.8 MB, free: 7.66 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002771/0.1617, allocations: 111.5 kB / 385.9 MB, free: 7.539 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.03e-05/0.1617, allocations: 16 kB / 385.9 MB, free: 7.523 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004244/0.166, allocations: 5.302 MB / 391.2 MB, free: 1.691 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.446e-06/0.166, allocations: 8.062 kB / 391.2 MB, free: 1.684 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002049/0.1681, allocations: 1.264 MB / 392.5 MB, free: 372 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002232/0.1683, allocations: 140.2 kB / 392.6 MB, free: 212 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.973e-05/0.1684, allocations: 20 kB / 392.7 MB, free: 192 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003543/0.1688, allocations: 32 kB / 392.7 MB, free: 160 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001224/0.1689, allocations: 60.52 kB / 392.7 MB, free: 100 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.131e-05/0.1689, allocations: 24 kB / 392.8 MB, free: 76 kB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003493/0.1693, allocations: 255.2 kB / 393 MB, free: 15.82 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1693, allocations: 0 / 393 MB, free: 15.82 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001112/0.1704, allocations: 263.4 kB / 393.3 MB, free: 15.56 MB / 334.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.002253/0.1727, allocations: 1.855 MB / 395.1 MB, free: 13.64 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001748/0.1744, allocations: 1.165 MB / 396.3 MB, free: 12.43 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.28e-06/0.1745, allocations: 384 / 396.3 MB, free: 12.43 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009042/0.1754, allocations: 0.7913 MB / 397.1 MB, free: 11.59 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005896/0.176, allocations: 57.66 kB / 397.1 MB, free: 11.53 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005308/0.1813, allocations: 3.691 MB / 400.8 MB, free: 7.684 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004988/0.1818, allocations: 0.911 MB / 401.7 MB, free: 6.746 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0005184/0.1823, allocations: 109.1 kB / 401.9 MB, free: 6.637 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003292/0.1827, allocations: 243.4 kB / 402.1 MB, free: 6.398 MB / 334.1 MB Notification: Performance of SimCode: time 6.91e-07/0.1827, allocations: 0 / 402.1 MB, free: 6.398 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02667/0.2094, allocations: 11.78 MB / 413.9 MB, free: 10.85 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000211/0.2096, allocations: 239.4 kB / 414.1 MB, free: 10.61 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.214/2.424, allocations: 4 kB / 414.1 MB, free: 10.6 MB / 350.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