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.001475/0.001479, allocations: 186.2 kB / 16.4 MB, free: 5.625 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.046/2.046, allocations: 205.4 MB / 222.5 MB, free: 13.84 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.001129/0.001129, allocations: 94.84 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003971/0.0003973, allocations: 8 kB / 327.1 MB, free: 15 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09325/0.09368, allocations: 47.58 MB / 374.6 MB, free: 15.34 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor): time 0.01113/0.1049, allocations: 6.318 MB / 381 MB, free: 8.988 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.00719/0.1121, allocations: 2.775 MB / 383.7 MB, free: 6.207 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001066/0.1132, allocations: 31.88 kB / 383.8 MB, free: 6.176 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001261/0.1145, allocations: 302.1 kB / 384.1 MB, free: 5.879 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002963/0.1175, allocations: 0.7243 MB / 384.8 MB, free: 5.152 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003648/0.1212, allocations: 1.005 MB / 385.8 MB, free: 4.145 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.002912/0.1241, allocations: 1.054 MB / 386.8 MB, free: 3.09 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003892/0.1281, allocations: 1.429 MB / 388.3 MB, free: 1.605 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001045/0.1291, allocations: 0.498 MB / 388.8 MB, free: 1.105 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001189/0.1303, allocations: 0.6417 MB / 389.4 MB, free: 472 kB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002272/0.1306, allocations: 64 kB / 389.5 MB, free: 408 kB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001217/0.1318, allocations: 323.6 kB / 389.8 MB, free: 84 kB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.2577/0.3895, allocations: 245.9 kB / 390 MB, free: 10.24 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00059/0.3901, allocations: 290 kB / 390.3 MB, free: 10.21 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003642/0.3938, allocations: 1.67 MB / 392 MB, free: 10.09 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.668e-06/0.3938, allocations: 0 / 392 MB, free: 10.09 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.675e-06/0.3939, allocations: 0 / 392 MB, free: 10.09 MB / 282.7 MB Notification: Performance of Transformations before backend: time 7.801e-05/0.394, allocations: 0 / 392 MB, free: 10.09 MB / 282.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.00877/0.4027, allocations: 1.887 MB / 393.9 MB, free: 9.242 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.1e-05/0.4028, allocations: 8.188 kB / 393.9 MB, free: 9.242 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008068/0.4036, allocations: 219.5 kB / 394.1 MB, free: 9.191 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006298/0.4099, allocations: 0.6344 MB / 394.7 MB, free: 9.109 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002956/0.4129, allocations: 0.8291 MB / 395.5 MB, free: 8.793 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002163/0.4132, allocations: 152.8 kB / 395.7 MB, free: 8.754 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004856/0.4137, allocations: 151.5 kB / 395.8 MB, free: 8.754 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005072/0.4188, allocations: 1.359 MB / 397.2 MB, free: 8.668 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.253e-05/0.4189, allocations: 6.844 kB / 397.2 MB, free: 8.664 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000235/0.4192, allocations: 62.02 kB / 397.3 MB, free: 8.664 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.587e-05/0.4192, allocations: 36.2 kB / 397.3 MB, free: 8.664 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006003/0.4252, allocations: 1.369 MB / 398.7 MB, free: 8.641 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01283/0.4381, allocations: 5.018 MB / 403.7 MB, free: 7.055 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004883/0.4431, allocations: 2.458 MB / 406.2 MB, free: 5.441 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000181/0.4433, allocations: 108.2 kB / 406.3 MB, free: 5.344 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002216/0.4455, allocations: 0.7433 MB / 407 MB, free: 5.082 MB / 282.7 MB Notification: Performance of pre-optimization done (n=134): time 4.759e-06/0.4455, allocations: 4 kB / 407 MB, free: 5.078 MB / 282.7 MB Notification: Performance of matching and sorting (n=165): time 0.02323/0.4688, allocations: 5.537 MB / 412.5 MB, free: 2.324 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.186e-05/0.4689, allocations: 147 kB / 412.7 MB, free: 2.168 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00101/0.4699, allocations: 0.6231 MB / 413.3 MB, free: 1.785 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001558/0.4701, allocations: 57.14 kB / 413.4 MB, free: 1.73 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004348/0.4705, allocations: 0.606 MB / 414 MB, free: 1.176 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004672/0.471, allocations: 0.538 MB / 414.5 MB, free: 0.707 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001276/0.4712, allocations: 35.22 kB / 414.5 MB, free: 0.6797 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001115/0.4713, allocations: 374.6 kB / 414.9 MB, free: 328 kB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001786/0.4731, allocations: 0.5167 MB / 415.4 MB, free: 72 kB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002218/0.4753, allocations: 0.8835 MB / 416.3 MB, free: 15.38 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002136/0.4775, allocations: 0.633 MB / 416.9 MB, free: 15.07 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.082e-05/0.4775, allocations: 2.875 kB / 416.9 MB, free: 15.07 MB / 298.7 MB Notification: Performance of matching and sorting (n=220) (initialization): time 0.007514/0.485, allocations: 2.033 MB / 419 MB, free: 14.02 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.226e-05/0.4851, allocations: 8 kB / 419 MB, free: 14.01 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.508e-05/0.4851, allocations: 16 kB / 419 MB, free: 14 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003695/0.4888, allocations: 0.5228 MB / 419.5 MB, free: 13.46 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002366/0.4912, allocations: 307.7 kB / 419.8 MB, free: 13.18 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01614/0.5074, allocations: 8.741 MB / 428.6 MB, free: 3.969 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002029/0.5094, allocations: 84.03 kB / 428.6 MB, free: 3.887 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001896/0.5096, allocations: 67.98 kB / 428.7 MB, free: 3.82 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * 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 () * Number of clocked 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,(1,100.0%) 19} * Non-linear torn systems: 1 {1 7} Notification: Performance of prepare postOptimizeDAE: time 0.001109/0.5108, allocations: 353.1 kB / 429.1 MB, free: 3.484 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002586/0.511, allocations: 106.7 kB / 429.2 MB, free: 3.379 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007689/0.5187, allocations: 1.912 MB / 431.1 MB, free: 1.465 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.345e-05/0.5188, allocations: 16 kB / 431.1 MB, free: 1.449 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.626e-05/0.5188, allocations: 8 kB / 431.1 MB, free: 1.441 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.578e-05/0.5188, allocations: 11.95 kB / 431.1 MB, free: 1.43 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01102/0.5299, allocations: 3.443 MB / 434.6 MB, free: 13.98 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.326e-05/0.5299, allocations: 7.984 kB / 434.6 MB, free: 13.97 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001967/0.5319, allocations: 210.9 kB / 434.8 MB, free: 13.78 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003626/0.5356, allocations: 0.5156 MB / 435.3 MB, free: 13.26 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001497/0.5357, allocations: 35.98 kB / 435.3 MB, free: 13.22 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01511/0.5508, allocations: 8.466 MB / 443.8 MB, free: 4.285 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.305e-06/0.5509, allocations: 64 / 443.8 MB, free: 4.285 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009924/0.5608, allocations: 2.655 MB / 446.4 MB, free: 1.625 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007955/0.5617, allocations: 291.6 kB / 446.7 MB, free: 1.32 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002596/0.5619, allocations: 35.98 kB / 446.8 MB, free: 1.285 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001358/0.5633, allocations: 67.97 kB / 446.8 MB, free: 1.219 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004682/0.5638, allocations: 128.8 kB / 447 MB, free: 1.098 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001598/0.564, allocations: 51.97 kB / 447 MB, free: 1.047 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0008609/0.5648, allocations: 419.1 kB / 447.4 MB, free: 0.6367 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.5649, allocations: 0 / 447.4 MB, free: 0.6367 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0023/0.5672, allocations: 420 kB / 447.8 MB, free: 232 kB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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,sourceQS.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) * Number of clocked states: 0 () * 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 {(2,100.0%) 18,(1,100.0%) 9,(2,100.0%) 16} * Non-linear torn systems: 1 {1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.01058/0.5778, allocations: 3.356 MB / 451.2 MB, free: 12.87 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.006299/0.5841, allocations: 2.121 MB / 453.3 MB, free: 10.75 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 7.053e-06/0.5841, allocations: 1.094 kB / 453.3 MB, free: 10.75 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004103/0.5883, allocations: 1.431 MB / 454.7 MB, free: 9.285 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001067/0.5894, allocations: 97.56 kB / 454.8 MB, free: 9.199 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01443/0.6038, allocations: 10.61 MB / 465.4 MB, free: 14.36 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00123/0.6051, allocations: 1.221 MB / 466.7 MB, free: 13.11 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001482/0.6066, allocations: 0.5227 MB / 467.2 MB, free: 12.59 MB / 346.7 MB Notification: Performance of SimCode: time 3.176e-06/0.6066, allocations: 0 / 467.2 MB, free: 12.59 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.24/3.847, allocations: 42.4 MB / 0.4976 GB, free: 2.129 MB / 378.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