Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.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.LinearInductor,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_LinearInductor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_LinearInductor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001659/0.001659, allocations: 197 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.515/1.515, allocations: 225.4 MB / 240.1 MB, free: 15.03 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001174/0.001173, allocations: 86.75 kB / 292.1 MB, free: 5.98 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.627e-05/3.642e-05, allocations: 3.984 kB / 350.6 MB, free: 2.418 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1273/0.1273, allocations: 51.47 MB / 402.1 MB, free: 14.9 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3823/0.5097, allocations: 94.07 MB / 496.2 MB, free: 11.54 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003034/0.5101, allocations: 87.86 kB / 496.3 MB, free: 11.5 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08261/0.5927, allocations: 31.55 MB / 0.5155 GB, free: 13.14 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.272e-06/0.5928, allocations: 7.938 kB / 0.5155 GB, free: 13.14 MB / 394.7 MB Notification: Performance of Transformations before backend: time 4.227e-05/0.5929, allocations: 20 kB / 0.5155 GB, free: 13.12 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: 282 * Number of variables: 282 Notification: Performance of Generate backend data structure: time 0.00404/0.5969, allocations: 1.24 MB / 0.5167 GB, free: 11.84 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.98e-05/0.597, allocations: 11.97 kB / 0.5167 GB, free: 11.83 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005033/0.5975, allocations: 179.2 kB / 0.5169 GB, free: 11.64 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002854/0.6004, allocations: 406.4 kB / 0.5173 GB, free: 11.24 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00108/0.6015, allocations: 0.4978 MB / 0.5177 GB, free: 10.71 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.202e-05/0.6016, allocations: 82.23 kB / 0.5178 GB, free: 10.62 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002695/0.6019, allocations: 111.9 kB / 0.5179 GB, free: 10.52 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002159/0.604, allocations: 0.928 MB / 0.5188 GB, free: 9.559 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.62e-05/0.6041, allocations: 0 / 0.5188 GB, free: 9.559 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000105/0.6042, allocations: 44 kB / 0.5189 GB, free: 9.516 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.169e-05/0.6042, allocations: 28 kB / 0.5189 GB, free: 9.488 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001916/0.6061, allocations: 0.8992 MB / 0.5198 GB, free: 8.582 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007186/0.6133, allocations: 3.818 MB / 0.5235 GB, free: 4.539 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001981/0.6154, allocations: 1.521 MB / 0.525 GB, free: 2.848 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007267/0.6161, allocations: 415.8 kB / 0.5254 GB, free: 2.441 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002021/0.6163, allocations: 183 kB / 0.5256 GB, free: 2.223 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008004/0.6171, allocations: 458.2 kB / 0.526 GB, free: 1.742 MB / 394.7 MB Notification: Performance of pre-optimization done (n=96): time 3.907e-06/0.6172, allocations: 0 / 0.526 GB, free: 1.742 MB / 394.7 MB Notification: Performance of matching and sorting (n=122): time 0.008072/0.6252, allocations: 3.475 MB / 0.5294 GB, free: 14.2 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001186/0.6254, allocations: 226.6 kB / 0.5296 GB, free: 13.93 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004571/0.6259, allocations: 350.8 kB / 0.53 GB, free: 13.58 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 6.693e-05/0.626, allocations: 45.7 kB / 0.53 GB, free: 13.53 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003736/0.6263, allocations: 427.6 kB / 0.5304 GB, free: 13.1 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003106/0.6267, allocations: 419.5 kB / 0.5308 GB, free: 12.69 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.364e-05/0.6267, allocations: 28 kB / 0.5308 GB, free: 12.66 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001971/0.6269, allocations: 370.8 kB / 0.5312 GB, free: 12.29 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000581/0.6275, allocations: 318.6 kB / 0.5315 GB, free: 11.98 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007233/0.6283, allocations: 0.5107 MB / 0.532 GB, free: 11.39 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007285/0.629, allocations: 406.7 kB / 0.5324 GB, free: 11 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.765e-06/0.629, allocations: 4 kB / 0.5324 GB, free: 11 MB / 410.7 MB Notification: Performance of matching and sorting (n=155) (initialization): time 0.002375/0.6314, allocations: 1.306 MB / 0.5337 GB, free: 9.676 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.276e-05/0.6314, allocations: 4 kB / 0.5337 GB, free: 9.672 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.388e-05/0.6315, allocations: 11.95 kB / 0.5337 GB, free: 9.66 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009272/0.6324, allocations: 340 kB / 0.534 GB, free: 9.316 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008533/0.6333, allocations: 203.7 kB / 0.5342 GB, free: 9.117 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00826/0.6415, allocations: 7.657 MB / 0.5417 GB, free: 0.9375 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008731/0.6424, allocations: 51.94 kB / 0.5417 GB, free: 0.8867 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001166/0.6426, allocations: 44 kB / 0.5418 GB, free: 0.8438 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,$PRE.rootMeanSquare.mean.y_last,rootMeanSquare.mean.y_last) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (111): * Single equations (assignments): 107 * 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: 4 {(1,100.0%) 4,(1,100.0%) 2,(1,100.0%) 19,(2,100.0%) 18} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002541/0.6428, allocations: 177.3 kB / 0.5419 GB, free: 0.6641 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001458/0.643, allocations: 71.16 kB / 0.542 GB, free: 0.5938 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002488/0.6455, allocations: 1.207 MB / 0.5432 GB, free: 15.36 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.548e-05/0.6455, allocations: 20 kB / 0.5432 GB, free: 15.34 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.3e-05/0.6455, allocations: 9.312 kB / 0.5432 GB, free: 15.33 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.2e-05/0.6456, allocations: 3.984 kB / 0.5432 GB, free: 15.33 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004296/0.6499, allocations: 2.605 MB / 0.5457 GB, free: 12.64 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.675e-05/0.6499, allocations: 8.094 kB / 0.5458 GB, free: 12.64 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007257/0.6506, allocations: 143.8 kB / 0.5459 GB, free: 12.5 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009213/0.6516, allocations: 333.8 kB / 0.5462 GB, free: 12.16 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001357/0.6517, allocations: 20 kB / 0.5462 GB, free: 12.14 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007678/0.6594, allocations: 7.387 MB / 0.5534 GB, free: 4.219 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.474e-06/0.6594, allocations: 8.016 kB / 0.5535 GB, free: 4.211 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003147/0.6626, allocations: 1.736 MB / 0.5551 GB, free: 2.418 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003846/0.663, allocations: 224.2 kB / 0.5554 GB, free: 2.18 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001211/0.6631, allocations: 28 kB / 0.5554 GB, free: 2.152 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005306/0.6637, allocations: 43.97 kB / 0.5554 GB, free: 2.109 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002614/0.664, allocations: 88.88 kB / 0.5555 GB, free: 2.02 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.32e-05/0.664, allocations: 37.39 kB / 0.5556 GB, free: 1.984 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0003461/0.6644, allocations: 269.2 kB / 0.5558 GB, free: 1.727 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.6644, allocations: 0 / 0.5558 GB, free: 1.727 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00132/0.6657, allocations: 332 kB / 0.5561 GB, free: 1.402 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 3 (coil.i,rootMeanSquare.mean.x,currentSensorQS.pin_p.reference.gamma) * Number of discrete variables: 2 ($whenCondition1,rootMeanSquare.mean.y_last) * Number of discrete states: 1 (rootMeanSquare.mean.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (82): * Single equations (assignments): 77 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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: 4 {(1,100.0%) 2,(2,100.0%) 18,(1,100.0%) 4,(1,100.0%) 17} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003629/0.6694, allocations: 2.688 MB / 0.5588 GB, free: 14.66 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.00262/0.672, allocations: 1.539 MB / 0.5603 GB, free: 13.06 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.991e-06/0.672, allocations: 4 kB / 0.5603 GB, free: 13.05 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00162/0.6736, allocations: 1.099 MB / 0.5613 GB, free: 11.91 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004523/0.6741, allocations: 54.36 kB / 0.5614 GB, free: 11.86 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004274/0.6784, allocations: 1.637 MB / 0.563 GB, free: 10.17 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008795/0.6793, allocations: 1.04 MB / 0.564 GB, free: 9.102 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0005025/0.6798, allocations: 98.06 kB / 0.5641 GB, free: 9.004 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005105/0.6803, allocations: 343.3 kB / 0.5644 GB, free: 8.668 MB / 442.7 MB Notification: Performance of SimCode: time 1.262e-06/0.6803, allocations: 1.875 kB / 0.5644 GB, free: 8.668 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2759/0.9563, allocations: 17.63 MB / 0.5816 GB, free: 104.1 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001638/0.9565, allocations: 191.1 kB / 0.5818 GB, free: 103.9 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.719/3.675, allocations: 0 / 0.5818 GB, free: 103.9 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_LinearInductor_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-07 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_LinearInductor.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.LinearInductor_res.mat does not exist to compare? outputFormat=mat