Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.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.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002161/0.002161, allocations: 202.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.533/1.533, allocations: 225.6 MB / 234.8 MB, free: 3.281 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008914/0.0008914, allocations: 92.14 kB / 286.7 MB, free: 5.254 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.86e-05/2.862e-05, allocations: 4 kB / 343.8 MB, free: 8.203 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1088/0.1089, allocations: 51.48 MB / 395.3 MB, free: 4.684 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3485/0.4574, allocations: 87.77 MB / 483 MB, free: 5.484 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002641/0.4577, allocations: 93.69 kB / 483.1 MB, free: 5.434 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06023/0.518, allocations: 26.91 MB / 0.4981 GB, free: 15.39 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.518, allocations: 0 / 0.4981 GB, free: 15.39 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.028e-05/0.518, allocations: 12 kB / 0.4981 GB, free: 15.38 MB / 378.7 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.003265/0.5213, allocations: 1.13 MB / 0.4992 GB, free: 14.21 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.012e-05/0.5214, allocations: 8.031 kB / 0.4992 GB, free: 14.2 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002035/0.5234, allocations: 318.8 kB / 0.4995 GB, free: 13.89 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003012/0.5237, allocations: 251 kB / 0.4998 GB, free: 13.6 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.585e-05/0.5238, allocations: 29.88 kB / 0.4998 GB, free: 13.57 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001144/0.5239, allocations: 51.61 kB / 0.4998 GB, free: 13.53 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001237/0.5252, allocations: 0.66 MB / 0.5005 GB, free: 12.87 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001228/0.5264, allocations: 0.6845 MB / 0.5011 GB, free: 12.17 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.015e-05/0.5264, allocations: 12 kB / 0.5012 GB, free: 12.16 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.934e-05/0.5265, allocations: 0 / 0.5012 GB, free: 12.16 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.728e-05/0.5265, allocations: 20 kB / 0.5012 GB, free: 12.14 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004509/0.531, allocations: 2.937 MB / 0.504 GB, free: 9.02 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001008/0.5321, allocations: 0.9316 MB / 0.505 GB, free: 7.961 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002698/0.5324, allocations: 190.5 kB / 0.5051 GB, free: 7.773 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000179/0.5325, allocations: 178.7 kB / 0.5053 GB, free: 7.562 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.068e-05/0.5326, allocations: 47.11 kB / 0.5054 GB, free: 7.508 MB / 378.7 MB Notification: Performance of pre-optimization done (n=58): time 1.823e-06/0.5326, allocations: 0 / 0.5054 GB, free: 7.508 MB / 378.7 MB Notification: Performance of matching and sorting (n=61): time 0.005591/0.5382, allocations: 1.89 MB / 0.5072 GB, free: 5.559 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.827e-05/0.5383, allocations: 81.67 kB / 0.5073 GB, free: 5.461 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002788/0.5386, allocations: 266 kB / 0.5075 GB, free: 5.188 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.033e-05/0.5386, allocations: 25.7 kB / 0.5076 GB, free: 5.156 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002023/0.5388, allocations: 366.6 kB / 0.5079 GB, free: 4.789 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000148/0.539, allocations: 201 kB / 0.5081 GB, free: 4.59 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.195e-05/0.539, allocations: 0 / 0.5081 GB, free: 4.59 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001459/0.5392, allocations: 348.6 kB / 0.5084 GB, free: 4.242 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002844/0.5395, allocations: 186.6 kB / 0.5086 GB, free: 4.062 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004578/0.5399, allocations: 421 kB / 0.509 GB, free: 3.547 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001164/0.5411, allocations: 421.8 kB / 0.5094 GB, free: 3.133 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.367e-06/0.5411, allocations: 0 / 0.5094 GB, free: 3.133 MB / 378.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.001855/0.543, allocations: 0.8394 MB / 0.5102 GB, free: 2.281 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.375e-05/0.543, allocations: 8 kB / 0.5102 GB, free: 2.273 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.292e-05/0.543, allocations: 8.75 kB / 0.5102 GB, free: 2.266 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002147/0.5432, allocations: 69.69 kB / 0.5103 GB, free: 2.191 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008646/0.5441, allocations: 211.7 kB / 0.5105 GB, free: 1.984 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001842/0.546, allocations: 2.552 MB / 0.513 GB, free: 15.2 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006326/0.5466, allocations: 64.06 kB / 0.5131 GB, free: 15.13 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.343e-05/0.5467, allocations: 39.98 kB / 0.5131 GB, free: 15.09 MB / 394.7 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 () * 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.000154/0.5468, allocations: 136.6 kB / 0.5132 GB, free: 14.95 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001547/0.5484, allocations: 0.6289 MB / 0.5139 GB, free: 14.32 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.342e-05/0.5485, allocations: 39.53 kB / 0.5139 GB, free: 14.28 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001793/0.5503, allocations: 0.7235 MB / 0.5146 GB, free: 13.54 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.44e-06/0.5503, allocations: 4 kB / 0.5146 GB, free: 13.53 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.5503, allocations: 4 kB / 0.5146 GB, free: 13.53 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.112e-06/0.5503, allocations: 1.781 kB / 0.5146 GB, free: 13.53 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0024/0.5527, allocations: 1.313 MB / 0.5159 GB, free: 12.16 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.446e-06/0.5527, allocations: 0 / 0.5159 GB, free: 12.16 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007163/0.5535, allocations: 155.8 kB / 0.516 GB, free: 12.01 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001642/0.5536, allocations: 53.67 kB / 0.5161 GB, free: 11.95 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.453e-05/0.5537, allocations: 7.984 kB / 0.5161 GB, free: 11.95 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001758/0.5555, allocations: 2.531 MB / 0.5186 GB, free: 9.191 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.268e-06/0.5555, allocations: 3.984 kB / 0.5186 GB, free: 9.188 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002086/0.5576, allocations: 0.9922 MB / 0.5195 GB, free: 8.172 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002414/0.5578, allocations: 164.6 kB / 0.5197 GB, free: 7.992 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.075e-05/0.5579, allocations: 0 / 0.5197 GB, free: 7.992 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005253/0.5584, allocations: 52.02 kB / 0.5197 GB, free: 7.941 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001133/0.5585, allocations: 48.42 kB / 0.5198 GB, free: 7.895 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.345e-05/0.5586, allocations: 27.98 kB / 0.5198 GB, free: 7.867 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0002133/0.5588, allocations: 186 kB / 0.52 GB, free: 7.684 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5588, allocations: 0 / 0.52 GB, free: 7.684 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0007638/0.5596, allocations: 171.9 kB / 0.5202 GB, free: 7.516 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (core.port_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete 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.002591/0.5622, allocations: 1.598 MB / 0.5217 GB, free: 5.891 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001248/0.5635, allocations: 0.733 MB / 0.5224 GB, free: 5.141 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.712e-06/0.5635, allocations: 1.781 kB / 0.5224 GB, free: 5.141 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006003/0.5641, allocations: 481.5 kB / 0.5229 GB, free: 4.652 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002903/0.5644, allocations: 22.19 kB / 0.5229 GB, free: 4.633 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002456/0.5669, allocations: 0.9184 MB / 0.5238 GB, free: 3.672 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004864/0.5674, allocations: 0.8964 MB / 0.5247 GB, free: 2.75 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0004772/0.5678, allocations: 92.39 kB / 0.5248 GB, free: 2.656 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003324/0.5682, allocations: 231.3 kB / 0.525 GB, free: 2.43 MB / 394.7 MB Notification: Performance of SimCode: time 4.01e-07/0.5682, allocations: 0 / 0.525 GB, free: 2.43 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03376/0.6019, allocations: 9.635 MB / 0.5344 GB, free: 8.879 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002155/0.6022, allocations: 201.8 kB / 0.5346 GB, free: 8.637 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.222/2.825, allocations: 0 / 0.5346 GB, free: 8.637 MB / 410.7 MB (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection_fmu --startTime=0 --stopTime=0.05 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection_res.mat does not exist to compare? outputFormat=mat