Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.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.QuadraticCoreAirgap,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_QuadraticCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_QuadraticCoreAirgap",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.001025/0.001025, allocations: 176.2 kB / 8.348 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.26/1.26, allocations: 221.5 MB / 230.3 MB, free: 7.598 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.0007896/0.0007896, allocations: 94.41 kB / 281.2 MB, free: 5.352 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.175e-05/1.178e-05, allocations: 0 / 337.1 MB, free: 9.961 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09103/0.09106, allocations: 50.42 MB / 387.6 MB, free: 7.5 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3188/0.4099, allocations: 80.73 MB / 468.3 MB, free: 14.04 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002613/0.4102, allocations: 79.95 kB / 468.4 MB, free: 13.96 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03403/0.4443, allocations: 12.16 MB / 480.5 MB, free: 1.758 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.232e-06/0.4443, allocations: 0 / 480.5 MB, free: 1.758 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.468e-05/0.4443, allocations: 12 kB / 480.5 MB, free: 1.746 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: 128 * Number of variables: 128 Notification: Performance of Generate backend data structure: time 0.001301/0.4456, allocations: 0.723 MB / 481.3 MB, free: 0.9805 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.39e-05/0.4457, allocations: 8.031 kB / 481.3 MB, free: 0.9727 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000104/0.4458, allocations: 67.23 kB / 481.3 MB, free: 0.9062 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004665/0.4463, allocations: 339.5 kB / 481.7 MB, free: 0.5312 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.752e-05/0.4463, allocations: 20 kB / 481.7 MB, free: 0.5117 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.084e-05/0.4464, allocations: 32 kB / 481.7 MB, free: 492 kB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005572/0.4469, allocations: 310.5 kB / 482 MB, free: 180 kB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005851/0.4475, allocations: 324.1 kB / 482.3 MB, free: 15.85 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.191e-05/0.4476, allocations: 0 / 482.3 MB, free: 15.85 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.236e-05/0.4476, allocations: 3.953 kB / 482.3 MB, free: 15.84 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.193e-05/0.4476, allocations: 12 kB / 482.4 MB, free: 15.83 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002403/0.45, allocations: 1.509 MB / 483.9 MB, free: 14.23 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005643/0.4506, allocations: 357 kB / 484.2 MB, free: 13.85 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000288/0.4509, allocations: 157.5 kB / 484.4 MB, free: 13.69 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.14e-05/0.451, allocations: 8.391 kB / 484.4 MB, free: 13.68 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.827e-05/0.451, allocations: 42.83 kB / 484.4 MB, free: 13.63 MB / 362.7 MB Notification: Performance of pre-optimization done (n=39): time 1.943e-06/0.451, allocations: 0 / 484.4 MB, free: 13.63 MB / 362.7 MB Notification: Performance of matching and sorting (n=55): time 0.001811/0.4528, allocations: 0.8315 MB / 485.2 MB, free: 12.79 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.178e-05/0.4529, allocations: 55.97 kB / 485.3 MB, free: 12.72 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003651/0.4532, allocations: 318.2 kB / 485.6 MB, free: 12.41 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.81e-05/0.4533, allocations: 25.7 kB / 485.6 MB, free: 12.38 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001937/0.4535, allocations: 307.7 kB / 485.9 MB, free: 12.07 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001201/0.4536, allocations: 181.2 kB / 486.1 MB, free: 11.89 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.356e-05/0.4536, allocations: 0 / 486.1 MB, free: 11.89 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.00013/0.4538, allocations: 358.7 kB / 486.5 MB, free: 11.53 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002158/0.454, allocations: 129.6 kB / 486.6 MB, free: 11.4 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000314/0.4543, allocations: 247.9 kB / 486.8 MB, free: 11.12 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002691/0.4546, allocations: 170.1 kB / 487 MB, free: 10.96 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.4546, allocations: 4 kB / 487 MB, free: 10.95 MB / 362.7 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.001025/0.4556, allocations: 0.6055 MB / 487.6 MB, free: 10.33 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.192e-05/0.4557, allocations: 8 kB / 487.6 MB, free: 10.32 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.595e-06/0.4557, allocations: 0 / 487.6 MB, free: 10.32 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005069/0.4562, allocations: 182.2 kB / 487.8 MB, free: 10.14 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004994/0.4567, allocations: 119.9 kB / 487.9 MB, free: 10.02 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003767/0.4605, allocations: 3.747 MB / 491.7 MB, free: 6.047 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004724/0.461, allocations: 23.89 kB / 491.7 MB, free: 6.023 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.941e-05/0.461, allocations: 31.98 kB / 491.7 MB, free: 5.992 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 (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%) 12,(1,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001194/0.4611, allocations: 116.8 kB / 491.8 MB, free: 5.871 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0008394/0.462, allocations: 475.9 kB / 492.3 MB, free: 5.391 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.697e-05/0.4621, allocations: 55.31 kB / 492.3 MB, free: 5.336 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001278/0.4622, allocations: 52.69 kB / 492.4 MB, free: 5.285 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.989e-06/0.4622, allocations: 4 kB / 492.4 MB, free: 5.281 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.791e-06/0.4622, allocations: 4 kB / 492.4 MB, free: 5.277 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.293e-06/0.4622, allocations: 3.984 kB / 492.4 MB, free: 5.273 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001738/0.464, allocations: 1.11 MB / 493.5 MB, free: 4.105 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.068e-06/0.464, allocations: 0 / 493.5 MB, free: 4.105 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003156/0.4643, allocations: 71.89 kB / 493.6 MB, free: 4.035 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003904/0.4647, allocations: 153.7 kB / 493.7 MB, free: 3.879 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.277e-05/0.4648, allocations: 4 kB / 493.7 MB, free: 3.875 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003195/0.468, allocations: 3.548 MB / 497.3 MB, free: 96 kB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.429e-06/0.468, allocations: 8.016 kB / 497.3 MB, free: 88 kB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000865/0.4689, allocations: 0.6369 MB / 497.9 MB, free: 15.4 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001422/0.469, allocations: 120.5 kB / 498.1 MB, free: 15.26 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.066e-05/0.4691, allocations: 7.984 kB / 498.1 MB, free: 15.25 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000302/0.4694, allocations: 15.98 kB / 498.1 MB, free: 15.24 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.239e-05/0.4695, allocations: 52.31 kB / 498.1 MB, free: 15.19 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.442e-05/0.4695, allocations: 16.38 kB / 498.1 MB, free: 15.17 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002437/0.4698, allocations: 236.6 kB / 498.4 MB, free: 14.95 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4698, allocations: 0 / 498.4 MB, free: 14.95 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006676/0.4704, allocations: 124 kB / 498.5 MB, free: 14.82 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 33 * 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%) 10,(1,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001183/0.4716, allocations: 1.468 MB / 500 MB, free: 13.29 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001083/0.4727, allocations: 0.6606 MB / 0.4889 GB, free: 12.6 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.005e-06/0.4728, allocations: 0 / 0.4889 GB, free: 12.6 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006021/0.4734, allocations: 477.2 kB / 0.4893 GB, free: 12.12 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003118/0.4737, allocations: 25.34 kB / 0.4894 GB, free: 12.09 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001433/0.4751, allocations: 0.6667 MB / 0.49 GB, free: 11.38 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004105/0.4756, allocations: 0.8717 MB / 0.4909 GB, free: 10.48 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002002/0.4758, allocations: 44.25 kB / 0.4909 GB, free: 10.43 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002265/0.476, allocations: 171.4 kB / 0.4911 GB, free: 10.27 MB / 378.7 MB Notification: Performance of SimCode: time 5.11e-07/0.476, allocations: 0 / 0.4911 GB, free: 10.27 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02712/0.5031, allocations: 8.116 MB / 0.499 GB, free: 2.164 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001639/0.5033, allocations: 159 kB / 0.4992 GB, free: 1.977 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.213/2.716, allocations: 0 / 0.4992 GB, free: 1.977 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_QuadraticCoreAirgap_fmu --startTime=0 --stopTime=0.05 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_QuadraticCoreAirgap.fmu > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap_res.mat does not exist to compare? outputFormat=mat