Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_NonLinearInductor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_NonLinearInductor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001206/0.001206, allocations: 99.09 kB / 16.99 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001634/0.001634, allocations: 197.4 kB / 17.9 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.408/1.408, allocations: 227.3 MB / 245.9 MB, free: 10.31 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002187/0.0002187, allocations: 8 kB / 306.7 MB, free: 1.277 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1127/0.1129, allocations: 51.5 MB / 358.2 MB, free: 13.78 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor): time 0.007255/0.1202, allocations: 6.424 MB / 364.6 MB, free: 7.328 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005334/0.1256, allocations: 2.821 MB / 367.5 MB, free: 4.5 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001138/0.1268, allocations: 23.94 kB / 367.5 MB, free: 4.477 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009815/0.1278, allocations: 306.1 kB / 367.8 MB, free: 4.176 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001745/0.1295, allocations: 0.5725 MB / 368.3 MB, free: 3.602 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002346/0.1319, allocations: 1.126 MB / 369.5 MB, free: 2.477 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00174/0.1336, allocations: 1.061 MB / 370.5 MB, free: 1.414 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2133/0.3469, allocations: 1.435 MB / 372 MB, free: 9.25 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001303/0.3483, allocations: 0.5061 MB / 372.5 MB, free: 9.25 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001028/0.3493, allocations: 0.632 MB / 373.1 MB, free: 9.25 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002043/0.3495, allocations: 69.8 kB / 373.2 MB, free: 9.25 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001148/0.3507, allocations: 338.7 kB / 373.5 MB, free: 9.25 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002766/0.351, allocations: 252.4 kB / 373.8 MB, free: 9.25 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003644/0.3513, allocations: 294.2 kB / 374 MB, free: 9.219 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002556/0.3539, allocations: 1.718 MB / 375.8 MB, free: 9.094 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.245e-06/0.3539, allocations: 1.25 kB / 375.8 MB, free: 9.094 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.714e-06/0.3539, allocations: 0 / 375.8 MB, free: 9.094 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.826e-05/0.354, allocations: 0.75 kB / 375.8 MB, free: 9.094 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 371 * Number of variables: 371 Notification: Performance of Generate backend data structure: time 0.005727/0.3597, allocations: 1.916 MB / 377.7 MB, free: 8.23 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.016e-05/0.3598, allocations: 8.25 kB / 377.7 MB, free: 8.23 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004724/0.3603, allocations: 215.4 kB / 377.9 MB, free: 8.18 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003954/0.3642, allocations: 0.6214 MB / 378.5 MB, free: 8.09 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001675/0.3659, allocations: 0.8305 MB / 379.3 MB, free: 7.777 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001401/0.3661, allocations: 148.1 kB / 379.5 MB, free: 7.742 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002259/0.3663, allocations: 158.1 kB / 379.6 MB, free: 7.734 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002769/0.3691, allocations: 1.332 MB / 381 MB, free: 7.648 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.29e-05/0.3691, allocations: 12.09 kB / 381 MB, free: 7.645 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001331/0.3693, allocations: 59.95 kB / 381 MB, free: 7.645 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.094e-05/0.3693, allocations: 34.47 kB / 381.1 MB, free: 7.645 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002893/0.3722, allocations: 1.31 MB / 382.4 MB, free: 7.621 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008692/0.3809, allocations: 5.007 MB / 387.4 MB, free: 5.98 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002769/0.3837, allocations: 1.938 MB / 389.3 MB, free: 4.957 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000184/0.3839, allocations: 189.5 kB / 389.5 MB, free: 4.762 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001495/0.3854, allocations: 0.7469 MB / 390.3 MB, free: 4.492 MB / 302.1 MB Notification: Performance of pre-optimization done (n=132): time 3.327e-06/0.3854, allocations: 0 / 390.3 MB, free: 4.492 MB / 302.1 MB Notification: Performance of matching and sorting (n=163): time 0.01504/0.4005, allocations: 5.607 MB / 395.9 MB, free: 1.531 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.605e-05/0.4006, allocations: 149.5 kB / 396 MB, free: 1.371 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009158/0.4015, allocations: 0.6352 MB / 396.7 MB, free: 0.9883 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002211/0.4018, allocations: 62 kB / 396.7 MB, free: 0.9297 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006033/0.4024, allocations: 0.5697 MB / 397.3 MB, free: 432 kB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005535/0.4029, allocations: 0.5336 MB / 397.8 MB, free: 15.95 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.624e-05/0.403, allocations: 35.09 kB / 397.9 MB, free: 15.93 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002669/0.4033, allocations: 418.1 kB / 398.3 MB, free: 15.53 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001171/0.4045, allocations: 0.514 MB / 398.8 MB, free: 15.29 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001398/0.4059, allocations: 0.8419 MB / 399.6 MB, free: 14.64 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001246/0.4071, allocations: 0.6227 MB / 400.2 MB, free: 14.33 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.516e-06/0.4072, allocations: 3.25 kB / 400.2 MB, free: 14.33 MB / 318.1 MB Notification: Performance of matching and sorting (n=212) (initialization): time 0.004378/0.4115, allocations: 2.013 MB / 402.3 MB, free: 13.37 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.069e-05/0.4116, allocations: 11.25 kB / 402.3 MB, free: 13.36 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.027e-05/0.4116, allocations: 8 kB / 402.3 MB, free: 13.36 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001987/0.4136, allocations: 0.5268 MB / 402.8 MB, free: 12.82 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001255/0.4149, allocations: 291.3 kB / 403.1 MB, free: 12.55 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009477/0.4244, allocations: 8.754 MB / 411.8 MB, free: 3.355 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001477/0.4259, allocations: 81.66 kB / 411.9 MB, free: 3.277 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000188/0.4261, allocations: 63.98 kB / 412 MB, free: 3.215 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 38 * Number of states: 0 () * Number of discrete variables: 18 ($whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.fundamentalWavePermabilitySensor.harmonicPotential.mean1.y_last,fundamentalWavePermabilitySensor.harmonicPotential.mean1.y_last,$PRE.fundamentalWavePermabilitySensor.harmonicPotential.mean2.y_last,fundamentalWavePermabilitySensor.harmonicPotential.mean2.y_last,$PRE.fundamentalWavePermabilitySensor.harmonicFlux.mean1.y_last,fundamentalWavePermabilitySensor.harmonicFlux.mean1.y_last,$PRE.fundamentalWavePermabilitySensor.harmonicFlux.mean2.y_last,fundamentalWavePermabilitySensor.harmonicFlux.mean2.y_last,$PRE.rootMeanSquare.mean1.y_last,rootMeanSquare.mean1.y_last,$PRE.rootMeanSquare.mean2.y_last,rootMeanSquare.mean2.y_last) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (158): * Single equations (assignments): 154 * 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.0008971/0.427, allocations: 354.3 kB / 412.3 MB, free: 2.879 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002314/0.4273, allocations: 118.5 kB / 412.4 MB, free: 2.762 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004324/0.4316, allocations: 1.902 MB / 414.3 MB, free: 0.8633 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.557e-05/0.4316, allocations: 16 kB / 414.4 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.745e-05/0.4317, allocations: 8 kB / 414.4 MB, free: 0.8398 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.997e-05/0.4317, allocations: 7.969 kB / 414.4 MB, free: 0.832 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006759/0.4385, allocations: 3.425 MB / 417.8 MB, free: 13.39 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.085e-06/0.4385, allocations: 0 / 417.8 MB, free: 13.39 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001014/0.4395, allocations: 214 kB / 418 MB, free: 13.19 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001946/0.4415, allocations: 0.5064 MB / 418.5 MB, free: 12.68 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001895/0.4417, allocations: 35.97 kB / 418.6 MB, free: 12.64 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00949/0.4512, allocations: 8.477 MB / 427 MB, free: 3.66 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.4512, allocations: 0.5625 kB / 427 MB, free: 3.66 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005717/0.457, allocations: 2.62 MB / 429.7 MB, free: 1.008 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000642/0.4576, allocations: 287.6 kB / 429.9 MB, free: 0.707 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001713/0.4578, allocations: 36 kB / 430 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007343/0.4586, allocations: 67.95 kB / 430 MB, free: 0.6055 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003165/0.4589, allocations: 125.1 kB / 430.2 MB, free: 496 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.166e-05/0.459, allocations: 59.91 kB / 430.2 MB, free: 436 kB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005714/0.4596, allocations: 431.1 kB / 430.6 MB, free: 4 kB / 334.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.4596, allocations: 0 / 430.6 MB, free: 4 kB / 334.1 MB Notification: Performance of remove unused functions: time 0.001783/0.4614, allocations: 423.9 kB / 431.1 MB, free: 15.59 MB / 350.1 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_last,fundamentalWavePermabilitySensor.harmonicPotential.mean2.y_last,fundamentalWavePermabilitySensor.harmonicFlux.mean1.y_last,fundamentalWavePermabilitySensor.harmonicFlux.mean2.y_last,rootMeanSquare.mean1.y_last,rootMeanSquare.mean2.y_last) * 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 (113): * Single equations (assignments): 103 * 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%) 19,(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.005849/0.4672, allocations: 3.339 MB / 434.4 MB, free: 12.21 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003789/0.4711, allocations: 2.08 MB / 436.5 MB, free: 10.08 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.519e-06/0.4711, allocations: 0 / 436.5 MB, free: 10.08 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002135/0.4733, allocations: 1.408 MB / 437.9 MB, free: 8.625 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007545/0.474, allocations: 98.97 kB / 438 MB, free: 8.531 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008645/0.4827, allocations: 9.644 MB / 447.6 MB, free: 14.66 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008736/0.4836, allocations: 1.234 MB / 448.9 MB, free: 13.4 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0008665/0.4845, allocations: 160.9 kB / 449 MB, free: 13.24 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006587/0.4851, allocations: 0.5227 MB / 449.5 MB, free: 12.72 MB / 366.1 MB Notification: Performance of SimCode: time 9.82e-07/0.4852, allocations: 0 / 449.5 MB, free: 12.72 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04701/0.5322, allocations: 25.93 MB / 475.5 MB, free: 3.078 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001959/0.5324, allocations: 234.2 kB / 475.7 MB, free: 2.836 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.922/3.455, allocations: 3.516 kB / 475.7 MB, free: 2.836 MB / 382.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_NonLinearInductor_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-07 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_NonLinearInductor.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor_res.mat does not exist to compare? outputFormat=mat