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.001663/0.001663, allocations: 198.3 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.371/1.371, allocations: 227.2 MB / 245 MB, free: 5.93 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008977/0.0008977, allocations: 106.1 kB / 297.3 MB, free: 5.965 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002847/0.0002848, allocations: 4 kB / 358 MB, free: 9.215 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2232/0.2235, allocations: 51.47 MB / 409.5 MB, free: 26.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09325/0.3168, allocations: 81.78 MB / 491.3 MB, free: 8.809 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002061/0.3171, allocations: 89.11 kB / 491.4 MB, free: 8.723 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02194/0.339, allocations: 8.42 MB / 499.8 MB, free: 292 kB / 362.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.3391, allocations: 0 / 499.8 MB, free: 292 kB / 362.7 MB Notification: Performance of Transformations before backend: time 1.439e-05/0.3391, allocations: 8 kB / 499.8 MB, free: 284 kB / 362.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.001045/0.3401, allocations: 0.6049 MB / 0.4887 GB, free: 15.62 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.129e-05/0.3402, allocations: 8.031 kB / 0.4887 GB, free: 15.62 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.337e-05/0.3403, allocations: 70.53 kB / 0.4887 GB, free: 15.54 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.041e-05/0.3404, allocations: 43.47 kB / 0.4888 GB, free: 15.5 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000331/0.3407, allocations: 268.1 kB / 0.489 GB, free: 15.19 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.914e-05/0.3407, allocations: 28.61 kB / 0.4891 GB, free: 15.16 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.512e-05/0.3408, allocations: 31.91 kB / 0.4891 GB, free: 15.13 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005732/0.3414, allocations: 298 kB / 0.4894 GB, free: 14.84 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.126e-05/0.3414, allocations: 0 / 0.4894 GB, free: 14.84 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.742e-05/0.3414, allocations: 12 kB / 0.4894 GB, free: 14.82 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.086e-05/0.3414, allocations: 8 kB / 0.4894 GB, free: 14.82 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000623/0.3421, allocations: 270.4 kB / 0.4897 GB, free: 14.55 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00166/0.3437, allocations: 1.131 MB / 0.4908 GB, free: 13.32 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003892/0.3441, allocations: 161 kB / 0.4909 GB, free: 13.16 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.501e-05/0.3442, allocations: 4 kB / 0.4909 GB, free: 13.16 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.444e-05/0.3442, allocations: 38.52 kB / 0.491 GB, free: 13.11 MB / 378.7 MB Notification: Performance of pre-optimization done (n=17): time 1.553e-06/0.3442, allocations: 0 / 0.491 GB, free: 13.11 MB / 378.7 MB Notification: Performance of matching and sorting (n=22): time 0.002103/0.3463, allocations: 0.6659 MB / 0.4916 GB, free: 12.43 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.606e-05/0.3464, allocations: 63.53 kB / 0.4917 GB, free: 12.36 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002432/0.3466, allocations: 237.7 kB / 0.4919 GB, free: 12.12 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.416e-05/0.3467, allocations: 33.7 kB / 0.4919 GB, free: 12.08 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001283/0.3468, allocations: 227.5 kB / 0.4921 GB, free: 11.86 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.127e-05/0.3469, allocations: 70.91 kB / 0.4922 GB, free: 11.79 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.569e-05/0.3469, allocations: 12 kB / 0.4922 GB, free: 11.77 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001057/0.347, allocations: 334.8 kB / 0.4925 GB, free: 11.44 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000287/0.3473, allocations: 103.9 kB / 0.4926 GB, free: 11.34 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003295/0.3476, allocations: 208.2 kB / 0.4928 GB, free: 11.09 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003046/0.3479, allocations: 133.1 kB / 0.493 GB, free: 10.96 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/0.348, allocations: 4 kB / 0.493 GB, free: 10.95 MB / 378.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0008471/0.3488, allocations: 409.3 kB / 0.4934 GB, free: 10.54 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.744e-05/0.3488, allocations: 4 kB / 0.4934 GB, free: 10.54 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.416e-06/0.3489, allocations: 8.219 kB / 0.4934 GB, free: 10.53 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002388/0.3491, allocations: 53.69 kB / 0.4934 GB, free: 10.47 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003307/0.3494, allocations: 79.89 kB / 0.4935 GB, free: 10.39 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001694/0.3511, allocations: 2.647 MB / 0.4961 GB, free: 7.477 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000285/0.3514, allocations: 35.97 kB / 0.4961 GB, free: 7.441 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.181e-05/0.3515, allocations: 16 kB / 0.4961 GB, free: 7.426 MB / 378.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 () * Number of clocked 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 0.0001547/0.3516, allocations: 154.4 kB / 0.4963 GB, free: 7.266 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.694e-05/0.3517, allocations: 23.72 kB / 0.4963 GB, free: 7.242 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.63e-05/0.3518, allocations: 34.17 kB / 0.4963 GB, free: 7.203 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.454e-06/0.3518, allocations: 0 / 0.4963 GB, free: 7.203 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.161e-06/0.3518, allocations: 4.281 kB / 0.4963 GB, free: 7.199 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.466e-06/0.3518, allocations: 4 kB / 0.4964 GB, free: 7.195 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000376/0.3522, allocations: 337.6 kB / 0.4967 GB, free: 6.816 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.386e-06/0.3522, allocations: 3.938 kB / 0.4967 GB, free: 6.812 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002238/0.3524, allocations: 47.95 kB / 0.4967 GB, free: 6.766 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001492/0.3526, allocations: 61.61 kB / 0.4968 GB, free: 6.699 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.396e-05/0.3526, allocations: 0 / 0.4968 GB, free: 6.699 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001582/0.3542, allocations: 2.647 MB / 0.4994 GB, free: 3.789 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.3542, allocations: 0 / 0.4994 GB, free: 3.789 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006907/0.3549, allocations: 394.1 kB / 0.4997 GB, free: 3.383 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.305e-05/0.355, allocations: 100.8 kB / 0.4998 GB, free: 3.266 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.829e-05/0.355, allocations: 7.938 kB / 0.4998 GB, free: 3.258 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002113/0.3552, allocations: 19.92 kB / 0.4999 GB, free: 3.238 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.549e-05/0.3553, allocations: 27.92 kB / 0.4999 GB, free: 3.211 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.241e-05/0.3553, allocations: 8 kB / 0.4999 GB, free: 3.203 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001853/0.3555, allocations: 186 kB / 0.5001 GB, free: 3.023 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.3555, allocations: 0 / 0.5001 GB, free: 3.023 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004099/0.3559, allocations: 76 kB / 0.5001 GB, free: 2.949 MB / 378.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 () * Number of clocked 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.0009987/0.357, allocations: 0.935 MB / 0.5011 GB, free: 1.98 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0009076/0.3579, allocations: 0.4934 MB / 0.5015 GB, free: 1.461 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.557e-06/0.3579, allocations: 0 / 0.5015 GB, free: 1.461 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005031/0.3584, allocations: 361.7 kB / 0.5019 GB, free: 1.082 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002701/0.3587, allocations: 27.39 kB / 0.5019 GB, free: 1.059 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1694/0.5281, allocations: 3.674 MB / 0.5055 GB, free: 94.17 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003134/0.5285, allocations: 0.7825 MB / 0.5063 GB, free: 93.47 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001764/0.5287, allocations: 26.52 kB / 0.5063 GB, free: 93.47 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000143/0.5288, allocations: 99.52 kB / 0.5064 GB, free: 93.46 MB / 378.7 MB Notification: Performance of SimCode: time 1.032e-06/0.5288, allocations: 4.062 kB / 0.5064 GB, free: 93.46 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01761/0.5465, allocations: 5.114 MB / 0.5114 GB, free: 93.25 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001569/0.5467, allocations: 227.3 kB / 0.5116 GB, free: 93 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.902/2.449, allocations: 7.25 kB / 0.5116 GB, free: 93 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