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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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/Complex trunk/package.mo): time 0.001611/0.001611, allocations: 198.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.488/1.488, allocations: 225.6 MB / 234.8 MB, free: 3.238 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009307/0.0009309, allocations: 102.9 kB / 286.7 MB, free: 5.262 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.523e-05/2.542e-05, allocations: 4 kB / 343.8 MB, free: 8.137 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.119/0.119, allocations: 51.48 MB / 395.3 MB, free: 4.617 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3987/0.5178, allocations: 96.16 MB / 491.4 MB, free: 12.92 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002209/0.5181, allocations: 80.95 kB / 491.5 MB, free: 12.88 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09085/0.609, allocations: 38.12 MB / 0.5172 GB, free: 11.67 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.443e-06/0.609, allocations: 0 / 0.5172 GB, free: 11.67 MB / 394.7 MB Notification: Performance of Transformations before backend: time 5.466e-05/0.6091, allocations: 31.94 kB / 0.5172 GB, free: 11.64 MB / 394.7 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.004114/0.6132, allocations: 1.628 MB / 0.5188 GB, free: 9.953 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.804e-05/0.6132, allocations: 8.031 kB / 0.5188 GB, free: 9.945 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003069/0.6163, allocations: 0.5337 MB / 0.5194 GB, free: 9.41 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001365/0.6177, allocations: 0.7539 MB / 0.5201 GB, free: 8.617 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000131/0.6179, allocations: 92.61 kB / 0.5202 GB, free: 8.52 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001876/0.618, allocations: 88 kB / 0.5203 GB, free: 8.434 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002074/0.6201, allocations: 1.103 MB / 0.5213 GB, free: 7.328 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001998/0.6221, allocations: 1.036 MB / 0.5224 GB, free: 6.273 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.824e-05/0.6222, allocations: 15.83 kB / 0.5224 GB, free: 6.258 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001239/0.6223, allocations: 0 / 0.5224 GB, free: 6.258 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.28e-05/0.6224, allocations: 36 kB / 0.5224 GB, free: 6.223 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008187/0.6306, allocations: 4.815 MB / 0.5271 GB, free: 1.199 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002464/0.6331, allocations: 1.826 MB / 0.5289 GB, free: 15.21 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007551/0.6339, allocations: 489.4 kB / 0.5294 GB, free: 14.73 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002183/0.6341, allocations: 191.5 kB / 0.5295 GB, free: 14.51 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001036/0.6351, allocations: 0.6507 MB / 0.5302 GB, free: 13.83 MB / 410.7 MB Notification: Performance of pre-optimization done (n=132): time 3.717e-06/0.6351, allocations: 0 / 0.5302 GB, free: 13.83 MB / 410.7 MB Notification: Performance of matching and sorting (n=163): time 0.01344/0.6486, allocations: 5.038 MB / 0.5351 GB, free: 8.723 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001325/0.6488, allocations: 230.9 kB / 0.5353 GB, free: 8.449 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007725/0.6495, allocations: 0.5034 MB / 0.5358 GB, free: 7.941 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001004/0.6497, allocations: 33.7 kB / 0.5358 GB, free: 7.902 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005516/0.6502, allocations: 0.5818 MB / 0.5364 GB, free: 7.309 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005297/0.6508, allocations: 0.5041 MB / 0.5369 GB, free: 6.797 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.517e-05/0.6508, allocations: 0 / 0.5369 GB, free: 6.797 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002455/0.6511, allocations: 418.7 kB / 0.5373 GB, free: 6.379 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007598/0.6518, allocations: 424 kB / 0.5377 GB, free: 5.965 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001059/0.6529, allocations: 0.7447 MB / 0.5384 GB, free: 5.09 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002067/0.655, allocations: 0.75 MB / 0.5392 GB, free: 4.344 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.366e-06/0.655, allocations: 4 kB / 0.5392 GB, free: 4.34 MB / 410.7 MB Notification: Performance of matching and sorting (n=212) (initialization): time 0.004935/0.66, allocations: 1.969 MB / 0.5411 GB, free: 2.352 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.01e-05/0.66, allocations: 13.56 kB / 0.5411 GB, free: 2.34 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.938e-05/0.66, allocations: 8 kB / 0.5411 GB, free: 2.332 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001459/0.6615, allocations: 458.5 kB / 0.5416 GB, free: 1.875 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001199/0.6627, allocations: 291.5 kB / 0.5418 GB, free: 1.59 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01029/0.673, allocations: 8.266 MB / 0.5499 GB, free: 8.863 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001535/0.6746, allocations: 48.03 kB / 0.5499 GB, free: 8.816 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001467/0.6748, allocations: 63.98 kB / 0.55 GB, free: 8.754 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 41 * 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 () * 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,(2,100.0%) 18} * Non-linear torn systems: 1 {1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0004069/0.6752, allocations: 165 kB / 0.5502 GB, free: 8.59 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00458/0.6798, allocations: 1.701 MB / 0.5518 GB, free: 6.867 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002684/0.6801, allocations: 106.7 kB / 0.5519 GB, free: 6.762 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004841/0.6849, allocations: 1.824 MB / 0.5537 GB, free: 4.91 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.35e-05/0.685, allocations: 20 kB / 0.5537 GB, free: 4.891 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.468e-05/0.685, allocations: 8 kB / 0.5537 GB, free: 4.883 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.943e-05/0.685, allocations: 7.969 kB / 0.5537 GB, free: 4.875 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007533/0.6926, allocations: 3.477 MB / 0.5571 GB, free: 1.332 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.915e-06/0.6926, allocations: 0 / 0.5571 GB, free: 1.332 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009918/0.6936, allocations: 211.7 kB / 0.5573 GB, free: 1.125 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00142/0.695, allocations: 443.1 kB / 0.5578 GB, free: 0.6797 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.794e-05/0.6952, allocations: 19.98 kB / 0.5578 GB, free: 0.6602 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009386/0.7046, allocations: 7.998 MB / 0.5656 GB, free: 8.211 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.089e-06/0.7046, allocations: 4.062 kB / 0.5656 GB, free: 8.207 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005754/0.7104, allocations: 2.557 MB / 0.5681 GB, free: 5.586 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000633/0.711, allocations: 291.6 kB / 0.5684 GB, free: 5.281 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001502/0.7112, allocations: 16 kB / 0.5684 GB, free: 5.266 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007176/0.7119, allocations: 43.95 kB / 0.5684 GB, free: 5.223 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003182/0.7122, allocations: 133 kB / 0.5686 GB, free: 5.094 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.52e-05/0.7124, allocations: 51.97 kB / 0.5686 GB, free: 5.043 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0005591/0.7129, allocations: 391.2 kB / 0.569 GB, free: 4.656 MB / 442.7 MB Notification: Performance of sort global known variables: time 3.41e-07/0.7129, allocations: 0 / 0.569 GB, free: 4.656 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001681/0.7146, allocations: 359.9 kB / 0.5693 GB, free: 4.305 MB / 442.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_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) * 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%) 9,(2,100.0%) 18,(2,100.0%) 16} * Non-linear torn systems: 1 {1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.005937/0.7206, allocations: 3.496 MB / 0.5727 GB, free: 0.7422 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.2538/0.9743, allocations: 1.808 MB / 0.5745 GB, free: 99.89 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.977e-06/0.9744, allocations: 2.969 kB / 0.5745 GB, free: 99.89 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002013/0.9764, allocations: 1.269 MB / 0.5757 GB, free: 99.44 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007575/0.9772, allocations: 64.11 kB / 0.5758 GB, free: 99.44 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004938/0.9821, allocations: 2.195 MB / 0.578 GB, free: 98.87 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007831/0.9829, allocations: 1.23 MB / 0.5792 GB, free: 98.16 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0007346/0.9837, allocations: 153.9 kB / 0.5793 GB, free: 98.14 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006201/0.9843, allocations: 0.5235 MB / 0.5798 GB, free: 98.14 MB / 442.7 MB Notification: Performance of SimCode: time 9.91e-07/0.9843, allocations: 0 / 0.5798 GB, free: 98.14 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06058/1.045, allocations: 25.01 MB / 0.6042 GB, free: 96.88 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001591/1.045, allocations: 159.2 kB / 0.6044 GB, free: 96.69 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.126/4.171, allocations: 6.344 kB / 0.6044 GB, free: 96.69 MB / 442.7 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