Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.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.ToroidalCoreAirgap,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap",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.001167/0.001167, allocations: 91.84 kB / 16.3 MB, free: 5.996 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.001433/0.001433, allocations: 187.2 kB / 17.2 MB, free: 5.91 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.369/1.369, allocations: 223.2 MB / 241.1 MB, free: 5.473 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002464/0.0002465, allocations: 10.39 kB / 300.8 MB, free: 6.035 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1045/0.1048, allocations: 50.42 MB / 351.2 MB, free: 11.65 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.005852/0.1107, allocations: 4.049 MB / 355.3 MB, free: 7.582 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004099/0.1149, allocations: 1.885 MB / 357.2 MB, free: 5.688 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003333/0.1153, allocations: 16 kB / 357.2 MB, free: 5.672 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000765/0.116, allocations: 230.7 kB / 357.4 MB, free: 5.445 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001462/0.1175, allocations: 494.4 kB / 357.9 MB, free: 4.961 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001754/0.1193, allocations: 0.8639 MB / 358.8 MB, free: 4.098 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000981/0.1203, allocations: 0.5016 MB / 359.3 MB, free: 3.598 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002089/0.1224, allocations: 1.094 MB / 360.4 MB, free: 2.477 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006177/0.123, allocations: 275 kB / 360.6 MB, free: 2.207 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004636/0.1235, allocations: 350.6 kB / 361 MB, free: 1.863 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.843e-05/0.1235, allocations: 32 kB / 361 MB, free: 1.832 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009857/0.1245, allocations: 311.5 kB / 361.3 MB, free: 1.527 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001228/0.1247, allocations: 123.5 kB / 361.4 MB, free: 1.406 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001566/0.1248, allocations: 145.4 kB / 361.6 MB, free: 1.258 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001038/0.1259, allocations: 0.8726 MB / 362.4 MB, free: 392 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.1259, allocations: 0 / 362.4 MB, free: 392 kB / 286.1 MB Notification: Performance of FrontEnd: time 2.946e-06/0.1259, allocations: 0 / 362.4 MB, free: 392 kB / 286.1 MB Notification: Performance of Transformations before backend: time 9.357e-06/0.1259, allocations: 3.938 kB / 362.4 MB, free: 388 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: 212 * Number of variables: 212 Notification: Performance of Generate backend data structure: time 0.004232/0.1302, allocations: 1.327 MB / 363.8 MB, free: 15 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.775e-05/0.1302, allocations: 8.031 kB / 363.8 MB, free: 14.99 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001863/0.1304, allocations: 135.2 kB / 363.9 MB, free: 14.85 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00252/0.1329, allocations: 390.7 kB / 364.3 MB, free: 14.46 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002894/0.1332, allocations: 250.8 kB / 364.5 MB, free: 14.18 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.118e-05/0.1333, allocations: 66 kB / 364.6 MB, free: 14.11 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001731/0.1335, allocations: 83.78 kB / 364.7 MB, free: 14.04 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001695/0.1352, allocations: 0.8758 MB / 365.6 MB, free: 13.14 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.555e-05/0.1353, allocations: 4 kB / 365.6 MB, free: 13.14 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.624e-05/0.1353, allocations: 32 kB / 365.6 MB, free: 13.11 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.952e-05/0.1354, allocations: 20 kB / 365.6 MB, free: 13.09 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001827/0.1372, allocations: 0.8315 MB / 366.4 MB, free: 12.26 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004549/0.1418, allocations: 2.962 MB / 369.4 MB, free: 9.105 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001274/0.1431, allocations: 1.018 MB / 370.4 MB, free: 7.969 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001217/0.1432, allocations: 101.6 kB / 370.5 MB, free: 7.852 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.15e-05/0.1433, allocations: 35.12 kB / 370.6 MB, free: 7.809 MB / 302.1 MB Notification: Performance of pre-optimization done (n=58): time 2.375e-06/0.1433, allocations: 0 / 370.6 MB, free: 7.809 MB / 302.1 MB Notification: Performance of matching and sorting (n=61): time 0.008332/0.1516, allocations: 2.674 MB / 373.2 MB, free: 5.043 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.928e-05/0.1517, allocations: 97.61 kB / 373.3 MB, free: 4.93 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003705/0.1521, allocations: 295.1 kB / 373.6 MB, free: 4.633 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.598e-05/0.1521, allocations: 37.7 kB / 373.7 MB, free: 4.59 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000202/0.1524, allocations: 362.6 kB / 374 MB, free: 4.227 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001575/0.1525, allocations: 212.9 kB / 374.2 MB, free: 4.016 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.762e-05/0.1526, allocations: 16 kB / 374.2 MB, free: 4 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001556/0.1527, allocations: 350.8 kB / 374.6 MB, free: 3.648 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007812/0.1535, allocations: 293.8 kB / 374.9 MB, free: 3.363 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009568/0.1545, allocations: 0.5199 MB / 375.4 MB, free: 2.738 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008827/0.1554, allocations: 358 kB / 375.7 MB, free: 2.391 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.274e-05/0.1554, allocations: 4 kB / 375.7 MB, free: 2.387 MB / 302.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002133/0.1575, allocations: 0.9413 MB / 376.7 MB, free: 1.43 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.654e-05/0.1576, allocations: 16.25 kB / 376.7 MB, free: 1.414 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.183e-05/0.1576, allocations: 11.94 kB / 376.7 MB, free: 1.402 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002551/0.1579, allocations: 69.67 kB / 376.8 MB, free: 1.328 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008635/0.1587, allocations: 215.7 kB / 377 MB, free: 1.117 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002155/0.1609, allocations: 2.679 MB / 379.7 MB, free: 14.17 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006976/0.1616, allocations: 71.86 kB / 379.7 MB, free: 14.1 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.969e-05/0.1617, allocations: 43.98 kB / 379.8 MB, free: 14.05 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.0003221/0.162, allocations: 217.6 kB / 380 MB, free: 13.83 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.564e-05/0.1621, allocations: 39.53 kB / 380 MB, free: 13.79 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00198/0.1641, allocations: 0.786 MB / 380.8 MB, free: 12.99 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.424e-06/0.1641, allocations: 11.95 kB / 380.8 MB, free: 12.98 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.166e-06/0.1641, allocations: 0 / 380.8 MB, free: 12.98 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.195e-06/0.1641, allocations: 3.984 kB / 380.8 MB, free: 12.98 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002787/0.1669, allocations: 1.465 MB / 382.3 MB, free: 11.45 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.6e-06/0.167, allocations: 0 / 382.3 MB, free: 11.45 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006784/0.1676, allocations: 151.8 kB / 382.4 MB, free: 11.3 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001878/0.1678, allocations: 53.67 kB / 382.5 MB, free: 11.25 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.344e-05/0.1679, allocations: 19.98 kB / 382.5 MB, free: 11.23 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001966/0.1699, allocations: 2.667 MB / 385.2 MB, free: 8.297 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.1699, allocations: 0 / 385.2 MB, free: 8.297 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002711/0.1726, allocations: 1.148 MB / 386.3 MB, free: 7.125 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002594/0.1729, allocations: 168.6 kB / 386.5 MB, free: 6.941 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.65e-05/0.173, allocations: 8 kB / 386.5 MB, free: 6.934 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005093/0.1735, allocations: 64.02 kB / 386.6 MB, free: 6.871 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001151/0.1736, allocations: 52.42 kB / 386.6 MB, free: 6.82 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.654e-05/0.1736, allocations: 19.98 kB / 386.6 MB, free: 6.801 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002132/0.1739, allocations: 207.1 kB / 386.8 MB, free: 6.598 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1739, allocations: 0 / 386.8 MB, free: 6.598 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007501/0.1746, allocations: 172 kB / 387 MB, free: 6.43 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.003074/0.1777, allocations: 1.744 MB / 388.7 MB, free: 4.645 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002203/0.1799, allocations: 0.967 MB / 389.7 MB, free: 3.652 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.1799, allocations: 0 / 389.7 MB, free: 3.652 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001086/0.181, allocations: 0.5746 MB / 390.3 MB, free: 3.055 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003627/0.1814, allocations: 38.09 kB / 390.3 MB, free: 3.02 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008573/0.19, allocations: 8.285 MB / 398.6 MB, free: 10.54 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005012/0.1905, allocations: 0.8967 MB / 399.5 MB, free: 9.621 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0004936/0.191, allocations: 92.52 kB / 399.6 MB, free: 9.527 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003379/0.1914, allocations: 223.3 kB / 399.8 MB, free: 9.309 MB / 334.1 MB Notification: Performance of SimCode: time 1.363e-06/0.1914, allocations: 0 / 399.8 MB, free: 9.309 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02405/0.2154, allocations: 10.2 MB / 410 MB, free: 15.35 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001841/0.2157, allocations: 248.1 kB / 410.3 MB, free: 15.1 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.047/2.263, allocations: 0 / 410.3 MB, free: 15.1 MB / 350.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap_fmu --startTime=0 --stopTime=0.05 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.mat does not exist to compare? outputFormat=mat