Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.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.BasicExamples.ToroidalCoreQuadraticCrossSection,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection",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.001098/0.001098, allocations: 88.39 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.001243/0.001243, allocations: 183.1 kB / 17.21 MB, free: 6.324 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.349/1.349, allocations: 223.3 MB / 241.2 MB, free: 5.414 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003019/0.000302, allocations: 5.938 kB / 300.9 MB, free: 5.973 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1154/0.1157, allocations: 50.43 MB / 351.4 MB, free: 11.55 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection): time 0.004891/0.1206, allocations: 4.321 MB / 355.7 MB, free: 7.207 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00303/0.1237, allocations: 1.885 MB / 357.6 MB, free: 5.316 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002296/0.124, allocations: 16 kB / 357.6 MB, free: 5.301 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005265/0.1245, allocations: 230.9 kB / 357.8 MB, free: 5.074 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001088/0.1256, allocations: 473.8 kB / 358.3 MB, free: 4.609 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001589/0.1272, allocations: 0.8536 MB / 359.1 MB, free: 3.758 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007372/0.1279, allocations: 0.677 MB / 359.8 MB, free: 3.078 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001947/0.1299, allocations: 1.135 MB / 360.9 MB, free: 1.918 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004313/0.1303, allocations: 278.8 kB / 361.2 MB, free: 1.645 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004039/0.1307, allocations: 366.6 kB / 361.6 MB, free: 1.285 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.111e-05/0.1308, allocations: 32 kB / 361.6 MB, free: 1.254 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007945/0.1316, allocations: 343.6 kB / 361.9 MB, free: 0.918 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001017/0.1317, allocations: 127.4 kB / 362.1 MB, free: 0.793 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001399/0.1319, allocations: 153.3 kB / 362.2 MB, free: 0.6367 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00104/0.1329, allocations: 0.8842 MB / 363.1 MB, free: 15.75 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.371e-05/0.1329, allocations: 3.984 kB / 363.1 MB, free: 15.75 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.806e-06/0.133, allocations: 3.938 kB / 363.1 MB, free: 15.74 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.035e-05/0.133, allocations: 4 kB / 363.1 MB, free: 15.74 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: 212 * Number of variables: 212 Notification: Performance of Generate backend data structure: time 0.003995/0.137, allocations: 1.334 MB / 364.4 MB, free: 14.35 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.668e-05/0.137, allocations: 12.03 kB / 364.4 MB, free: 14.34 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001615/0.1372, allocations: 131.2 kB / 364.6 MB, free: 14.2 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002364/0.1396, allocations: 398.7 kB / 365 MB, free: 13.81 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003005/0.1399, allocations: 242.2 kB / 365.2 MB, free: 13.54 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.581e-05/0.14, allocations: 65.98 kB / 365.3 MB, free: 13.47 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001277/0.1401, allocations: 87.89 kB / 365.3 MB, free: 13.39 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001613/0.1417, allocations: 0.8836 MB / 366.2 MB, free: 12.49 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.686e-05/0.1417, allocations: 7.984 kB / 366.2 MB, free: 12.48 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.485e-05/0.1418, allocations: 32 kB / 366.3 MB, free: 12.45 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.773e-05/0.1419, allocations: 20 kB / 366.3 MB, free: 12.43 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001696/0.1436, allocations: 0.8315 MB / 367.1 MB, free: 11.6 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004135/0.1477, allocations: 2.954 MB / 370.1 MB, free: 8.453 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001191/0.1489, allocations: 1.012 MB / 371.1 MB, free: 7.32 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005018/0.1494, allocations: 254.4 kB / 371.3 MB, free: 7.07 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001108/0.1496, allocations: 101.6 kB / 371.4 MB, free: 6.953 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.191e-05/0.1496, allocations: 39.12 kB / 371.5 MB, free: 6.906 MB / 302.1 MB Notification: Performance of pre-optimization done (n=58): time 2.735e-06/0.1496, allocations: 4 kB / 371.5 MB, free: 6.902 MB / 302.1 MB Notification: Performance of matching and sorting (n=61): time 0.007663/0.1573, allocations: 2.685 MB / 374.2 MB, free: 4.125 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.261e-05/0.1574, allocations: 89.62 kB / 374.2 MB, free: 4.02 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003549/0.1577, allocations: 316.3 kB / 374.6 MB, free: 3.703 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.281e-05/0.1578, allocations: 37.7 kB / 374.6 MB, free: 3.66 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002292/0.158, allocations: 362.5 kB / 374.9 MB, free: 3.297 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001475/0.1582, allocations: 209 kB / 375.2 MB, free: 3.09 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.807e-05/0.1582, allocations: 16 kB / 375.2 MB, free: 3.074 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001373/0.1584, allocations: 350.8 kB / 375.5 MB, free: 2.723 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007437/0.1591, allocations: 293.8 kB / 375.8 MB, free: 2.438 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008809/0.16, allocations: 0.5355 MB / 376.3 MB, free: 1.797 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008658/0.1609, allocations: 354 kB / 376.7 MB, free: 1.449 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.677e-06/0.1609, allocations: 4 kB / 376.7 MB, free: 1.445 MB / 302.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002063/0.163, allocations: 0.9456 MB / 377.6 MB, free: 496 kB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.655e-05/0.163, allocations: 8 kB / 377.6 MB, free: 488 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.341e-05/0.163, allocations: 11.94 kB / 377.6 MB, free: 476 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002596/0.1633, allocations: 69.67 kB / 377.7 MB, free: 400 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008428/0.1641, allocations: 219.7 kB / 377.9 MB, free: 180 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002145/0.1663, allocations: 2.656 MB / 380.6 MB, free: 13.25 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006851/0.167, allocations: 80.06 kB / 380.7 MB, free: 13.18 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.114e-05/0.1671, allocations: 35.98 kB / 380.7 MB, free: 13.14 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * 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 (95): * Single equations (assignments): 93 * 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%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003347/0.1674, allocations: 225.5 kB / 380.9 MB, free: 12.91 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.734e-05/0.1675, allocations: 39.53 kB / 381 MB, free: 12.87 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001996/0.1695, allocations: 0.7936 MB / 381.8 MB, free: 12.07 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.438e-06/0.1695, allocations: 11.95 kB / 381.8 MB, free: 12.05 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.681e-06/0.1695, allocations: 4 kB / 381.8 MB, free: 12.05 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.785e-06/0.1696, allocations: 3.984 kB / 381.8 MB, free: 12.05 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002562/0.1721, allocations: 1.469 MB / 383.2 MB, free: 10.52 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.067e-06/0.1721, allocations: 0 / 383.2 MB, free: 10.52 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000639/0.1728, allocations: 143.8 kB / 383.4 MB, free: 10.38 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001736/0.173, allocations: 61.61 kB / 383.4 MB, free: 10.31 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.939e-05/0.173, allocations: 19.98 kB / 383.5 MB, free: 10.29 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001758/0.1748, allocations: 2.655 MB / 386.1 MB, free: 7.367 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.454e-06/0.1748, allocations: 3.984 kB / 386.1 MB, free: 7.363 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002486/0.1773, allocations: 1.148 MB / 387.3 MB, free: 6.191 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002378/0.1775, allocations: 168.5 kB / 387.4 MB, free: 6.008 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.413e-05/0.1776, allocations: 12 kB / 387.4 MB, free: 5.996 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004737/0.1781, allocations: 56.02 kB / 387.5 MB, free: 5.941 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001218/0.1782, allocations: 52.48 kB / 387.5 MB, free: 5.891 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.012e-05/0.1783, allocations: 19.98 kB / 387.6 MB, free: 5.871 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002405/0.1785, allocations: 219.1 kB / 387.8 MB, free: 5.66 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1785, allocations: 0 / 387.8 MB, free: 5.66 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000802/0.1793, allocations: 176 kB / 388 MB, free: 5.488 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (currentSource.pin_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 (58): * Single equations (assignments): 56 * 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%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002898/0.1822, allocations: 1.753 MB / 389.7 MB, free: 3.699 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002026/0.1843, allocations: 0.9592 MB / 390.7 MB, free: 2.711 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.1843, allocations: 0 / 390.7 MB, free: 2.711 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001073/0.1854, allocations: 0.5747 MB / 391.2 MB, free: 2.113 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004552/0.1858, allocations: 45.03 kB / 391.3 MB, free: 2.07 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0065/0.1924, allocations: 3.5 MB / 394.8 MB, free: 14.42 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005265/0.1929, allocations: 0.8849 MB / 395.7 MB, free: 13.51 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0005117/0.1935, allocations: 96.5 kB / 395.8 MB, free: 13.41 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000331/0.1938, allocations: 231.3 kB / 396 MB, free: 13.18 MB / 334.1 MB Notification: Performance of SimCode: time 3.025e-06/0.1938, allocations: 0 / 396 MB, free: 13.18 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02365/0.2175, allocations: 10.37 MB / 406.4 MB, free: 3.078 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002146/0.2177, allocations: 258.5 kB / 406.6 MB, free: 2.727 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.122/2.339, allocations: 0 / 406.6 MB, free: 2.727 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection_fmu --startTime=0 --stopTime=0.05 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection_res.mat does not exist to compare? outputFormat=mat