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.002437/0.002437, allocations: 182.4 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.143/2.143, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001157/0.001157, allocations: 94.64 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.645e-05/3.65e-05, allocations: 4 kB / 321.6 MB, free: 17.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1089/0.1089, allocations: 47.58 MB / 369.2 MB, free: 2.109 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4472/0.5562, allocations: 93.58 MB / 462.8 MB, free: 15.79 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000313/0.5566, allocations: 84.2 kB / 462.9 MB, free: 15.75 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1569/0.7135, allocations: 37.4 MB / 0.4885 GB, free: 11.72 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.374e-06/0.7136, allocations: 0 / 0.4885 GB, free: 11.72 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.542e-05/0.7137, allocations: 24 kB / 0.4886 GB, free: 11.7 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.007551/0.7212, allocations: 1.611 MB / 0.4901 GB, free: 10.03 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.724e-05/0.7213, allocations: 8.031 kB / 0.4901 GB, free: 10.02 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008373/0.7222, allocations: 218.4 kB / 0.4903 GB, free: 9.793 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005145/0.7273, allocations: 0.5094 MB / 0.4908 GB, free: 9.281 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002551/0.7299, allocations: 0.7543 MB / 0.4916 GB, free: 8.48 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002653/0.7302, allocations: 144.7 kB / 0.4917 GB, free: 8.332 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00051/0.7308, allocations: 155.9 kB / 0.4919 GB, free: 8.18 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004388/0.7352, allocations: 1.289 MB / 0.4931 GB, free: 6.871 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.636e-05/0.7353, allocations: 12 kB / 0.4931 GB, free: 6.859 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002348/0.7355, allocations: 56 kB / 0.4932 GB, free: 6.805 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.617e-05/0.7356, allocations: 36 kB / 0.4932 GB, free: 6.77 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004436/0.74, allocations: 1.234 MB / 0.4944 GB, free: 5.527 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01565/0.7558, allocations: 5.085 MB / 0.4994 GB, free: 196 kB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005246/0.7611, allocations: 2.376 MB / 0.5017 GB, free: 13.55 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001953/0.7631, allocations: 0.5325 MB / 0.5022 GB, free: 13.02 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003028/0.7634, allocations: 110.3 kB / 0.5023 GB, free: 12.89 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002287/0.7658, allocations: 0.701 MB / 0.503 GB, free: 12.16 MB / 394.7 MB Notification: Performance of pre-optimization done (n=134): time 5.501e-06/0.7658, allocations: 0 / 0.503 GB, free: 12.16 MB / 394.7 MB Notification: Performance of matching and sorting (n=165): time 0.02123/0.7871, allocations: 4.942 MB / 0.5078 GB, free: 7.137 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001768/0.7873, allocations: 226.9 kB / 0.5081 GB, free: 6.867 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001272/0.7886, allocations: 0.5426 MB / 0.5086 GB, free: 6.32 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003387/0.7889, allocations: 57.7 kB / 0.5086 GB, free: 6.258 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006583/0.7896, allocations: 0.6036 MB / 0.5092 GB, free: 5.645 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000826/0.7904, allocations: 0.539 MB / 0.5098 GB, free: 5.098 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001495/0.7906, allocations: 36 kB / 0.5098 GB, free: 5.062 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002296/0.7909, allocations: 378.7 kB / 0.5102 GB, free: 4.684 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001482/0.7923, allocations: 468 kB / 0.5106 GB, free: 4.227 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001818/0.7942, allocations: 0.8254 MB / 0.5114 GB, free: 3.258 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001834/0.7961, allocations: 0.5854 MB / 0.512 GB, free: 2.676 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.419e-05/0.7961, allocations: 4 kB / 0.512 GB, free: 2.672 MB / 394.7 MB Notification: Performance of matching and sorting (n=220) (initialization): time 0.007047/0.8031, allocations: 1.895 MB / 0.5138 GB, free: 0.7539 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.953e-05/0.8032, allocations: 12 kB / 0.5139 GB, free: 0.7422 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.037e-05/0.8033, allocations: 11.98 kB / 0.5139 GB, free: 0.7305 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002675/0.806, allocations: 479.9 kB / 0.5143 GB, free: 256 kB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002639/0.8087, allocations: 303.5 kB / 0.5146 GB, free: 15.95 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01632/0.825, allocations: 8.589 MB / 0.523 GB, free: 6.836 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002016/0.8271, allocations: 91.92 kB / 0.5231 GB, free: 6.746 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002102/0.8273, allocations: 67.98 kB / 0.5231 GB, free: 6.68 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.0005052/0.8278, allocations: 215.8 kB / 0.5234 GB, free: 6.461 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002931/0.8281, allocations: 118.6 kB / 0.5235 GB, free: 6.344 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006711/0.8349, allocations: 1.769 MB / 0.5252 GB, free: 4.551 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.468e-05/0.835, allocations: 20 kB / 0.5252 GB, free: 4.531 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.613e-05/0.835, allocations: 8 kB / 0.5252 GB, free: 4.523 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.696e-05/0.835, allocations: 7.969 kB / 0.5252 GB, free: 4.516 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01075/0.8458, allocations: 3.597 MB / 0.5287 GB, free: 0.8359 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.897e-05/0.8459, allocations: 11.92 kB / 0.5288 GB, free: 0.8242 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002088/0.848, allocations: 211.8 kB / 0.529 GB, free: 0.6172 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002614/0.8506, allocations: 455 kB / 0.5294 GB, free: 164 kB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003512/0.851, allocations: 36.27 kB / 0.5294 GB, free: 128 kB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3058/1.157, allocations: 8.301 MB / 0.5375 GB, free: 104.2 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.508e-06/1.157, allocations: 1.062 kB / 0.5375 GB, free: 104.2 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008523/1.165, allocations: 2.522 MB / 0.54 GB, free: 103.9 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001032/1.166, allocations: 299.2 kB / 0.5403 GB, free: 103.8 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000335/1.167, allocations: 33.5 kB / 0.5403 GB, free: 103.8 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001585/1.168, allocations: 72.12 kB / 0.5404 GB, free: 103.8 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005832/1.169, allocations: 128.2 kB / 0.5405 GB, free: 103.8 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001757/1.169, allocations: 50.45 kB / 0.5406 GB, free: 103.8 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0009185/1.17, allocations: 421.6 kB / 0.541 GB, free: 103.7 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.91e-07/1.17, allocations: 0 / 0.541 GB, free: 103.7 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002943/1.173, allocations: 434.3 kB / 0.5414 GB, free: 103.7 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.009221/1.182, allocations: 3.486 MB / 0.5448 GB, free: 102.5 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005581/1.188, allocations: 1.981 MB / 0.5467 GB, free: 102 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.28e-05/1.188, allocations: 5.109 kB / 0.5467 GB, free: 102 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003711/1.192, allocations: 1.359 MB / 0.548 GB, free: 101.5 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00112/1.193, allocations: 96.11 kB / 0.5481 GB, free: 101.5 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01213/1.205, allocations: 2.926 MB / 0.551 GB, free: 100.8 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001233/1.206, allocations: 1.218 MB / 0.5522 GB, free: 100.1 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001392/1.208, allocations: 0.5392 MB / 0.5527 GB, free: 100.1 MB / 410.7 MB Notification: Performance of SimCode: time 1.362e-06/1.208, allocations: 0 / 0.5527 GB, free: 100.1 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.206/4.414, allocations: 43.13 MB / 0.5948 GB, free: 83.18 MB / 410.7 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