Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001222/0.001222, allocations: 180.8 kB / 16.39 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.327/1.327, allocations: 223.2 MB / 240.3 MB, free: 11.88 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008289/0.0008289, allocations: 102.1 kB / 291.5 MB, free: 10.89 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002567/0.0002568, allocations: 11.94 kB / 351.2 MB, free: 15.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2226/0.2229, allocations: 50.39 MB / 401.6 MB, free: 32.57 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09934/0.3223, allocations: 81.05 MB / 482.6 MB, free: 15.41 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002014/0.3225, allocations: 83.95 kB / 482.7 MB, free: 15.33 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02364/0.3462, allocations: 8.392 MB / 491.1 MB, free: 6.914 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.435e-06/0.3463, allocations: 3.938 kB / 491.1 MB, free: 6.91 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.926e-05/0.3463, allocations: 8 kB / 491.1 MB, free: 6.902 MB / 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.001393/0.3477, allocations: 0.6117 MB / 491.7 MB, free: 6.246 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.256e-05/0.3477, allocations: 12.03 kB / 491.7 MB, free: 6.234 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001482/0.3479, allocations: 70.47 kB / 491.8 MB, free: 6.156 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.995e-05/0.348, allocations: 43.53 kB / 491.8 MB, free: 6.113 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004435/0.3485, allocations: 268.1 kB / 492.1 MB, free: 5.809 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.823e-05/0.3485, allocations: 24.66 kB / 492.1 MB, free: 5.781 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.972e-05/0.3486, allocations: 35.89 kB / 492.2 MB, free: 5.746 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006864/0.3493, allocations: 294 kB / 492.5 MB, free: 5.457 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.189e-05/0.3493, allocations: 4 kB / 492.5 MB, free: 5.453 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.505e-05/0.3493, allocations: 19.95 kB / 492.5 MB, free: 5.434 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.446e-05/0.3494, allocations: 8 kB / 492.5 MB, free: 5.426 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006533/0.35, allocations: 270.5 kB / 492.7 MB, free: 5.164 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001941/0.352, allocations: 1.139 MB / 493.9 MB, free: 3.926 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003774/0.3524, allocations: 151.3 kB / 494 MB, free: 3.77 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.92e-05/0.3524, allocations: 4 kB / 494 MB, free: 3.766 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.463e-05/0.3524, allocations: 34.56 kB / 494.1 MB, free: 3.723 MB / 362.7 MB Notification: Performance of pre-optimization done (n=17): time 1.774e-06/0.3524, allocations: 3.938 kB / 494.1 MB, free: 3.719 MB / 362.7 MB Notification: Performance of matching and sorting (n=22): time 0.002256/0.3547, allocations: 0.6818 MB / 494.8 MB, free: 3.027 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.261e-05/0.3548, allocations: 55.59 kB / 494.8 MB, free: 2.961 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002947/0.3551, allocations: 245.8 kB / 495.1 MB, free: 2.715 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.667e-05/0.3551, allocations: 29.7 kB / 495.1 MB, free: 2.68 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001606/0.3553, allocations: 227.4 kB / 495.3 MB, free: 2.453 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.185e-05/0.3553, allocations: 75 kB / 495.4 MB, free: 2.379 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.383e-05/0.3554, allocations: 8 kB / 495.4 MB, free: 2.371 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001486/0.3555, allocations: 334.8 kB / 495.7 MB, free: 2.035 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003113/0.3558, allocations: 107.9 kB / 495.8 MB, free: 1.93 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003745/0.3562, allocations: 204.5 kB / 496 MB, free: 1.684 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003436/0.3566, allocations: 134.7 kB / 496.1 MB, free: 1.555 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.907e-06/0.3566, allocations: 0 / 496.1 MB, free: 1.555 MB / 362.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0009861/0.3576, allocations: 417.5 kB / 496.6 MB, free: 1.137 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.205e-05/0.3576, allocations: 8 kB / 496.6 MB, free: 1.129 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.02e-05/0.3576, allocations: 0 / 496.6 MB, free: 1.129 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002865/0.3579, allocations: 73.61 kB / 496.6 MB, free: 1.051 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003596/0.3583, allocations: 79.84 kB / 496.7 MB, free: 0.9727 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002363/0.3607, allocations: 2.651 MB / 499.4 MB, free: 14.05 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003131/0.361, allocations: 23.98 kB / 499.4 MB, free: 14.03 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.098e-05/0.361, allocations: 16 kB / 499.4 MB, free: 14.01 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.000194/0.3612, allocations: 158.5 kB / 499.6 MB, free: 13.85 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.124e-05/0.3613, allocations: 27.62 kB / 499.6 MB, free: 13.82 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.973e-05/0.3614, allocations: 34.12 kB / 499.6 MB, free: 13.78 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.278e-06/0.3614, allocations: 4 kB / 499.6 MB, free: 13.78 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.653e-06/0.3614, allocations: 0 / 499.6 MB, free: 13.78 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.808e-06/0.3614, allocations: 0 / 499.6 MB, free: 13.78 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003894/0.3618, allocations: 337.6 kB / 500 MB, free: 13.4 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.3618, allocations: 0 / 500 MB, free: 13.4 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002206/0.362, allocations: 51.97 kB / 0.4883 GB, free: 13.35 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001638/0.3622, allocations: 57.61 kB / 0.4883 GB, free: 13.29 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.499e-05/0.3622, allocations: 0 / 0.4883 GB, free: 13.29 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001892/0.3641, allocations: 2.641 MB / 0.4909 GB, free: 10.38 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.897e-06/0.3642, allocations: 11.91 kB / 0.4909 GB, free: 10.37 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007843/0.3649, allocations: 394.1 kB / 0.4913 GB, free: 9.965 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.433e-05/0.365, allocations: 104.7 kB / 0.4914 GB, free: 9.844 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.897e-05/0.3651, allocations: 4 kB / 0.4914 GB, free: 9.84 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002169/0.3653, allocations: 23.97 kB / 0.4914 GB, free: 9.816 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.651e-05/0.3654, allocations: 19.97 kB / 0.4915 GB, free: 9.797 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.481e-05/0.3654, allocations: 7.984 kB / 0.4915 GB, free: 9.789 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002284/0.3656, allocations: 194 kB / 0.4916 GB, free: 9.602 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3657, allocations: 0 / 0.4916 GB, free: 9.602 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004423/0.3661, allocations: 76 kB / 0.4917 GB, free: 9.527 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.001091/0.3672, allocations: 0.9303 MB / 0.4926 GB, free: 8.562 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0009303/0.3681, allocations: 0.4936 MB / 0.4931 GB, free: 8.043 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.897e-06/0.3682, allocations: 4.25 kB / 0.4931 GB, free: 8.039 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005093/0.3687, allocations: 357.3 kB / 0.4935 GB, free: 7.664 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002701/0.369, allocations: 33.39 kB / 0.4935 GB, free: 7.633 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003737/0.3727, allocations: 3.719 MB / 0.4971 GB, free: 3.809 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003985/0.3731, allocations: 0.7909 MB / 0.4979 GB, free: 2.992 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.00015/0.3733, allocations: 30.22 kB / 0.4979 GB, free: 2.965 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000166/0.3735, allocations: 103.4 kB / 0.498 GB, free: 2.863 MB / 378.7 MB Notification: Performance of SimCode: time 4.91e-07/0.3735, allocations: 3.938 kB / 0.498 GB, free: 2.859 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1997/0.5732, allocations: 5.188 MB / 0.5031 GB, free: 100.9 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002549/0.5735, allocations: 240.1 kB / 0.5033 GB, free: 100.6 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.86/2.433, allocations: 3.688 kB / 0.5033 GB, free: 100.6 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection_fmu --startTime=0 --stopTime=0.05 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection.fmu > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection_res.mat does not exist to compare? outputFormat=mat