Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_NonLinearInductor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_NonLinearInductor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001223/0.001223, allocations: 172.9 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.34/1.34, allocations: 205.2 MB / 219.8 MB, free: 14.2 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007255/0.0007255, allocations: 82.72 kB / 268 MB, free: 14.02 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.225e-05/2.238e-05, allocations: 4 kB / 322.6 MB, free: 17.23 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07819/0.07823, allocations: 47.57 MB / 370.1 MB, free: 1.598 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2877/0.366, allocations: 93.58 MB / 463.7 MB, free: 15.87 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002561/0.3663, allocations: 82.58 kB / 463.8 MB, free: 15.83 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08803/0.4543, allocations: 37.39 MB / 0.4894 GB, free: 11.36 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.172e-06/0.4544, allocations: 0 / 0.4894 GB, free: 11.36 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.101e-05/0.4544, allocations: 28 kB / 0.4895 GB, free: 11.34 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: 375 * Number of variables: 375 Notification: Performance of Generate backend data structure: time 0.003676/0.4581, allocations: 1.611 MB / 0.491 GB, free: 9.668 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.646e-05/0.4581, allocations: 8.031 kB / 0.491 GB, free: 9.66 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003252/0.4585, allocations: 222.4 kB / 0.4913 GB, free: 9.43 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002864/0.4614, allocations: 0.5172 MB / 0.4918 GB, free: 8.91 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001194/0.4626, allocations: 0.7466 MB / 0.4925 GB, free: 8.117 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001292/0.4627, allocations: 140.7 kB / 0.4926 GB, free: 7.973 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002106/0.4629, allocations: 167.8 kB / 0.4928 GB, free: 7.809 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002205/0.4651, allocations: 1.289 MB / 0.494 GB, free: 6.496 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.716e-05/0.4652, allocations: 0 / 0.494 GB, free: 6.496 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001283/0.4653, allocations: 60 kB / 0.4941 GB, free: 6.438 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.75e-05/0.4653, allocations: 36 kB / 0.4941 GB, free: 6.402 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001991/0.4673, allocations: 1.234 MB / 0.4953 GB, free: 5.164 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007531/0.4749, allocations: 5.077 MB / 0.5003 GB, free: 15.84 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002663/0.4776, allocations: 2.38 MB / 0.5026 GB, free: 13.19 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007769/0.4784, allocations: 0.5325 MB / 0.5031 GB, free: 12.66 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001278/0.4785, allocations: 110.3 kB / 0.5032 GB, free: 12.54 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001055/0.4796, allocations: 0.7088 MB / 0.5039 GB, free: 11.79 MB / 394.7 MB Notification: Performance of pre-optimization done (n=134): time 3.737e-06/0.4796, allocations: 0 / 0.5039 GB, free: 11.79 MB / 394.7 MB Notification: Performance of matching and sorting (n=165): time 0.01065/0.4903, allocations: 4.935 MB / 0.5088 GB, free: 6.777 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001112/0.4904, allocations: 234.9 kB / 0.509 GB, free: 6.5 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006826/0.4911, allocations: 0.5426 MB / 0.5095 GB, free: 5.953 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 9.976e-05/0.4912, allocations: 57.7 kB / 0.5096 GB, free: 5.891 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004433/0.4917, allocations: 0.5816 MB / 0.5101 GB, free: 5.297 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003781/0.4921, allocations: 0.5351 MB / 0.5107 GB, free: 4.754 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.713e-05/0.4921, allocations: 36 kB / 0.5107 GB, free: 4.719 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001762/0.4923, allocations: 418.7 kB / 0.5111 GB, free: 4.301 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007456/0.4931, allocations: 460 kB / 0.5115 GB, free: 3.852 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009638/0.494, allocations: 0.8293 MB / 0.5123 GB, free: 2.879 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00091/0.495, allocations: 0.5868 MB / 0.5129 GB, free: 2.293 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.129e-06/0.495, allocations: 0 / 0.5129 GB, free: 2.293 MB / 394.7 MB Notification: Performance of matching and sorting (n=220) (initialization): time 0.003631/0.4986, allocations: 1.942 MB / 0.5148 GB, free: 336 kB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.091e-05/0.4987, allocations: 19.92 kB / 0.5148 GB, free: 316 kB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.801e-05/0.4987, allocations: 8 kB / 0.5148 GB, free: 308 kB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001408/0.5001, allocations: 475.9 kB / 0.5153 GB, free: 15.82 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00114/0.5013, allocations: 303.5 kB / 0.5156 GB, free: 15.53 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009139/0.5104, allocations: 8.585 MB / 0.524 GB, free: 6.414 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001271/0.5117, allocations: 95.92 kB / 0.5241 GB, free: 6.32 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001137/0.5118, allocations: 71.98 kB / 0.5241 GB, free: 6.25 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 18 ($whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.fundamentalWavePermabilitySensor.harmonicPotential.mean1.y,fundamentalWavePermabilitySensor.harmonicPotential.mean1.y,$PRE.fundamentalWavePermabilitySensor.harmonicPotential.mean2.y,fundamentalWavePermabilitySensor.harmonicPotential.mean2.y,$PRE.fundamentalWavePermabilitySensor.harmonicFlux.mean1.y,fundamentalWavePermabilitySensor.harmonicFlux.mean1.y,$PRE.fundamentalWavePermabilitySensor.harmonicFlux.mean2.y,fundamentalWavePermabilitySensor.harmonicFlux.mean2.y,$PRE.rootMeanSquare.mean1.y,rootMeanSquare.mean1.y,$PRE.rootMeanSquare.mean2.y,rootMeanSquare.mean2.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (166): * Single equations (assignments): 162 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 9,(1,100.0%) 19,(2,100.0%) 18} * Non-linear torn systems: 1 {1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0002928/0.5121, allocations: 207.8 kB / 0.5243 GB, free: 6.039 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001578/0.5123, allocations: 114.6 kB / 0.5244 GB, free: 5.926 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003602/0.5159, allocations: 1.773 MB / 0.5262 GB, free: 4.129 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.638e-05/0.516, allocations: 20 kB / 0.5262 GB, free: 4.109 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.399e-05/0.516, allocations: 12 kB / 0.5262 GB, free: 4.098 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.722e-05/0.516, allocations: 7.969 kB / 0.5262 GB, free: 4.09 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005701/0.5217, allocations: 3.605 MB / 0.5297 GB, free: 412 kB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.073e-05/0.5218, allocations: 3.984 kB / 0.5297 GB, free: 408 kB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009429/0.5227, allocations: 207.8 kB / 0.5299 GB, free: 200 kB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.181/0.7037, allocations: 436.2 kB / 0.5303 GB, free: 109.2 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002701/0.704, allocations: 38.59 kB / 0.5304 GB, free: 109.2 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007789/0.7118, allocations: 8.322 MB / 0.5385 GB, free: 104 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.609e-06/0.7119, allocations: 2.047 kB / 0.5385 GB, free: 104 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004615/0.7165, allocations: 2.515 MB / 0.541 GB, free: 103.6 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004921/0.717, allocations: 300.4 kB / 0.5412 GB, free: 103.5 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001429/0.7172, allocations: 35.36 kB / 0.5413 GB, free: 103.5 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007186/0.7179, allocations: 74.55 kB / 0.5413 GB, free: 103.5 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003326/0.7183, allocations: 129.2 kB / 0.5415 GB, free: 103.5 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.628e-05/0.7184, allocations: 50.89 kB / 0.5415 GB, free: 103.5 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0005091/0.7189, allocations: 419.5 kB / 0.5419 GB, free: 103.4 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.6e-07/0.7189, allocations: 0 / 0.5419 GB, free: 103.4 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001539/0.7204, allocations: 433.3 kB / 0.5423 GB, free: 103.4 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 8 (coil.i,fundamentalWavePermabilitySensor.harmonicPotential.mean1.x,fundamentalWavePermabilitySensor.harmonicPotential.mean2.x,fundamentalWavePermabilitySensor.harmonicFlux.mean1.x,fundamentalWavePermabilitySensor.harmonicFlux.mean2.x,rootMeanSquare.mean1.x,rootMeanSquare.mean2.x,currentSensorQS.pin_p.reference.gamma) * Number of discrete variables: 12 ($whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,fundamentalWavePermabilitySensor.harmonicPotential.mean1.y,fundamentalWavePermabilitySensor.harmonicPotential.mean2.y,fundamentalWavePermabilitySensor.harmonicFlux.mean1.y,fundamentalWavePermabilitySensor.harmonicFlux.mean2.y,rootMeanSquare.mean1.y,rootMeanSquare.mean2.y) * Number of discrete states: 6 (fundamentalWavePermabilitySensor.harmonicPotential.mean1.x,fundamentalWavePermabilitySensor.harmonicPotential.mean2.x,fundamentalWavePermabilitySensor.harmonicFlux.mean1.x,fundamentalWavePermabilitySensor.harmonicFlux.mean2.x,rootMeanSquare.mean1.x,rootMeanSquare.mean2.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (115): * Single equations (assignments): 105 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 9,(2,100.0%) 18,(1,100.0%) 17} * Non-linear torn systems: 1 {1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.004723/0.7252, allocations: 3.488 MB / 0.5457 GB, free: 102.2 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00303/0.7282, allocations: 1.978 MB / 0.5477 GB, free: 101.7 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.29e-06/0.7282, allocations: 2.203 kB / 0.5477 GB, free: 101.7 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00174/0.73, allocations: 1.339 MB / 0.549 GB, free: 101.2 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005775/0.7306, allocations: 97.14 kB / 0.5491 GB, free: 101.2 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00688/0.7375, allocations: 2.879 MB / 0.5519 GB, free: 100.6 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007909/0.7383, allocations: 1.223 MB / 0.5531 GB, free: 99.88 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0007981/0.7391, allocations: 161.5 kB / 0.5532 GB, free: 99.87 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006427/0.7397, allocations: 0.5203 MB / 0.5537 GB, free: 99.86 MB / 410.7 MB Notification: Performance of SimCode: time 7.51e-07/0.7398, allocations: 1.156 kB / 0.5537 GB, free: 99.86 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03911/0.7789, allocations: 26.94 MB / 0.5801 GB, free: 98.07 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001475/0.7791, allocations: 210.6 kB / 0.5803 GB, free: 97.84 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.781/3.56, allocations: 0 / 0.5803 GB, free: 97.84 MB / 410.7 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_NonLinearInductor_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-07 Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_NonLinearInductor.fmu > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor_res.mat does not exist to compare? outputFormat=mat