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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.00144/0.00144, allocations: 175.1 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.359/1.359, allocations: 221.3 MB / 235.5 MB, free: 2.957 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008601/0.0008599, allocations: 87.72 kB / 286.5 MB, free: 256 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.461e-05/2.463e-05, allocations: 4 kB / 343.9 MB, free: 4.242 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1013/0.1013, allocations: 50.41 MB / 394.3 MB, free: 1.789 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3333/0.4347, allocations: 81.12 MB / 475.5 MB, free: 6.395 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000273/0.4351, allocations: 79.95 kB / 475.5 MB, free: 6.316 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02008/0.4552, allocations: 7.166 MB / 482.7 MB, free: 15.12 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.422e-06/0.4552, allocations: 7.938 kB / 482.7 MB, free: 15.12 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.393e-05/0.4552, allocations: 4 kB / 482.7 MB, free: 15.11 MB / 362.7 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.0008193/0.4561, allocations: 0.5346 MB / 483.3 MB, free: 14.54 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.378e-05/0.4561, allocations: 15.97 kB / 483.3 MB, free: 14.52 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.62e-05/0.4562, allocations: 66.53 kB / 483.3 MB, free: 14.45 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.951e-05/0.4563, allocations: 31.62 kB / 483.4 MB, free: 14.41 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003608/0.4566, allocations: 255.1 kB / 483.6 MB, free: 14.12 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.464e-05/0.4567, allocations: 20.56 kB / 483.6 MB, free: 14.11 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.419e-05/0.4567, allocations: 24 kB / 483.7 MB, free: 14.08 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003956/0.4571, allocations: 228.9 kB / 483.9 MB, free: 13.85 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.081e-05/0.4572, allocations: 0 / 483.9 MB, free: 13.85 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.083e-05/0.4572, allocations: 23.94 kB / 483.9 MB, free: 13.83 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.195e-06/0.4572, allocations: 4 kB / 483.9 MB, free: 13.82 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003219/0.4575, allocations: 186.2 kB / 484.1 MB, free: 13.64 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001584/0.4591, allocations: 1.017 MB / 485.1 MB, free: 12.54 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003209/0.4595, allocations: 188.2 kB / 485.3 MB, free: 12.34 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001882/0.4597, allocations: 100.8 kB / 485.4 MB, free: 12.24 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.045e-05/0.4597, allocations: 0 / 485.4 MB, free: 12.24 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.567e-05/0.4598, allocations: 46.59 kB / 485.4 MB, free: 12.19 MB / 362.7 MB Notification: Performance of pre-optimization done (n=23): time 1.243e-06/0.4598, allocations: 0 / 485.4 MB, free: 12.19 MB / 362.7 MB Notification: Performance of matching and sorting (n=34): time 0.003969/0.4637, allocations: 1.22 MB / 486.7 MB, free: 10.91 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.568e-05/0.4639, allocations: 55.41 kB / 486.7 MB, free: 10.84 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002716/0.4641, allocations: 200.7 kB / 486.9 MB, free: 10.64 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.575e-05/0.4642, allocations: 37.7 kB / 486.9 MB, free: 10.6 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001429/0.4644, allocations: 180.1 kB / 487.1 MB, free: 10.42 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001124/0.4645, allocations: 114.3 kB / 487.2 MB, free: 10.3 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.157e-05/0.4645, allocations: 12 kB / 487.2 MB, free: 10.29 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001822/0.4647, allocations: 334.8 kB / 487.6 MB, free: 9.957 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001881/0.4649, allocations: 95.94 kB / 487.7 MB, free: 9.863 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002495/0.4651, allocations: 161.4 kB / 487.8 MB, free: 9.684 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002089/0.4654, allocations: 109.5 kB / 487.9 MB, free: 9.578 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.4654, allocations: 0 / 487.9 MB, free: 9.578 MB / 362.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001525/0.4669, allocations: 0.5123 MB / 488.4 MB, free: 9.055 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.466e-05/0.4669, allocations: 8 kB / 488.4 MB, free: 9.047 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.357e-06/0.467, allocations: 7.984 kB / 488.5 MB, free: 9.039 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008225/0.4678, allocations: 193.5 kB / 488.6 MB, free: 8.844 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002595/0.4681, allocations: 51.97 kB / 488.7 MB, free: 8.793 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004784/0.4728, allocations: 3.764 MB / 492.5 MB, free: 4.758 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002759/0.4731, allocations: 16.02 kB / 492.5 MB, free: 4.742 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.971e-05/0.4732, allocations: 12 kB / 492.5 MB, free: 4.73 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 26 * 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.0001336/0.4733, allocations: 120.9 kB / 492.6 MB, free: 4.605 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.538e-05/0.4734, allocations: 23.78 kB / 492.6 MB, free: 4.582 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001121/0.4735, allocations: 43.08 kB / 492.7 MB, free: 4.539 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.252e-06/0.4735, allocations: 4.281 kB / 492.7 MB, free: 4.535 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.179e-05/0.4735, allocations: 7.938 kB / 492.7 MB, free: 4.527 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.571e-06/0.4735, allocations: 3.938 kB / 492.7 MB, free: 4.523 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001974/0.4755, allocations: 0.9377 MB / 493.6 MB, free: 3.52 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.011e-06/0.4756, allocations: 4 kB / 493.6 MB, free: 3.516 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000205/0.4758, allocations: 39.92 kB / 493.7 MB, free: 3.477 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007599/0.4765, allocations: 185.6 kB / 493.8 MB, free: 3.289 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.418e-05/0.4766, allocations: 8 kB / 493.9 MB, free: 3.281 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004668/0.4812, allocations: 3.752 MB / 497.6 MB, free: 15.26 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/0.4813, allocations: 0 / 497.6 MB, free: 15.26 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001687/0.483, allocations: 0.718 MB / 498.3 MB, free: 14.51 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.519e-05/0.4831, allocations: 100.8 kB / 498.4 MB, free: 14.39 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.309e-05/0.4831, allocations: 8 kB / 498.4 MB, free: 14.39 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002179/0.4834, allocations: 15.98 kB / 498.4 MB, free: 14.37 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.598e-05/0.4834, allocations: 27.92 kB / 498.5 MB, free: 14.34 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.382e-05/0.4835, allocations: 16.05 kB / 498.5 MB, free: 14.33 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001546/0.4836, allocations: 157.4 kB / 498.6 MB, free: 14.18 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.4836, allocations: 288 / 498.6 MB, free: 14.18 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005715/0.4842, allocations: 108 kB / 498.7 MB, free: 14.07 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (coil.i) * Number of discrete variables: 0 () * Number of discrete 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: 1 {(1,100.0%) 9} * Non-linear torn systems: 1 {1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.001989/0.4862, allocations: 1.331 MB / 0.4884 GB, free: 12.7 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0008541/0.4871, allocations: 0.5362 MB / 0.4889 GB, free: 12.14 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.4871, allocations: 0 / 0.4889 GB, free: 12.14 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005001/0.4876, allocations: 421.3 kB / 0.4893 GB, free: 11.7 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002397/0.4879, allocations: 26.56 kB / 0.4893 GB, free: 11.68 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001133/0.489, allocations: 0.5159 MB / 0.4898 GB, free: 11.12 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003423/0.4894, allocations: 0.7879 MB / 0.4906 GB, free: 10.3 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 9.999e-05/0.4895, allocations: 22.06 kB / 0.4906 GB, free: 10.28 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001232/0.4896, allocations: 95.39 kB / 0.4907 GB, free: 10.18 MB / 378.7 MB Notification: Performance of SimCode: time 7.01e-07/0.4896, allocations: 0 / 0.4907 GB, free: 10.18 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02368/0.5133, allocations: 8.026 MB / 0.4985 GB, free: 2.34 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002057/0.5135, allocations: 205.2 kB / 0.4987 GB, free: 2.117 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.356/2.869, allocations: 4 kB / 0.4987 GB, free: 2.113 MB / 378.7 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