Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.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.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_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.0007956/0.0007958, allocations: 87.11 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.0009426/0.0009427, allocations: 178.3 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.307/1.307, allocations: 223.2 MB / 241.2 MB, free: 292 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002991/0.0002992, allocations: 8 kB / 300.9 MB, free: 6.328 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1033/0.1036, allocations: 50.42 MB / 351.3 MB, free: 3.895 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.002934/0.1066, allocations: 2.364 MB / 353.7 MB, free: 1.516 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001114/0.1077, allocations: 0.6975 MB / 354.4 MB, free: 0.8125 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001249/0.1078, allocations: 4 kB / 354.4 MB, free: 0.8086 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001564/0.108, allocations: 51.62 kB / 354.5 MB, free: 0.7578 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002299/0.1082, allocations: 75.44 kB / 354.5 MB, free: 0.6836 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000237/0.1085, allocations: 83.89 kB / 354.6 MB, free: 0.6016 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003333/0.1088, allocations: 350.5 kB / 355 MB, free: 264 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001839/0.109, allocations: 94.08 kB / 355.1 MB, free: 164 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002014/0.1093, allocations: 135.4 kB / 355.2 MB, free: 28 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001859/0.1094, allocations: 139.5 kB / 355.3 MB, free: 15.89 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.399e-05/0.1095, allocations: 16 kB / 355.3 MB, free: 15.87 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.16e-05/0.1095, allocations: 20 kB / 355.4 MB, free: 15.85 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.572e-05/0.1096, allocations: 63.69 kB / 355.4 MB, free: 15.79 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.987e-05/0.1097, allocations: 81.58 kB / 355.5 MB, free: 15.7 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002547/0.1099, allocations: 287.4 kB / 355.8 MB, free: 15.42 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.1099, allocations: 0 / 355.8 MB, free: 15.42 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.11, allocations: 0 / 355.8 MB, free: 15.42 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.3e-06/0.11, allocations: 4 kB / 355.8 MB, free: 15.42 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: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.00104/0.111, allocations: 0.6003 MB / 356.4 MB, free: 14.77 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.988e-05/0.1111, allocations: 11.97 kB / 356.4 MB, free: 14.76 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.55e-05/0.1111, allocations: 66.53 kB / 356.5 MB, free: 14.68 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.746e-05/0.1112, allocations: 43.48 kB / 356.5 MB, free: 14.64 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002907/0.1115, allocations: 254.5 kB / 356.7 MB, free: 14.35 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.712e-05/0.1115, allocations: 24.66 kB / 356.8 MB, free: 14.33 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.779e-05/0.1116, allocations: 31.91 kB / 356.8 MB, free: 14.3 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005809/0.1122, allocations: 302 kB / 357.1 MB, free: 14 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.007e-05/0.1122, allocations: 0 / 357.1 MB, free: 14 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.688e-05/0.1122, allocations: 8 kB / 357.1 MB, free: 13.99 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.255e-05/0.1122, allocations: 11.95 kB / 357.1 MB, free: 13.98 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006103/0.1129, allocations: 270.5 kB / 357.4 MB, free: 13.71 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001634/0.1145, allocations: 1.128 MB / 358.5 MB, free: 12.49 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000356/0.1149, allocations: 161 kB / 358.7 MB, free: 12.33 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001797/0.1151, allocations: 68.83 kB / 358.7 MB, free: 12.26 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.108e-05/0.1151, allocations: 4 kB / 358.7 MB, free: 12.25 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.673e-05/0.1151, allocations: 30.56 kB / 358.8 MB, free: 12.21 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 1.302e-06/0.1151, allocations: 4 kB / 358.8 MB, free: 12.21 MB / 302.1 MB Notification: Performance of matching and sorting (n=22): time 0.001974/0.1171, allocations: 0.666 MB / 359.4 MB, free: 11.54 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.062e-05/0.1172, allocations: 59.58 kB / 359.5 MB, free: 11.46 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002807/0.1175, allocations: 262.5 kB / 359.8 MB, free: 11.2 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.987e-05/0.1175, allocations: 25.7 kB / 359.8 MB, free: 11.17 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001564/0.1177, allocations: 231.5 kB / 360 MB, free: 10.94 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.645e-05/0.1177, allocations: 74.91 kB / 360.1 MB, free: 10.87 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.562e-05/0.1177, allocations: 8 kB / 360.1 MB, free: 10.86 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001432/0.1179, allocations: 338.8 kB / 360.4 MB, free: 10.52 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002705/0.1182, allocations: 99.94 kB / 360.5 MB, free: 10.42 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003283/0.1185, allocations: 208.1 kB / 360.7 MB, free: 10.17 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002851/0.1188, allocations: 134 kB / 360.8 MB, free: 10.04 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.556e-06/0.1188, allocations: 0 / 360.8 MB, free: 10.04 MB / 302.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0007809/0.1196, allocations: 413.6 kB / 361.3 MB, free: 9.629 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.467e-05/0.1196, allocations: 4 kB / 361.3 MB, free: 9.625 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.396e-06/0.1196, allocations: 4 kB / 361.3 MB, free: 9.621 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000221/0.1199, allocations: 57.69 kB / 361.3 MB, free: 9.559 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003175/0.1202, allocations: 83.83 kB / 361.4 MB, free: 9.477 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001964/0.1222, allocations: 2.64 MB / 364 MB, free: 6.566 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002457/0.1224, allocations: 31.97 kB / 364.1 MB, free: 6.535 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.369e-05/0.1225, allocations: 12 kB / 364.1 MB, free: 6.523 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 (37): * Single equations (assignments): 35 * 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.0001609/0.1226, allocations: 150.4 kB / 364.2 MB, free: 6.367 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.512e-05/0.1227, allocations: 27.78 kB / 364.3 MB, free: 6.34 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.837e-05/0.1228, allocations: 38.12 kB / 364.3 MB, free: 6.305 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.1228, allocations: 3.938 kB / 364.3 MB, free: 6.301 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.52e-06/0.1228, allocations: 0 / 364.3 MB, free: 6.301 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.171e-06/0.1228, allocations: 4 kB / 364.3 MB, free: 6.297 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00034/0.1231, allocations: 329.6 kB / 364.6 MB, free: 5.926 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.1231, allocations: 0 / 364.6 MB, free: 5.926 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000196/0.1233, allocations: 43.95 kB / 364.7 MB, free: 5.883 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001378/0.1235, allocations: 53.69 kB / 364.7 MB, free: 5.824 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.673e-05/0.1235, allocations: 4 kB / 364.7 MB, free: 5.82 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001692/0.1252, allocations: 2.644 MB / 367.4 MB, free: 2.914 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.1252, allocations: 0 / 367.4 MB, free: 2.914 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006706/0.1259, allocations: 395 kB / 367.7 MB, free: 2.508 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.384e-05/0.126, allocations: 96.83 kB / 367.8 MB, free: 2.395 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.015e-05/0.126, allocations: 4 kB / 367.8 MB, free: 2.391 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001958/0.1262, allocations: 27.97 kB / 367.9 MB, free: 2.363 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.597e-05/0.1263, allocations: 15.98 kB / 367.9 MB, free: 2.348 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.404e-05/0.1263, allocations: 7.984 kB / 367.9 MB, free: 2.34 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001763/0.1265, allocations: 182 kB / 368.1 MB, free: 2.164 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1265, allocations: 4 kB / 368.1 MB, free: 2.16 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003778/0.1269, allocations: 68 kB / 368.1 MB, free: 2.094 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (18): * Single equations (assignments): 16 * 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.0009449/0.1278, allocations: 0.934 MB / 369.1 MB, free: 1.129 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008712/0.1287, allocations: 0.4931 MB / 369.6 MB, free: 0.6094 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.1287, allocations: 3.938 kB / 369.6 MB, free: 0.6055 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004597/0.1292, allocations: 358.1 kB / 369.9 MB, free: 236 kB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003209/0.1295, allocations: 34.56 kB / 370 MB, free: 200 kB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1722/0.3017, allocations: 1.712 MB / 371.7 MB, free: 23.92 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002557/0.302, allocations: 0.773 MB / 372.4 MB, free: 23.22 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001654/0.3022, allocations: 30.89 kB / 372.5 MB, free: 23.22 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001314/0.3023, allocations: 98.11 kB / 372.6 MB, free: 23.21 MB / 302.1 MB Notification: Performance of SimCode: time 7.91e-07/0.3023, allocations: 1.75 kB / 372.6 MB, free: 23.21 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01895/0.3213, allocations: 4.965 MB / 377.5 MB, free: 22.93 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001355/0.3214, allocations: 229.1 kB / 377.8 MB, free: 22.7 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.939/2.261, allocations: 2.297 kB / 377.8 MB, free: 22.7 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap_fmu --startTime=0 --stopTime=0.05 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap.fmu > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.mat does not exist to compare? outputFormat=mat