Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.002202/0.002201, allocations: 180 kB / 8.363 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.108/2.108, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00115/0.00115, allocations: 85.94 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.306e-05/2.31e-05, allocations: 4 kB / 314.9 MB, free: 9.066 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3922/0.3923, allocations: 47.57 MB / 362.4 MB, free: 45.73 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1555/0.5478, allocations: 92.93 MB / 455.4 MB, free: 9.254 MB / 347.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003182/0.5482, allocations: 79.95 kB / 455.4 MB, free: 9.176 MB / 347.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.1596/0.7078, allocations: 36.99 MB / 492.4 MB, free: 3.938 MB / 379.1 MB Notification: Performance of FrontEnd: time 2.415e-06/0.7079, allocations: 0 / 492.4 MB, free: 3.938 MB / 379.1 MB Notification: Performance of Transformations before backend: time 9.829e-05/0.708, allocations: 28 kB / 492.5 MB, free: 3.91 MB / 379.1 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.007735/0.7157, allocations: 1.616 MB / 494.1 MB, free: 2.238 MB / 379.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.083e-05/0.7158, allocations: 12.03 kB / 494.1 MB, free: 2.227 MB / 379.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005124/0.7209, allocations: 0.5095 MB / 494.6 MB, free: 1.715 MB / 379.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002604/0.7236, allocations: 0.7504 MB / 495.3 MB, free: 0.918 MB / 379.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002461/0.7239, allocations: 92.66 kB / 495.4 MB, free: 0.8203 MB / 379.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005708/0.7245, allocations: 95.91 kB / 495.5 MB, free: 0.7266 MB / 379.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004567/0.7291, allocations: 1.154 MB / 496.7 MB, free: 15.57 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004441/0.7336, allocations: 1.064 MB / 497.7 MB, free: 14.49 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.253e-05/0.7337, allocations: 7.938 kB / 497.8 MB, free: 14.48 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001847/0.7339, allocations: 0 / 497.8 MB, free: 14.48 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.982e-05/0.734, allocations: 36 kB / 497.8 MB, free: 14.45 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01571/0.7497, allocations: 4.826 MB / 0.4908 GB, free: 9.391 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005013/0.7548, allocations: 2.334 MB / 0.4931 GB, free: 6.801 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001637/0.7565, allocations: 493.3 kB / 0.4936 GB, free: 6.32 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002547/0.7568, allocations: 110.4 kB / 0.4937 GB, free: 6.191 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001819/0.7586, allocations: 0.6633 MB / 0.4943 GB, free: 5.492 MB / 395.1 MB Notification: Performance of pre-optimization done (n=134): time 5.21e-06/0.7587, allocations: 0 / 0.4943 GB, free: 5.492 MB / 395.1 MB Notification: Performance of matching and sorting (n=165): time 0.02007/0.7787, allocations: 4.697 MB / 0.4989 GB, free: 0.7266 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001582/0.7789, allocations: 230.9 kB / 0.4991 GB, free: 464 kB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2775/1.056, allocations: 499 kB / 0.4996 GB, free: 102.9 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003494/1.057, allocations: 33.11 kB / 0.4997 GB, free: 102.9 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006316/1.058, allocations: 0.6043 MB / 0.5002 GB, free: 102.7 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00075/1.058, allocations: 0.5142 MB / 0.5007 GB, free: 102.4 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001235/1.058, allocations: 0.5 kB / 0.5007 GB, free: 102.4 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001654/1.059, allocations: 376.4 kB / 0.5011 GB, free: 102.1 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001297/1.06, allocations: 426.2 kB / 0.5015 GB, free: 102.1 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001612/1.062, allocations: 0.7852 MB / 0.5023 GB, free: 101.7 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002707/1.064, allocations: 0.6801 MB / 0.5029 GB, free: 101.7 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.742e-05/1.064, allocations: 3.781 kB / 0.5029 GB, free: 101.7 MB / 395.1 MB Notification: Performance of matching and sorting (n=220) (initialization): time 0.008049/1.072, allocations: 1.871 MB / 0.5048 GB, free: 101.6 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.725e-05/1.073, allocations: 12.31 kB / 0.5048 GB, free: 101.6 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.039e-05/1.073, allocations: 12.05 kB / 0.5048 GB, free: 101.6 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002658/1.075, allocations: 463.2 kB / 0.5052 GB, free: 101.5 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002593/1.078, allocations: 306.1 kB / 0.5055 GB, free: 101.5 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02061/1.099, allocations: 8.258 MB / 0.5136 GB, free: 96.35 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003034/1.102, allocations: 59.14 kB / 0.5137 GB, free: 96.35 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006062/1.102, allocations: 69.23 kB / 0.5137 GB, free: 96.35 MB / 395.1 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,(2,100.0%) 18,(2,100.0%) 18} * Non-linear torn systems: 1 {1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0008765/1.103, allocations: 161.8 kB / 0.5139 GB, free: 96.23 MB / 395.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01026/1.114, allocations: 1.613 MB / 0.5154 GB, free: 96.07 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006727/1.114, allocations: 107.7 kB / 0.5155 GB, free: 96.01 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009556/1.124, allocations: 1.749 MB / 0.5173 GB, free: 95.86 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.368e-05/1.124, allocations: 15.47 kB / 0.5173 GB, free: 95.86 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.833e-05/1.124, allocations: 8.75 kB / 0.5173 GB, free: 95.86 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.931e-05/1.124, allocations: 7.922 kB / 0.5173 GB, free: 95.86 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01696/1.141, allocations: 3.406 MB / 0.5206 GB, free: 95.24 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.901e-05/1.141, allocations: 0 / 0.5206 GB, free: 95.24 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003078/1.144, allocations: 217.2 kB / 0.5208 GB, free: 95.24 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003784/1.148, allocations: 430.9 kB / 0.5212 GB, free: 95.21 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000435/1.149, allocations: 22.72 kB / 0.5213 GB, free: 95.21 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01865/1.167, allocations: 7.996 MB / 0.5291 GB, free: 89.17 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.004e-05/1.167, allocations: 0 / 0.5291 GB, free: 89.17 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01296/1.18, allocations: 2.502 MB / 0.5315 GB, free: 88 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001328/1.182, allocations: 297.1 kB / 0.5318 GB, free: 87.78 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005503/1.182, allocations: 14.7 kB / 0.5318 GB, free: 87.77 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00255/1.185, allocations: 44.89 kB / 0.5318 GB, free: 87.77 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008061/1.186, allocations: 128.8 kB / 0.532 GB, free: 87.75 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003578/1.186, allocations: 50.5 kB / 0.532 GB, free: 87.73 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.001092/1.187, allocations: 370 kB / 0.5324 GB, free: 87.54 MB / 395.1 MB Notification: Performance of sort global known variables: time 1.302e-06/1.187, allocations: 1.031 kB / 0.5324 GB, free: 87.54 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.004607/1.192, allocations: 360.9 kB / 0.5327 GB, free: 87.53 MB / 395.1 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.014/1.206, allocations: 3.43 MB / 0.5361 GB, free: 85.55 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.006898/1.213, allocations: 1.854 MB / 0.5379 GB, free: 84.54 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 1.273e-05/1.213, allocations: 0 / 0.5379 GB, free: 84.54 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004778/1.218, allocations: 1.286 MB / 0.5391 GB, free: 83.74 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001649/1.22, allocations: 68.16 kB / 0.5392 GB, free: 83.71 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01295/1.233, allocations: 2.761 MB / 0.5419 GB, free: 82.56 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008524/1.234, allocations: 1.221 MB / 0.5431 GB, free: 81.82 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001234/1.235, allocations: 0.5376 MB / 0.5436 GB, free: 81.41 MB / 395.1 MB Notification: Performance of SimCode: time 1.333e-06/1.235, allocations: 4.219 kB / 0.5436 GB, free: 81.41 MB / 395.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.471/4.706, allocations: 42.89 MB / 0.5855 GB, free: 51.98 MB / 395.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_NonLinearInductor_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-07 Modelica_3_2_3_cpp_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_NonLinearInductor.fmu > Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor_res.mat does not exist to compare? outputFormat=mat