Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.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.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_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.001699/0.001699, allocations: 175.5 kB / 13.63 MB, free: 1.684 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.449/1.449, allocations: 221.3 MB / 235.5 MB, free: 2.91 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.0009945/0.0009947, allocations: 93.84 kB / 286.5 MB, free: 176 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.431e-05/3.434e-05, allocations: 4 kB / 343.9 MB, free: 4.188 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1134/0.1134, allocations: 50.42 MB / 394.4 MB, free: 1.727 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4103/0.5238, allocations: 87.56 MB / 481.9 MB, free: 15.75 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003239/0.5242, allocations: 91.94 kB / 482 MB, free: 15.66 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06193/0.5862, allocations: 25.65 MB / 0.4958 GB, free: 5.691 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.352e-06/0.5862, allocations: 4 kB / 0.4958 GB, free: 5.688 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.714e-05/0.5862, allocations: 12 kB / 0.4958 GB, free: 5.676 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 212 * Number of variables: 212 Notification: Performance of Generate backend data structure: time 0.003171/0.5894, allocations: 1.112 MB / 0.4969 GB, free: 4.512 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.196e-05/0.5895, allocations: 12.03 kB / 0.4969 GB, free: 4.5 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001671/0.5896, allocations: 127.2 kB / 0.497 GB, free: 4.367 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001991/0.5916, allocations: 330.8 kB / 0.4973 GB, free: 4.043 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002825/0.5919, allocations: 246.1 kB / 0.4976 GB, free: 3.762 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.237e-05/0.592, allocations: 62 kB / 0.4976 GB, free: 3.703 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001529/0.5922, allocations: 88 kB / 0.4977 GB, free: 3.617 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001419/0.5936, allocations: 0.8135 MB / 0.4985 GB, free: 2.789 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.892e-05/0.5937, allocations: 4.281 kB / 0.4985 GB, free: 2.785 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.656e-05/0.5937, allocations: 39.95 kB / 0.4985 GB, free: 2.746 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.267e-05/0.5938, allocations: 20 kB / 0.4986 GB, free: 2.727 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001292/0.5951, allocations: 0.7029 MB / 0.4992 GB, free: 2.023 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004673/0.5998, allocations: 2.989 MB / 0.5022 GB, free: 14.85 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001121/0.6009, allocations: 0.9616 MB / 0.5031 GB, free: 13.76 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003244/0.6012, allocations: 212.3 kB / 0.5033 GB, free: 13.55 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001201/0.6014, allocations: 93.64 kB / 0.5034 GB, free: 13.44 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.07e-05/0.6014, allocations: 39.12 kB / 0.5034 GB, free: 13.39 MB / 394.7 MB Notification: Performance of pre-optimization done (n=58): time 2.926e-06/0.6014, allocations: 0 / 0.5034 GB, free: 13.39 MB / 394.7 MB Notification: Performance of matching and sorting (n=61): time 0.005646/0.6071, allocations: 1.828 MB / 0.5052 GB, free: 11.51 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.877e-05/0.6072, allocations: 85.67 kB / 0.5053 GB, free: 11.41 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003649/0.6076, allocations: 282.5 kB / 0.5056 GB, free: 11.12 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 5.243e-05/0.6076, allocations: 37.7 kB / 0.5056 GB, free: 11.08 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002517/0.6079, allocations: 358.6 kB / 0.5059 GB, free: 10.72 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001843/0.6081, allocations: 216.9 kB / 0.5061 GB, free: 10.5 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.001e-05/0.6081, allocations: 12 kB / 0.5062 GB, free: 10.49 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002001/0.6083, allocations: 354.8 kB / 0.5065 GB, free: 10.14 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004579/0.6088, allocations: 202 kB / 0.5067 GB, free: 9.938 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006436/0.6095, allocations: 436.5 kB / 0.5071 GB, free: 9.402 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004807/0.61, allocations: 271.1 kB / 0.5074 GB, free: 9.141 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.451e-06/0.61, allocations: 4 kB / 0.5074 GB, free: 9.137 MB / 394.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.001369/0.6114, allocations: 0.7544 MB / 0.5081 GB, free: 8.371 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.978e-05/0.6114, allocations: 15.89 kB / 0.5081 GB, free: 8.355 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.025e-05/0.6114, allocations: 8 kB / 0.5081 GB, free: 8.348 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003081/0.6117, allocations: 65.67 kB / 0.5082 GB, free: 8.277 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009387/0.6127, allocations: 215.7 kB / 0.5084 GB, free: 8.066 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002536/0.6152, allocations: 2.663 MB / 0.511 GB, free: 5.137 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007132/0.616, allocations: 72.02 kB / 0.5111 GB, free: 5.066 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.632e-05/0.6161, allocations: 39.98 kB / 0.5111 GB, free: 5.027 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (95): * Single equations (assignments): 93 * 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.0001949/0.6163, allocations: 144.7 kB / 0.5112 GB, free: 4.879 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.902e-05/0.6164, allocations: 51.33 kB / 0.5113 GB, free: 4.828 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001267/0.6176, allocations: 0.6066 MB / 0.5119 GB, free: 4.203 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.876e-06/0.6177, allocations: 8 kB / 0.5119 GB, free: 4.195 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.356e-06/0.6177, allocations: 4 kB / 0.5119 GB, free: 4.191 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.097e-05/0.6177, allocations: 7.938 kB / 0.5119 GB, free: 4.184 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002545/0.6202, allocations: 1.29 MB / 0.5132 GB, free: 2.832 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.569e-06/0.6203, allocations: 0 / 0.5132 GB, free: 2.832 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008546/0.6211, allocations: 143.8 kB / 0.5133 GB, free: 2.691 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001713/0.6213, allocations: 61.61 kB / 0.5134 GB, free: 2.625 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.651e-05/0.6214, allocations: 19.98 kB / 0.5134 GB, free: 2.605 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0023/0.6237, allocations: 2.64 MB / 0.516 GB, free: 15.7 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.001e-06/0.6237, allocations: 3.938 kB / 0.516 GB, free: 15.7 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001469/0.6252, allocations: 0.883 MB / 0.5168 GB, free: 14.79 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000217/0.6254, allocations: 168.7 kB / 0.517 GB, free: 14.61 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.92e-05/0.6255, allocations: 8 kB / 0.517 GB, free: 14.6 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005272/0.626, allocations: 64 kB / 0.5171 GB, free: 14.54 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001377/0.6262, allocations: 52.42 kB / 0.5171 GB, free: 14.48 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.187e-05/0.6262, allocations: 23.98 kB / 0.5171 GB, free: 14.46 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0002125/0.6264, allocations: 214.2 kB / 0.5173 GB, free: 14.26 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.6264, allocations: 0 / 0.5173 GB, free: 14.26 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0006849/0.6271, allocations: 184 kB / 0.5175 GB, free: 14.08 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (core.port_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 56 * 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.002003/0.6291, allocations: 1.529 MB / 0.519 GB, free: 12.52 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001273/0.6304, allocations: 0.7719 MB / 0.5198 GB, free: 11.73 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.6304, allocations: 4.062 kB / 0.5198 GB, free: 11.72 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006691/0.6311, allocations: 488.3 kB / 0.5202 GB, free: 11.22 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003039/0.6314, allocations: 37.2 kB / 0.5203 GB, free: 11.18 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002671/0.6341, allocations: 0.9839 MB / 0.5212 GB, free: 10.17 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005754/0.6347, allocations: 0.8964 MB / 0.5221 GB, free: 9.25 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0004922/0.6352, allocations: 92.52 kB / 0.5222 GB, free: 9.156 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003705/0.6356, allocations: 227.3 kB / 0.5224 GB, free: 8.934 MB / 410.7 MB Notification: Performance of SimCode: time 5.91e-07/0.6356, allocations: 0 / 0.5224 GB, free: 8.934 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02707/0.6627, allocations: 10.89 MB / 0.533 GB, free: 14.27 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002727/0.663, allocations: 232.6 kB / 0.5333 GB, free: 14.04 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.425/3.088, allocations: 0 / 0.5333 GB, free: 14.04 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection_fmu --startTime=0 --stopTime=0.05 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_BasicExamples_ToroidalCoreQuadraticCrossSection.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection_res.mat does not exist to compare? outputFormat=mat