Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.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.SaturatedInductor,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_SaturatedInductor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001019/0.001019, allocations: 198.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.327/1.327, allocations: 225.6 MB / 234.8 MB, free: 3.258 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000873/0.0008731, allocations: 91.25 kB / 286.7 MB, free: 5.242 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.652e-05/1.654e-05, allocations: 4 kB / 343.8 MB, free: 8.176 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09788/0.09791, allocations: 51.47 MB / 395.3 MB, free: 4.664 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3532/0.4512, allocations: 81.31 MB / 476.6 MB, free: 10.91 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000219/0.4515, allocations: 85.66 kB / 476.7 MB, free: 10.88 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01727/0.4688, allocations: 7.294 MB / 484 MB, free: 5.512 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.483e-06/0.4688, allocations: 3.938 kB / 484 MB, free: 5.508 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.317e-05/0.4688, allocations: 4 kB / 484 MB, free: 5.504 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.0006758/0.4695, allocations: 0.5373 MB / 484.5 MB, free: 4.945 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.234e-05/0.4696, allocations: 14.84 kB / 484.5 MB, free: 4.934 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000158/0.4697, allocations: 47.53 kB / 484.6 MB, free: 4.887 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002878/0.47, allocations: 256.6 kB / 484.8 MB, free: 4.613 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.845e-05/0.4701, allocations: 8 kB / 484.8 MB, free: 4.605 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.461e-05/0.4701, allocations: 23.55 kB / 484.8 MB, free: 4.586 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002982/0.4704, allocations: 175 kB / 485 MB, free: 4.48 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000305/0.4707, allocations: 190.7 kB / 485.2 MB, free: 4.332 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.065e-05/0.4707, allocations: 0 / 485.2 MB, free: 4.332 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.183e-05/0.4708, allocations: 0 / 485.2 MB, free: 4.332 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.282e-06/0.4708, allocations: 4 kB / 485.2 MB, free: 4.328 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001269/0.472, allocations: 0.9626 MB / 486.2 MB, free: 3.461 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002458/0.4723, allocations: 184.4 kB / 486.3 MB, free: 3.332 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001411/0.4725, allocations: 88.3 kB / 486.4 MB, free: 3.273 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.117e-05/0.4725, allocations: 4 kB / 486.4 MB, free: 3.27 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.41e-05/0.4725, allocations: 30.56 kB / 486.5 MB, free: 3.23 MB / 346.7 MB Notification: Performance of pre-optimization done (n=23): time 1.373e-06/0.4725, allocations: 4 kB / 486.5 MB, free: 3.227 MB / 346.7 MB Notification: Performance of matching and sorting (n=34): time 0.003003/0.4755, allocations: 1.101 MB / 487.6 MB, free: 2.254 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.287e-05/0.4756, allocations: 55.41 kB / 487.6 MB, free: 2.188 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001502/0.4757, allocations: 191.8 kB / 487.8 MB, free: 2.02 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.108e-05/0.4758, allocations: 29.7 kB / 487.8 MB, free: 1.984 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.809e-05/0.4758, allocations: 186.2 kB / 488 MB, free: 1.824 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.922e-05/0.4759, allocations: 109.5 kB / 488.1 MB, free: 1.73 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.602e-05/0.4759, allocations: 0 / 488.1 MB, free: 1.73 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 6.352e-05/0.476, allocations: 337.1 kB / 488.5 MB, free: 1.402 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001281/0.4761, allocations: 85.38 kB / 488.5 MB, free: 1.355 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001492/0.4763, allocations: 142.3 kB / 488.7 MB, free: 1.246 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001547/0.4764, allocations: 114.8 kB / 488.8 MB, free: 1.176 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.4764, allocations: 3.953 kB / 488.8 MB, free: 1.172 MB / 346.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001207/0.4777, allocations: 489.5 kB / 489.3 MB, free: 0.7852 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.066e-05/0.4777, allocations: 9.703 kB / 489.3 MB, free: 0.7773 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.022e-05/0.4777, allocations: 15.2 kB / 489.3 MB, free: 0.7656 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007281/0.4784, allocations: 187.9 kB / 489.5 MB, free: 0.6094 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002442/0.4787, allocations: 55.09 kB / 489.5 MB, free: 0.5586 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004249/0.483, allocations: 3.612 MB / 493.1 MB, free: 13.22 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002647/0.4832, allocations: 4 kB / 493.2 MB, free: 13.22 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.766e-05/0.4833, allocations: 15.86 kB / 493.2 MB, free: 13.21 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.0001337/0.4834, allocations: 112.8 kB / 493.3 MB, free: 13.09 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001318/0.4848, allocations: 436 kB / 493.7 MB, free: 12.74 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.608e-05/0.4848, allocations: 34.75 kB / 493.7 MB, free: 12.71 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001016/0.4849, allocations: 45.31 kB / 493.8 MB, free: 12.68 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.565e-06/0.4849, allocations: 4 kB / 493.8 MB, free: 12.68 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.495e-06/0.4849, allocations: 4 kB / 493.8 MB, free: 12.68 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.833e-06/0.485, allocations: 5.766 kB / 493.8 MB, free: 12.67 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001869/0.4868, allocations: 0.8541 MB / 494.6 MB, free: 11.95 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.74e-06/0.4869, allocations: 3.953 kB / 494.7 MB, free: 11.94 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002127/0.4871, allocations: 43.72 kB / 494.7 MB, free: 11.9 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007293/0.4878, allocations: 179.7 kB / 494.9 MB, free: 11.75 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.182e-05/0.4879, allocations: 7.984 kB / 494.9 MB, free: 11.75 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00421/0.4921, allocations: 3.614 MB / 498.5 MB, free: 8.414 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.759e-06/0.4921, allocations: 4.031 kB / 498.5 MB, free: 8.41 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00153/0.4936, allocations: 0.6723 MB / 499.2 MB, free: 7.863 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.192e-05/0.4937, allocations: 108.3 kB / 499.3 MB, free: 7.742 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.305e-05/0.4938, allocations: 0 / 499.3 MB, free: 7.742 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002116/0.494, allocations: 8 kB / 499.3 MB, free: 7.734 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.076e-05/0.4941, allocations: 27.52 kB / 499.3 MB, free: 7.711 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2e-05/0.4941, allocations: 7.438 kB / 499.3 MB, free: 7.707 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001421/0.4943, allocations: 150.6 kB / 499.5 MB, free: 7.582 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.4943, allocations: 4 kB / 499.5 MB, free: 7.578 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000631/0.4949, allocations: 91.62 kB / 499.6 MB, free: 7.492 MB / 362.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.001934/0.4968, allocations: 1.302 MB / 0.4891 GB, free: 6.309 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0008338/0.4977, allocations: 0.501 MB / 0.4896 GB, free: 5.895 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.4977, allocations: 0 / 0.4896 GB, free: 5.895 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004674/0.4982, allocations: 398.8 kB / 0.49 GB, free: 5.547 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003054/0.4985, allocations: 19.69 kB / 0.49 GB, free: 5.535 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001198/0.4997, allocations: 493.3 kB / 0.4905 GB, free: 5.062 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003898/0.5001, allocations: 0.7879 MB / 0.4912 GB, free: 4.25 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001013/0.5002, allocations: 22.08 kB / 0.4913 GB, free: 4.227 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000121/0.5003, allocations: 91.16 kB / 0.4914 GB, free: 4.203 MB / 362.7 MB Notification: Performance of SimCode: time 3.3e-07/0.5003, allocations: 0 / 0.4914 GB, free: 4.203 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02836/0.5287, allocations: 7.236 MB / 0.4984 GB, free: 13.04 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002209/0.529, allocations: 165.1 kB / 0.4986 GB, free: 12.85 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.313/2.842, allocations: 4 kB / 0.4986 GB, free: 12.85 MB / 378.7 MB (rm -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_SaturatedInductor_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-07 Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_SaturatedInductor.fmu > Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.SaturatedInductor_res.mat does not exist to compare? outputFormat=mat