Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.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.ToroidalCoreAirgap,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001486/0.001486, allocations: 176.4 kB / 8.346 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.413/1.413, allocations: 221.5 MB / 230.3 MB, free: 7.59 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009266/0.0009267, allocations: 89.75 kB / 281.2 MB, free: 5.336 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.738e-05/1.733e-05, allocations: 0 / 337.1 MB, free: 9.93 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1059/0.1059, allocations: 50.42 MB / 387.6 MB, free: 7.465 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3392/0.4451, allocations: 80.2 MB / 467.8 MB, free: 14.5 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002468/0.4454, allocations: 79.95 kB / 467.8 MB, free: 14.42 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02365/0.4691, allocations: 8.243 MB / 476.1 MB, free: 6.16 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.4691, allocations: 0 / 476.1 MB, free: 6.16 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.434e-05/0.4692, allocations: 8 kB / 476.1 MB, free: 6.152 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.0008868/0.4701, allocations: 0.5694 MB / 476.7 MB, free: 5.539 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.323e-05/0.4701, allocations: 8.031 kB / 476.7 MB, free: 5.531 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.2e-05/0.4702, allocations: 35.62 kB / 476.7 MB, free: 5.496 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003455/0.4706, allocations: 271.6 kB / 477 MB, free: 5.188 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.189e-05/0.4706, allocations: 8 kB / 477 MB, free: 5.18 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.478e-05/0.4706, allocations: 23.94 kB / 477 MB, free: 5.156 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003606/0.471, allocations: 189.5 kB / 477.2 MB, free: 4.973 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004003/0.4714, allocations: 210.2 kB / 477.4 MB, free: 4.762 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.257e-05/0.4714, allocations: 0 / 477.4 MB, free: 4.762 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.767e-05/0.4715, allocations: 7.953 kB / 477.4 MB, free: 4.754 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.897e-06/0.4715, allocations: 4 kB / 477.4 MB, free: 4.75 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001725/0.4732, allocations: 1.069 MB / 478.5 MB, free: 3.59 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002197/0.4735, allocations: 119.4 kB / 478.6 MB, free: 3.465 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.552e-05/0.4736, allocations: 44.86 kB / 478.6 MB, free: 3.418 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.143e-05/0.4736, allocations: 8 kB / 478.6 MB, free: 3.41 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.462e-05/0.4736, allocations: 34.56 kB / 478.7 MB, free: 3.367 MB / 346.7 MB Notification: Performance of pre-optimization done (n=17): time 1.933e-06/0.4736, allocations: 0 / 478.7 MB, free: 3.367 MB / 346.7 MB Notification: Performance of matching and sorting (n=22): time 0.001016/0.4747, allocations: 381.1 kB / 479 MB, free: 2.984 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.863e-05/0.4748, allocations: 55.59 kB / 479.1 MB, free: 2.918 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002588/0.475, allocations: 222 kB / 479.3 MB, free: 2.695 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.299e-05/0.4751, allocations: 25.7 kB / 479.3 MB, free: 2.664 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001421/0.4752, allocations: 219.9 kB / 479.6 MB, free: 2.445 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.966e-05/0.4753, allocations: 75.94 kB / 479.6 MB, free: 2.371 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.306e-05/0.4753, allocations: 0 / 479.6 MB, free: 2.371 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001501/0.4755, allocations: 334.8 kB / 480 MB, free: 2.035 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001062/0.4756, allocations: 60 kB / 480 MB, free: 1.977 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001805/0.4758, allocations: 152.2 kB / 480.2 MB, free: 1.781 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001486/0.4759, allocations: 85.08 kB / 480.2 MB, free: 1.699 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-06/0.4759, allocations: 4 kB / 480.3 MB, free: 1.695 MB / 346.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0005068/0.4764, allocations: 297.3 kB / 480.5 MB, free: 1.395 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.069e-05/0.4765, allocations: 8 kB / 480.5 MB, free: 1.387 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.189e-05/0.4765, allocations: 8.406 kB / 480.6 MB, free: 1.379 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002764/0.4768, allocations: 61.62 kB / 480.6 MB, free: 1.312 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003506/0.4771, allocations: 79.81 kB / 480.7 MB, free: 1.234 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0021/0.4793, allocations: 2.533 MB / 483.2 MB, free: 14.46 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002937/0.4796, allocations: 31.91 kB / 483.3 MB, free: 14.43 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.338e-05/0.4796, allocations: 16.05 kB / 483.3 MB, free: 14.42 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 9.014e-05/0.4797, allocations: 116.9 kB / 483.4 MB, free: 14.3 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003367/0.48, allocations: 200.4 kB / 483.6 MB, free: 14.09 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.47e-05/0.4801, allocations: 23.72 kB / 483.6 MB, free: 14.07 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.329e-05/0.4802, allocations: 25.95 kB / 483.6 MB, free: 14.05 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.954e-06/0.4802, allocations: 4 kB / 483.6 MB, free: 14.04 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.4802, allocations: 4 kB / 483.6 MB, free: 14.04 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.67e-06/0.4802, allocations: 7.922 kB / 483.6 MB, free: 14.03 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003239/0.4805, allocations: 278 kB / 483.9 MB, free: 13.72 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.4806, allocations: 0 / 483.9 MB, free: 13.72 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002086/0.4808, allocations: 43.97 kB / 484 MB, free: 13.68 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001498/0.4809, allocations: 57.67 kB / 484 MB, free: 13.62 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.252e-05/0.481, allocations: 0 / 484 MB, free: 13.62 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001659/0.4826, allocations: 2.517 MB / 486.5 MB, free: 10.87 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.161e-06/0.4826, allocations: 4.156 kB / 486.5 MB, free: 10.86 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004046/0.4831, allocations: 303.6 kB / 486.8 MB, free: 10.55 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.874e-05/0.4832, allocations: 96.83 kB / 486.9 MB, free: 10.43 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.779e-05/0.4832, allocations: 0 / 486.9 MB, free: 10.43 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002162/0.4834, allocations: 23.97 kB / 487 MB, free: 10.41 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.126e-05/0.4835, allocations: 19.97 kB / 487 MB, free: 10.39 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.369e-05/0.4835, allocations: 4 kB / 487 MB, free: 10.39 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001655/0.4837, allocations: 173.9 kB / 487.1 MB, free: 10.22 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.4837, allocations: 0 / 487.1 MB, free: 10.22 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004101/0.4841, allocations: 60 kB / 487.2 MB, free: 10.16 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.0007128/0.4848, allocations: 0.8425 MB / 488 MB, free: 9.289 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0006053/0.4854, allocations: 414.7 kB / 488.5 MB, free: 8.867 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.255e-06/0.4855, allocations: 0 / 488.5 MB, free: 8.867 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003064/0.4858, allocations: 299.4 kB / 488.7 MB, free: 8.555 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002521/0.486, allocations: 27.11 kB / 488.8 MB, free: 8.527 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009737/0.487, allocations: 375 kB / 489.1 MB, free: 8.125 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003555/0.4874, allocations: 0.7833 MB / 489.9 MB, free: 7.312 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.000151/0.4875, allocations: 26.16 kB / 489.9 MB, free: 7.285 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001348/0.4877, allocations: 95.41 kB / 490 MB, free: 7.195 MB / 362.7 MB Notification: Performance of SimCode: time 4.41e-07/0.4877, allocations: 0 / 490 MB, free: 7.195 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02508/0.5128, allocations: 4.5 MB / 494.5 MB, free: 2.715 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001989/0.513, allocations: 157.7 kB / 494.7 MB, free: 2.527 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.857/2.37, allocations: 0 / 494.7 MB, free: 2.527 MB / 362.7 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap_fmu --startTime=0 --stopTime=0.05 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap.fmu > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.mat does not exist to compare? outputFormat=mat