Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.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.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceCurrentBehaviour",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceCurrentBehaviour",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.001338/0.001339, allocations: 177 kB / 8.699 MB, free: 384 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.678/1.678, allocations: 205.3 MB / 214.4 MB, free: 1.738 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008523/0.0008521, allocations: 78.7 kB / 262.4 MB, free: 1.684 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.637e-05/1.632e-05, allocations: 0 / 315.6 MB, free: 22.63 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0893/0.08933, allocations: 47.59 MB / 363.2 MB, free: 6.977 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3374/0.4268, allocations: 88.42 MB / 451.6 MB, free: 7.324 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002536/0.4271, allocations: 88.7 kB / 451.7 MB, free: 7.281 MB / 330.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Magnetic/FluxTubes.mo:1363:11-1363:91:writable] Warning: connect(p, p) connects the same connector instance! The connect equation will be ignored. Notification: Performance of FrontEnd - DAE generated: time 0.05983/0.487, allocations: 21.9 MB / 473.6 MB, free: 5.301 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.487, allocations: 0 / 473.6 MB, free: 5.301 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.038e-05/0.4871, allocations: 20 kB / 473.6 MB, free: 5.281 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 242 * Number of variables: 242 Notification: Performance of Generate backend data structure: time 0.002766/0.4899, allocations: 1.226 MB / 474.8 MB, free: 4.078 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.201e-05/0.4899, allocations: 8.031 kB / 474.8 MB, free: 4.07 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000316/0.4903, allocations: 135.1 kB / 475 MB, free: 3.938 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001165/0.4914, allocations: 0.6631 MB / 475.6 MB, free: 3.383 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001224/0.4916, allocations: 45.98 kB / 475.7 MB, free: 3.336 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001245/0.4917, allocations: 59.69 kB / 475.7 MB, free: 3.281 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001368/0.4931, allocations: 0.723 MB / 476.5 MB, free: 2.848 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001403/0.4945, allocations: 0.7955 MB / 477.2 MB, free: 2.297 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.395e-05/0.4945, allocations: 7.891 kB / 477.3 MB, free: 2.289 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.227e-05/0.4946, allocations: 4 kB / 477.3 MB, free: 2.285 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.302e-05/0.4946, allocations: 24 kB / 477.3 MB, free: 2.262 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005712/0.5004, allocations: 3.672 MB / 481 MB, free: 15.43 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001964/0.5024, allocations: 0.8133 MB / 481.8 MB, free: 14.69 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006141/0.503, allocations: 347.4 kB / 482.1 MB, free: 14.35 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.439e-05/0.5031, allocations: 12.56 kB / 482.1 MB, free: 14.34 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.011e-05/0.5031, allocations: 39.12 kB / 482.2 MB, free: 14.29 MB / 362.7 MB Notification: Performance of pre-optimization done (n=68): time 3.066e-06/0.5032, allocations: 3.938 kB / 482.2 MB, free: 14.29 MB / 362.7 MB Notification: Performance of matching and sorting (n=86): time 0.003276/0.5064, allocations: 1.406 MB / 483.6 MB, free: 12.87 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.548e-05/0.5065, allocations: 93.42 kB / 483.7 MB, free: 12.76 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00099/0.5075, allocations: 0.6912 MB / 484.3 MB, free: 12.06 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.148e-05/0.5076, allocations: 25.7 kB / 484.4 MB, free: 12.03 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003516/0.5079, allocations: 0.5183 MB / 484.9 MB, free: 11.5 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000204/0.5082, allocations: 271.9 kB / 485.2 MB, free: 11.23 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.594e-05/0.5082, allocations: 0 / 485.2 MB, free: 11.23 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001842/0.5084, allocations: 402.7 kB / 485.6 MB, free: 10.83 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000468/0.5089, allocations: 282.6 kB / 485.8 MB, free: 10.56 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005909/0.5095, allocations: 438.4 kB / 486.3 MB, free: 10.07 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005289/0.51, allocations: 325.7 kB / 486.6 MB, free: 9.754 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.697e-06/0.51, allocations: 0 / 486.6 MB, free: 9.754 MB / 362.7 MB Notification: Performance of matching and sorting (n=121) (initialization): time 0.001428/0.5115, allocations: 0.8298 MB / 487.4 MB, free: 8.914 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.593e-05/0.5115, allocations: 8 kB / 487.4 MB, free: 8.906 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.164e-05/0.5115, allocations: 4 kB / 487.4 MB, free: 8.902 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.056e-05/0.5116, allocations: 8 kB / 487.4 MB, free: 8.895 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001465/0.513, allocations: 351.9 kB / 487.8 MB, free: 8.551 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.601e-05/0.5131, allocations: 15.88 kB / 487.8 MB, free: 8.535 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00101/0.5141, allocations: 99.91 kB / 487.9 MB, free: 8.438 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.994e-05/0.5142, allocations: 35.98 kB / 487.9 MB, free: 8.402 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 4 (cActuator.armature.stopper_xMin.contact,cActuator.armature.stopper_xMax.contact,pmActuator.armature.stopper_xMin.contact,pmActuator.armature.stopper_xMax.contact) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (121): * Single equations (assignments): 121 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002045/0.5144, allocations: 128.7 kB / 488 MB, free: 8.27 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001078/0.5155, allocations: 0.62 MB / 488.7 MB, free: 7.645 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001488/0.5156, allocations: 90.97 kB / 488.7 MB, free: 7.555 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006619/0.5163, allocations: 325.9 kB / 489.1 MB, free: 7.223 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.081e-05/0.5163, allocations: 11.98 kB / 489.1 MB, free: 7.211 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.237e-06/0.5163, allocations: 4 kB / 489.1 MB, free: 7.207 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.023e-05/0.5163, allocations: 7.984 kB / 489.1 MB, free: 7.199 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004056/0.5204, allocations: 2.672 MB / 491.8 MB, free: 4.344 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.305e-05/0.5204, allocations: 12 kB / 491.8 MB, free: 4.332 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009888/0.5214, allocations: 267.7 kB / 492 MB, free: 4.07 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-05/0.5215, allocations: 19.94 kB / 492.1 MB, free: 4.051 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.467e-05/0.5215, allocations: 23.98 kB / 492.1 MB, free: 4.027 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.747e-05/0.5216, allocations: 23.89 kB / 492.1 MB, free: 4.004 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.389e-05/0.5216, allocations: 15.94 kB / 492.1 MB, free: 3.988 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001763/0.5233, allocations: 1.613 MB / 493.7 MB, free: 1.938 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002975/0.5237, allocations: 195.9 kB / 493.9 MB, free: 1.727 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001263/0.5238, allocations: 19.98 kB / 493.9 MB, free: 1.707 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007157/0.5245, allocations: 67.94 kB / 494 MB, free: 1.641 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001466/0.5247, allocations: 91.66 kB / 494.1 MB, free: 1.551 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.927e-05/0.5247, allocations: 43.98 kB / 494.1 MB, free: 1.508 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0007473/0.5255, allocations: 0.5226 MB / 494.7 MB, free: 0.9883 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.5255, allocations: 0 / 494.7 MB, free: 0.9883 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009603/0.5265, allocations: 200 kB / 494.9 MB, free: 0.793 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 2 (cActuator.armature.stopper_xMin.contact,pmActuator.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (86): * Single equations (assignments): 86 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003612/0.5301, allocations: 5.552 MB / 0.4887 GB, free: 10.91 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001262/0.5314, allocations: 0.6633 MB / 0.4893 GB, free: 10.24 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 8.506e-06/0.5314, allocations: 5 kB / 0.4893 GB, free: 10.24 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006249/0.532, allocations: 379.7 kB / 0.4897 GB, free: 9.867 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001151/0.5332, allocations: 177.4 kB / 0.4899 GB, free: 9.699 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003667/0.5369, allocations: 1.632 MB / 0.4915 GB, free: 7.887 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007065/0.5376, allocations: 1.053 MB / 0.4925 GB, free: 6.801 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0006334/0.5382, allocations: 126.6 kB / 0.4926 GB, free: 6.672 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005767/0.5388, allocations: 391.3 kB / 0.493 GB, free: 6.289 MB / 378.7 MB Notification: Performance of SimCode: time 6.11e-07/0.5388, allocations: 3.938 kB / 0.493 GB, free: 6.285 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04655/0.5854, allocations: 17.18 MB / 0.5098 GB, free: 5.078 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002335/0.5857, allocations: 200.8 kB / 0.51 GB, free: 4.816 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.44/3.026, allocations: 3.938 kB / 0.51 GB, free: 4.812 MB / 394.7 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceCurrentBehaviour_fmu --startTime=0 --stopTime=6 --timeout=50 --tolerance=1e-07 Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceCurrentBehaviour.fmu > Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour_res.mat does not exist to compare? outputFormat=mat