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.001511/0.001512, allocations: 196.5 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.436/1.436, allocations: 225.4 MB / 240.1 MB, free: 15.08 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009113/0.0009112, allocations: 97.72 kB / 292.1 MB, free: 5.992 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.191e-05/3.193e-05, allocations: 4 kB / 350.7 MB, free: 2.41 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1253/0.1254, allocations: 51.48 MB / 402.1 MB, free: 14.89 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3469/0.4723, allocations: 81.72 MB / 483.8 MB, free: 7.742 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002024/0.4726, allocations: 82.08 kB / 483.9 MB, free: 7.699 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02128/0.4938, allocations: 8.409 MB / 492.3 MB, free: 0.6758 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.4939, allocations: 0 / 492.3 MB, free: 0.6758 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.118e-05/0.4939, allocations: 8 kB / 492.3 MB, free: 0.668 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.0007564/0.4947, allocations: 0.5732 MB / 492.9 MB, free: 80 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.898e-05/0.4947, allocations: 8.031 kB / 492.9 MB, free: 72 kB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.241e-05/0.4948, allocations: 70.53 kB / 493 MB, free: 12 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.786e-05/0.4949, allocations: 34.42 kB / 493 MB, free: 15.98 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003443/0.4952, allocations: 276.2 kB / 493.3 MB, free: 15.69 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.563e-05/0.4953, allocations: 23.28 kB / 493.3 MB, free: 15.68 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.64e-05/0.4953, allocations: 34.88 kB / 493.4 MB, free: 15.66 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005231/0.4959, allocations: 258.2 kB / 493.6 MB, free: 15.48 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.079e-05/0.4959, allocations: 0 / 493.6 MB, free: 15.48 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.883e-05/0.4959, allocations: 20.7 kB / 493.6 MB, free: 15.46 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.183e-05/0.4959, allocations: 8 kB / 493.6 MB, free: 15.46 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003532/0.4963, allocations: 202.3 kB / 493.8 MB, free: 15.32 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001815/0.4981, allocations: 1.123 MB / 495 MB, free: 14.15 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000241/0.4984, allocations: 126.6 kB / 495.1 MB, free: 14.02 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.664e-05/0.4985, allocations: 52.84 kB / 495.1 MB, free: 13.96 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.631e-05/0.4985, allocations: 4 kB / 495.1 MB, free: 13.96 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.709e-05/0.4985, allocations: 38.56 kB / 495.2 MB, free: 13.91 MB / 362.7 MB Notification: Performance of pre-optimization done (n=17): time 1.312e-06/0.4985, allocations: 0.8438 kB / 495.2 MB, free: 13.91 MB / 362.7 MB Notification: Performance of matching and sorting (n=22): time 0.001571/0.5001, allocations: 0.5118 MB / 495.7 MB, free: 13.39 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.506e-05/0.5002, allocations: 59.58 kB / 495.7 MB, free: 13.32 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002379/0.5004, allocations: 235.1 kB / 496 MB, free: 13.08 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.053e-05/0.5004, allocations: 29.7 kB / 496 MB, free: 13.04 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000135/0.5006, allocations: 223.5 kB / 496.2 MB, free: 12.82 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.387e-05/0.5006, allocations: 82.78 kB / 496.3 MB, free: 12.74 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.357e-05/0.5007, allocations: 8 kB / 496.3 MB, free: 12.73 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001292/0.5008, allocations: 339 kB / 496.6 MB, free: 12.39 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001162/0.5009, allocations: 64.56 kB / 496.7 MB, free: 12.33 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001813/0.5011, allocations: 171.3 kB / 496.9 MB, free: 12.12 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001544/0.5013, allocations: 94.06 kB / 497 MB, free: 12.03 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.774e-06/0.5013, allocations: 0 / 497 MB, free: 12.03 MB / 362.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0005235/0.5018, allocations: 333.4 kB / 497.3 MB, free: 11.69 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.475e-05/0.5019, allocations: 10.19 kB / 497.3 MB, free: 11.68 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.104e-05/0.502, allocations: 10.61 kB / 497.3 MB, free: 11.68 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002675/0.5022, allocations: 61.89 kB / 497.4 MB, free: 11.61 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003133/0.5026, allocations: 75.89 kB / 497.4 MB, free: 11.54 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001917/0.5045, allocations: 2.64 MB / 0.4884 GB, free: 8.633 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002577/0.5048, allocations: 23.98 kB / 0.4884 GB, free: 8.609 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.372e-05/0.5048, allocations: 20 kB / 0.4884 GB, free: 8.59 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 8.732e-05/0.5049, allocations: 116.9 kB / 0.4885 GB, free: 8.469 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.8e-05/0.5049, allocations: 27.73 kB / 0.4885 GB, free: 8.441 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.69e-05/0.505, allocations: 35.73 kB / 0.4886 GB, free: 8.41 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.799e-06/0.505, allocations: 4 kB / 0.4886 GB, free: 8.406 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.584e-06/0.505, allocations: 7.922 kB / 0.4886 GB, free: 8.398 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.242e-06/0.5051, allocations: 3.984 kB / 0.4886 GB, free: 8.395 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003511/0.5054, allocations: 329.7 kB / 0.4889 GB, free: 8.023 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/0.5054, allocations: 0 / 0.4889 GB, free: 8.023 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003422/0.5058, allocations: 39.97 kB / 0.4889 GB, free: 7.984 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003641/0.5062, allocations: 57.67 kB / 0.489 GB, free: 7.922 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.496e-05/0.5062, allocations: 7.953 kB / 0.489 GB, free: 7.914 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002714/0.5089, allocations: 2.634 MB / 0.4916 GB, free: 5.008 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.799e-06/0.5089, allocations: 4.031 kB / 0.4916 GB, free: 5.004 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006339/0.5096, allocations: 314.1 kB / 0.4919 GB, free: 4.676 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001304/0.5097, allocations: 96.83 kB / 0.492 GB, free: 4.562 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.267e-05/0.5098, allocations: 4 kB / 0.492 GB, free: 4.559 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004322/0.5102, allocations: 28.03 kB / 0.492 GB, free: 4.531 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.669e-05/0.5103, allocations: 23.97 kB / 0.492 GB, free: 4.508 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.025e-05/0.5104, allocations: 4 kB / 0.492 GB, free: 4.504 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002847/0.5107, allocations: 185.6 kB / 0.4922 GB, free: 4.328 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.5107, allocations: 3.938 kB / 0.4922 GB, free: 4.324 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006477/0.5114, allocations: 72 kB / 0.4923 GB, free: 4.254 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.001106/0.5125, allocations: 0.8693 MB / 0.4931 GB, free: 3.355 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0008803/0.5134, allocations: 424.6 kB / 0.4935 GB, free: 2.918 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.5134, allocations: 0 / 0.4935 GB, free: 2.918 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003575/0.5138, allocations: 321.9 kB / 0.4938 GB, free: 2.578 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000235/0.514, allocations: 24.55 kB / 0.4939 GB, free: 2.555 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001024/0.515, allocations: 399.9 kB / 0.4942 GB, free: 2.133 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003141/0.5154, allocations: 0.783 MB / 0.495 GB, free: 1.324 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001466/0.5155, allocations: 34.09 kB / 0.495 GB, free: 1.289 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001326/0.5157, allocations: 95.41 kB / 0.4951 GB, free: 1.195 MB / 362.7 MB Notification: Performance of SimCode: time 4.11e-07/0.5157, allocations: 4 kB / 0.4951 GB, free: 1.191 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01839/0.5341, allocations: 5.147 MB / 0.5002 GB, free: 12.31 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000168/0.5343, allocations: 207 kB / 0.5004 GB, free: 12.07 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.005/2.539, allocations: 0 / 0.5004 GB, free: 12.07 MB / 378.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