Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.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.SaturatedInductor,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_SaturatedInductor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_SaturatedInductor",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.0007831/0.0007831, allocations: 88.16 kB / 16.31 MB, free: 5.555 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.001335/0.001335, allocations: 180.9 kB / 17.21 MB, free: 5.473 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.42/1.42, allocations: 223.2 MB / 241.2 MB, free: 332 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003187/0.0003191, allocations: 4 kB / 300.9 MB, free: 6.352 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1014/0.1017, allocations: 50.42 MB / 351.3 MB, free: 3.93 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor): time 0.002759/0.1045, allocations: 2.325 MB / 353.7 MB, free: 1.59 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001349/0.1059, allocations: 0.7755 MB / 354.4 MB, free: 0.8086 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001445/0.106, allocations: 4 kB / 354.4 MB, free: 0.8047 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001992/0.1063, allocations: 47.69 kB / 354.5 MB, free: 0.7578 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002678/0.1065, allocations: 87.38 kB / 354.6 MB, free: 0.6719 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00022/0.1068, allocations: 71.91 kB / 354.6 MB, free: 0.6016 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003165/0.1071, allocations: 314.7 kB / 355 MB, free: 300 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000184/0.1073, allocations: 85.58 kB / 355 MB, free: 212 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001629/0.1075, allocations: 111.6 kB / 355.1 MB, free: 100 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002008/0.1077, allocations: 135.5 kB / 355.3 MB, free: 15.96 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.9e-05/0.1077, allocations: 16 kB / 355.3 MB, free: 15.95 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.933e-05/0.1078, allocations: 16 kB / 355.3 MB, free: 15.93 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.436e-05/0.1078, allocations: 51.67 kB / 355.4 MB, free: 15.88 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.585e-05/0.1079, allocations: 77.58 kB / 355.4 MB, free: 15.8 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002419/0.1081, allocations: 255.5 kB / 355.7 MB, free: 15.55 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.169e-06/0.1081, allocations: 0 / 355.7 MB, free: 15.55 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1081, allocations: 0 / 355.7 MB, free: 15.55 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.672e-06/0.1082, allocations: 0 / 355.7 MB, free: 15.55 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.0008642/0.109, allocations: 0.565 MB / 356.3 MB, free: 14.94 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.942e-05/0.1091, allocations: 8.031 kB / 356.3 MB, free: 14.93 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.293e-05/0.1092, allocations: 70.53 kB / 356.3 MB, free: 14.85 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.018e-05/0.1092, allocations: 39.58 kB / 356.4 MB, free: 14.81 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000282/0.1095, allocations: 246.6 kB / 356.6 MB, free: 14.53 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.285e-05/0.1096, allocations: 16.56 kB / 356.6 MB, free: 14.52 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.085e-05/0.1096, allocations: 28 kB / 356.7 MB, free: 14.49 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000492/0.1101, allocations: 252.8 kB / 356.9 MB, free: 14.24 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.031e-05/0.1101, allocations: 0 / 356.9 MB, free: 14.24 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.74e-05/0.1102, allocations: 12 kB / 356.9 MB, free: 14.23 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.085e-05/0.1102, allocations: 15.95 kB / 356.9 MB, free: 14.21 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000421/0.1106, allocations: 214.1 kB / 357.1 MB, free: 14 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001477/0.1121, allocations: 1.013 MB / 358.1 MB, free: 12.9 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004053/0.1125, allocations: 202.5 kB / 358.3 MB, free: 12.7 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002378/0.1128, allocations: 116.8 kB / 358.5 MB, free: 12.58 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.875e-05/0.1128, allocations: 8.406 kB / 358.5 MB, free: 12.57 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.794e-05/0.1129, allocations: 30.56 kB / 358.5 MB, free: 12.53 MB / 302.1 MB Notification: Performance of pre-optimization done (n=23): time 2.214e-06/0.1129, allocations: 0 / 358.5 MB, free: 12.53 MB / 302.1 MB Notification: Performance of matching and sorting (n=35): time 0.004767/0.1176, allocations: 1.559 MB / 360.1 MB, free: 10.89 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.343e-05/0.1177, allocations: 55.41 kB / 360.1 MB, free: 10.83 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002371/0.118, allocations: 220.9 kB / 360.3 MB, free: 10.6 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.116e-05/0.118, allocations: 37.7 kB / 360.4 MB, free: 10.56 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001188/0.1181, allocations: 180.1 kB / 360.5 MB, free: 10.38 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.644e-05/0.1182, allocations: 118.3 kB / 360.7 MB, free: 10.26 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.91e-05/0.1183, allocations: 7.938 kB / 360.7 MB, free: 10.25 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001421/0.1184, allocations: 338.8 kB / 361 MB, free: 9.914 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002387/0.1186, allocations: 104.7 kB / 361.1 MB, free: 9.809 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002733/0.1189, allocations: 169.5 kB / 361.3 MB, free: 9.629 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002593/0.1192, allocations: 120 kB / 361.4 MB, free: 9.512 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.1192, allocations: 0 / 361.4 MB, free: 9.512 MB / 302.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001452/0.1207, allocations: 0.5487 MB / 361.9 MB, free: 8.949 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.066e-05/0.1207, allocations: 4 kB / 361.9 MB, free: 8.945 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.706e-06/0.1207, allocations: 4 kB / 361.9 MB, free: 8.941 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00157/0.1223, allocations: 249.5 kB / 362.2 MB, free: 8.691 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002666/0.1226, allocations: 59.89 kB / 362.2 MB, free: 8.633 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004567/0.1271, allocations: 3.754 MB / 366 MB, free: 4.613 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002805/0.1275, allocations: 12 kB / 366 MB, free: 4.602 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.671e-05/0.1275, allocations: 8 kB / 366 MB, free: 4.594 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (29): * Single equations (assignments): 27 * 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: 1 {(1,100.0%) 9} * Non-linear torn systems: 1 {1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0002133/0.1277, allocations: 157.8 kB / 366.2 MB, free: 4.43 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.026e-05/0.1278, allocations: 27.7 kB / 366.2 MB, free: 4.402 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001001/0.1279, allocations: 34.97 kB / 366.2 MB, free: 4.363 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.178e-06/0.1279, allocations: 4 kB / 366.2 MB, free: 4.359 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.275e-06/0.1279, allocations: 0 / 366.2 MB, free: 4.359 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.843e-06/0.1279, allocations: 7.984 kB / 366.2 MB, free: 4.352 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002059/0.13, allocations: 0.9939 MB / 367.2 MB, free: 3.289 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.028e-06/0.13, allocations: 0 / 367.2 MB, free: 3.289 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002041/0.1302, allocations: 43.92 kB / 367.3 MB, free: 3.246 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001244/0.1315, allocations: 245.5 kB / 367.5 MB, free: 3 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.514e-05/0.1315, allocations: 7.984 kB / 367.5 MB, free: 2.992 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1803/0.3118, allocations: 3.735 MB / 371.3 MB, free: 22.96 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/0.3119, allocations: 0.9062 kB / 371.3 MB, free: 22.96 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001894/0.3138, allocations: 0.7328 MB / 372 MB, free: 22.8 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.344e-05/0.3138, allocations: 98.02 kB / 372.1 MB, free: 22.71 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.701e-05/0.3139, allocations: 9.969 kB / 372.1 MB, free: 22.71 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002179/0.3141, allocations: 17.05 kB / 372.1 MB, free: 22.71 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.91e-05/0.3142, allocations: 31.59 kB / 372.1 MB, free: 22.71 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.493e-05/0.3143, allocations: 14.05 kB / 372.2 MB, free: 22.71 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001609/0.3144, allocations: 163.2 kB / 372.3 MB, free: 22.63 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.3144, allocations: 3.969 kB / 372.3 MB, free: 22.63 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006336/0.3151, allocations: 99.94 kB / 372.4 MB, free: 22.63 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (coil.i) * 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 (19): * Single equations (assignments): 17 * 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: 1 {(1,100.0%) 9} * Non-linear torn systems: 1 {1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.002017/0.3171, allocations: 1.281 MB / 373.7 MB, free: 21.93 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009909/0.3181, allocations: 0.5691 MB / 374.3 MB, free: 21.7 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.546e-06/0.3181, allocations: 1.531 kB / 374.3 MB, free: 21.7 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005623/0.3187, allocations: 429.9 kB / 374.7 MB, free: 21.47 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003585/0.319, allocations: 24.27 kB / 374.7 MB, free: 21.47 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003909/0.323, allocations: 2.018 MB / 376.7 MB, free: 20.75 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002313/0.3232, allocations: 0.7816 MB / 377.5 MB, free: 20.05 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001125/0.3233, allocations: 23.23 kB / 377.5 MB, free: 20.04 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001133/0.3235, allocations: 97.77 kB / 377.6 MB, free: 19.98 MB / 302.1 MB Notification: Performance of SimCode: time 6.41e-07/0.3235, allocations: 0 / 377.6 MB, free: 19.98 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02186/0.3453, allocations: 7.736 MB / 385.4 MB, free: 18.25 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001421/0.3455, allocations: 235.9 kB / 385.6 MB, free: 18.01 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.056/2.402, allocations: 0 / 385.6 MB, free: 18.01 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_SaturatedInductor_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-07 Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_SaturatedInductor.fmu > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor_res.mat does not exist to compare? outputFormat=mat