Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CuboidSections.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.FixedShapes.CuboidSections,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_FixedShapes_CuboidSections",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CuboidSections,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_FixedShapes_CuboidSections",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.0009543/0.0009543, allocations: 85.2 kB / 16.31 MB, free: 6.453 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.001031/0.001031, allocations: 175.8 kB / 17.2 MB, free: 6.328 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.376/1.376, allocations: 223.2 MB / 241.2 MB, free: 14.59 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002813/0.0002814, allocations: 4 kB / 300.9 MB, free: 6.102 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1124/0.1127, allocations: 50.42 MB / 351.3 MB, free: 3.668 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CuboidSections): time 0.004081/0.1168, allocations: 3.668 MB / 355 MB, free: 15.98 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002769/0.1196, allocations: 1.503 MB / 356.5 MB, free: 14.47 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005121/0.1202, allocations: 12 kB / 356.5 MB, free: 14.46 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007376/0.1209, allocations: 167.1 kB / 356.7 MB, free: 14.29 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009377/0.1219, allocations: 210.7 kB / 356.9 MB, free: 14.09 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001555/0.1234, allocations: 0.6539 MB / 357.6 MB, free: 13.43 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008444/0.1243, allocations: 0.587 MB / 358.1 MB, free: 12.84 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001604/0.1259, allocations: 0.8297 MB / 359 MB, free: 11.98 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003728/0.1263, allocations: 223.1 kB / 359.2 MB, free: 11.76 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003461/0.1267, allocations: 302.8 kB / 359.5 MB, free: 11.46 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.925e-05/0.1267, allocations: 28 kB / 359.5 MB, free: 11.44 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004977/0.1272, allocations: 227.7 kB / 359.7 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.448e-05/0.1273, allocations: 107.5 kB / 359.8 MB, free: 11.11 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001097/0.1274, allocations: 133.4 kB / 360 MB, free: 10.97 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006771/0.1281, allocations: 0.7247 MB / 360.7 MB, free: 10.25 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.117e-06/0.1281, allocations: 3.984 kB / 360.7 MB, free: 10.24 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1281, allocations: 0 / 360.7 MB, free: 10.24 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.514e-06/0.1282, allocations: 0 / 360.7 MB, free: 10.24 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: 188 * Number of variables: 188 Notification: Performance of Generate backend data structure: time 0.003152/0.1313, allocations: 1.155 MB / 361.9 MB, free: 9.035 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.462e-05/0.1314, allocations: 8.031 kB / 361.9 MB, free: 9.027 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001311/0.1315, allocations: 122.5 kB / 362 MB, free: 8.898 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001294/0.1328, allocations: 207.1 kB / 362.2 MB, free: 8.695 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002087/0.133, allocations: 250 kB / 362.4 MB, free: 8.41 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.565e-05/0.1331, allocations: 54 kB / 362.5 MB, free: 8.359 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.813e-05/0.1332, allocations: 72 kB / 362.5 MB, free: 8.289 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001293/0.1345, allocations: 0.7698 MB / 363.3 MB, free: 7.5 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.361e-05/0.1345, allocations: 3.906 kB / 363.3 MB, free: 7.496 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.25e-05/0.1346, allocations: 32 kB / 363.4 MB, free: 7.465 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.753e-05/0.1346, allocations: 23.98 kB / 363.4 MB, free: 7.441 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001245/0.1359, allocations: 0.6767 MB / 364.1 MB, free: 6.762 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003765/0.1396, allocations: 3.118 MB / 367.2 MB, free: 3.383 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00216/0.1418, allocations: 2.083 MB / 369.3 MB, free: 1.004 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006007/0.1424, allocations: 331.5 kB / 369.6 MB, free: 0.6758 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001137/0.1425, allocations: 101.7 kB / 369.7 MB, free: 0.5547 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.76e-05/0.1426, allocations: 39.22 kB / 369.7 MB, free: 0.5078 MB / 302.1 MB Notification: Performance of pre-optimization done (n=72): time 2.675e-06/0.1426, allocations: 0 / 369.7 MB, free: 0.5078 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.2077/0.3503, allocations: 1.167 MB / 370.9 MB, free: 24.16 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.678e-05/0.3504, allocations: 111.1 kB / 371 MB, free: 24.04 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005722/0.351, allocations: 270.7 kB / 371.3 MB, free: 23.93 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.69e-05/0.3511, allocations: 37.52 kB / 371.3 MB, free: 23.9 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000305/0.3514, allocations: 303.3 kB / 371.6 MB, free: 23.72 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002535/0.3516, allocations: 241.4 kB / 371.8 MB, free: 23.57 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.606e-05/0.3517, allocations: 18.02 kB / 371.8 MB, free: 23.57 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000138/0.3518, allocations: 354.8 kB / 372.2 MB, free: 23.25 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006001/0.3524, allocations: 240.3 kB / 372.4 MB, free: 23.25 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006031/0.3531, allocations: 394.3 kB / 372.8 MB, free: 23.1 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005741/0.3536, allocations: 292.2 kB / 373.1 MB, free: 23.09 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.811e-06/0.3537, allocations: 1.906 kB / 373.1 MB, free: 23.09 MB / 302.1 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.001881/0.3555, allocations: 0.8522 MB / 373.9 MB, free: 22.96 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.405e-05/0.3556, allocations: 6.656 kB / 374 MB, free: 22.96 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.12e-05/0.3556, allocations: 4.359 kB / 374 MB, free: 22.96 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004981/0.3561, allocations: 125 kB / 374.1 MB, free: 22.94 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006262/0.3568, allocations: 163.3 kB / 374.2 MB, free: 22.93 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002489/0.3593, allocations: 3.419 MB / 377.7 MB, free: 19.9 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005052/0.3598, allocations: 89.42 kB / 377.7 MB, free: 19.85 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.642e-05/0.3598, allocations: 34.58 kB / 377.8 MB, free: 19.84 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * 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 (86): * Single equations (assignments): 84 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 7,(1,100.0%) 7} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002389/0.3601, allocations: 190.7 kB / 378 MB, free: 19.67 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.151e-05/0.3602, allocations: 43.69 kB / 378 MB, free: 19.65 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001508/0.3617, allocations: 0.7685 MB / 378.8 MB, free: 19.31 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.717e-06/0.3617, allocations: 7.625 kB / 378.8 MB, free: 19.31 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.3617, allocations: 3.625 kB / 378.8 MB, free: 19.31 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.069e-05/0.3617, allocations: 4.984 kB / 378.8 MB, free: 19.31 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00235/0.3641, allocations: 1.515 MB / 380.3 MB, free: 18.5 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.659e-06/0.3641, allocations: 0 / 380.3 MB, free: 18.5 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005015/0.3646, allocations: 120 kB / 380.4 MB, free: 18.49 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00028/0.3649, allocations: 108.3 kB / 380.5 MB, free: 18.45 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.735e-05/0.365, allocations: 20.3 kB / 380.6 MB, free: 18.45 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001937/0.3669, allocations: 3.11 MB / 383.7 MB, free: 15.54 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.836e-06/0.3669, allocations: 4.938 kB / 383.7 MB, free: 15.54 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001772/0.3687, allocations: 1.146 MB / 384.8 MB, free: 14.94 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.764e-05/0.3688, allocations: 123.5 kB / 384.9 MB, free: 14.82 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.409e-05/0.3689, allocations: 16.09 kB / 385 MB, free: 14.81 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003822/0.3693, allocations: 33.09 kB / 385 MB, free: 14.8 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001239/0.3694, allocations: 61.39 kB / 385 MB, free: 14.79 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.821e-05/0.3694, allocations: 18.47 kB / 385.1 MB, free: 14.78 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001798/0.3696, allocations: 189.5 kB / 385.2 MB, free: 14.67 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.3696, allocations: 0 / 385.2 MB, free: 14.67 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008728/0.3705, allocations: 217.5 kB / 385.5 MB, free: 14.61 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (source.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 (60): * Single equations (assignments): 58 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(1,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002316/0.3728, allocations: 1.737 MB / 387.2 MB, free: 13.46 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001752/0.3746, allocations: 0.894 MB / 388.1 MB, free: 13.01 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.3746, allocations: 128 / 388.1 MB, free: 13.01 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008268/0.3755, allocations: 0.5723 MB / 388.7 MB, free: 12.66 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005222/0.376, allocations: 47.44 kB / 388.7 MB, free: 12.62 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004972/0.381, allocations: 3.061 MB / 391.8 MB, free: 10.91 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004019/0.3814, allocations: 0.8681 MB / 392.6 MB, free: 10.2 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004118/0.3818, allocations: 79.78 kB / 392.7 MB, free: 10.17 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002773/0.3821, allocations: 204.3 kB / 392.9 MB, free: 10.02 MB / 302.1 MB Notification: Performance of SimCode: time 7.12e-07/0.3821, allocations: 0 / 392.9 MB, free: 10.02 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02331/0.4054, allocations: 9.776 MB / 402.7 MB, free: 4.695 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001753/0.4056, allocations: 243.1 kB / 402.9 MB, free: 4.449 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.078/2.483, allocations: 0 / 402.9 MB, free: 4.449 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CuboidSections.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CuboidSections.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CuboidSections.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CuboidSections.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CuboidSections_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_FixedShapes_CuboidSections_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_FixedShapes_CuboidSections.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CuboidSections.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.FixedShapes.CuboidSections_res.mat does not exist to compare? outputFormat=mat