Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001525/0.001525, allocations: 202.1 kB / 8.767 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.5/1.5, allocations: 225.6 MB / 234.8 MB, free: 3.195 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009319/0.0009323, allocations: 102 kB / 286.7 MB, free: 5.305 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.875e-05/1.876e-05, allocations: 0 / 343.8 MB, free: 8.113 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09653/0.09656, allocations: 51.48 MB / 395.3 MB, free: 4.594 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3455/0.4422, allocations: 81.06 MB / 476.3 MB, free: 11.42 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002435/0.4425, allocations: 84.08 kB / 476.4 MB, free: 11.39 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02061/0.4631, allocations: 8.344 MB / 484.8 MB, free: 5.152 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.743e-06/0.4631, allocations: 0 / 484.8 MB, free: 5.152 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.2e-05/0.4631, allocations: 7.938 kB / 484.8 MB, free: 5.145 MB / 346.7 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.0008918/0.464, allocations: 0.575 MB / 485.3 MB, free: 4.551 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.218e-05/0.4641, allocations: 8.031 kB / 485.3 MB, free: 4.543 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.955e-05/0.4642, allocations: 39.53 kB / 485.4 MB, free: 4.504 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003622/0.4646, allocations: 265.9 kB / 485.6 MB, free: 4.227 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.239e-05/0.4646, allocations: 8 kB / 485.7 MB, free: 4.219 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.535e-05/0.4647, allocations: 23.98 kB / 485.7 MB, free: 4.195 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003427/0.465, allocations: 185.3 kB / 485.9 MB, free: 4.086 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003611/0.4654, allocations: 217.9 kB / 486.1 MB, free: 3.918 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.266e-05/0.4654, allocations: 4 kB / 486.1 MB, free: 3.914 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.37e-05/0.4654, allocations: 0 / 486.1 MB, free: 3.914 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.837e-06/0.4654, allocations: 8 kB / 486.1 MB, free: 3.906 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001455/0.4669, allocations: 1.068 MB / 487.1 MB, free: 2.93 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001736/0.4671, allocations: 121.6 kB / 487.3 MB, free: 2.836 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.843e-05/0.4672, allocations: 50.59 kB / 487.3 MB, free: 2.797 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.533e-05/0.4672, allocations: 4 kB / 487.3 MB, free: 2.793 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.205e-05/0.4672, allocations: 33.88 kB / 487.4 MB, free: 2.754 MB / 346.7 MB Notification: Performance of pre-optimization done (n=17): time 1.433e-06/0.4672, allocations: 0 / 487.4 MB, free: 2.754 MB / 346.7 MB Notification: Performance of matching and sorting (n=22): time 0.0008327/0.4681, allocations: 375.7 kB / 487.7 MB, free: 2.43 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.756e-05/0.4681, allocations: 55.59 kB / 487.8 MB, free: 2.363 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001702/0.4683, allocations: 220.7 kB / 488 MB, free: 2.18 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.318e-05/0.4683, allocations: 25.7 kB / 488 MB, free: 2.148 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.827e-05/0.4684, allocations: 225.1 kB / 488.2 MB, free: 1.961 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.66e-05/0.4684, allocations: 88.47 kB / 488.3 MB, free: 1.883 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.207e-05/0.4684, allocations: 3.938 kB / 488.3 MB, free: 1.879 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 4.88e-05/0.4685, allocations: 334.2 kB / 488.7 MB, free: 1.551 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.989e-05/0.4686, allocations: 62.56 kB / 488.7 MB, free: 1.516 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001327/0.4687, allocations: 152.9 kB / 488.9 MB, free: 1.352 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001262/0.4689, allocations: 84.39 kB / 488.9 MB, free: 1.297 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.4689, allocations: 0 / 488.9 MB, free: 1.297 MB / 346.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003992/0.4693, allocations: 304.4 kB / 489.2 MB, free: 1.047 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.975e-05/0.4693, allocations: 11.95 kB / 489.3 MB, free: 1.035 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.502e-06/0.4693, allocations: 4 kB / 489.3 MB, free: 1.031 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001993/0.4695, allocations: 52 kB / 489.3 MB, free: 0.9805 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000318/0.4699, allocations: 79.33 kB / 489.4 MB, free: 0.9062 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001673/0.4715, allocations: 2.527 MB / 491.9 MB, free: 14.25 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002669/0.4718, allocations: 28.09 kB / 491.9 MB, free: 14.22 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.216e-05/0.4719, allocations: 11.19 kB / 491.9 MB, free: 14.21 MB / 362.7 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 () * 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 9.201e-05/0.472, allocations: 108.9 kB / 492.1 MB, free: 14.1 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003398/0.4723, allocations: 206 kB / 492.3 MB, free: 13.93 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.752e-05/0.4724, allocations: 23.72 kB / 492.3 MB, free: 13.91 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.918e-05/0.4724, allocations: 34.89 kB / 492.3 MB, free: 13.89 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/0.4724, allocations: 0 / 492.3 MB, free: 13.89 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.396e-06/0.4724, allocations: 0.5 kB / 492.3 MB, free: 13.89 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.812e-06/0.4725, allocations: 7.953 kB / 492.3 MB, free: 13.88 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003126/0.4728, allocations: 277.2 kB / 492.6 MB, free: 13.62 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-06/0.4728, allocations: 2.062 kB / 492.6 MB, free: 13.62 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002437/0.473, allocations: 51.22 kB / 492.6 MB, free: 13.57 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001474/0.4732, allocations: 53.23 kB / 492.7 MB, free: 13.52 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.541e-05/0.4732, allocations: 0 / 492.7 MB, free: 13.52 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001856/0.4751, allocations: 2.527 MB / 495.2 MB, free: 10.88 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.4751, allocations: 0 / 495.2 MB, free: 10.88 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003967/0.4755, allocations: 301.4 kB / 495.5 MB, free: 10.6 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.835e-05/0.4756, allocations: 100.7 kB / 495.6 MB, free: 10.48 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.231e-05/0.4756, allocations: 3.953 kB / 495.6 MB, free: 10.48 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002127/0.4759, allocations: 28.03 kB / 495.6 MB, free: 10.45 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.471e-05/0.4759, allocations: 15.55 kB / 495.7 MB, free: 10.44 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.331e-05/0.476, allocations: 7.984 kB / 495.7 MB, free: 10.43 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001683/0.4761, allocations: 169.6 kB / 495.8 MB, free: 10.3 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4761, allocations: 3.938 kB / 495.8 MB, free: 10.3 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003855/0.4765, allocations: 60 kB / 495.9 MB, free: 10.24 MB / 362.7 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 () * 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.0007202/0.4773, allocations: 0.8407 MB / 496.7 MB, free: 9.414 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0006324/0.4779, allocations: 401.4 kB / 497.1 MB, free: 9.062 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.4779, allocations: 0 / 497.1 MB, free: 9.062 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003151/0.4782, allocations: 302.8 kB / 497.4 MB, free: 8.777 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002487/0.4785, allocations: 23.61 kB / 497.5 MB, free: 8.762 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009557/0.4795, allocations: 366.5 kB / 497.8 MB, free: 8.398 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004344/0.4799, allocations: 0.7834 MB / 498.6 MB, free: 7.59 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001469/0.4801, allocations: 30.06 kB / 498.6 MB, free: 7.559 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001396/0.4802, allocations: 98.78 kB / 498.7 MB, free: 7.531 MB / 362.7 MB Notification: Performance of SimCode: time 5.81e-07/0.4802, allocations: 0 / 498.7 MB, free: 7.531 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02719/0.5074, allocations: 4.546 MB / 0.4915 GB, free: 3.043 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002077/0.5077, allocations: 171.8 kB / 0.4916 GB, free: 2.848 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.98/2.487, allocations: 0 / 0.4916 GB, free: 2.848 MB / 362.7 MB (rm -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap_fmu --startTime=0 --stopTime=0.05 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap.fmu > Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.mat does not exist to compare? outputFormat=mat