Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.001566/0.00157, allocations: 189 kB / 16.4 MB, free: 5.621 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.179/2.179, allocations: 205.4 MB / 222.5 MB, free: 13.85 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.001171/0.00117, allocations: 90.8 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003917/0.0003919, allocations: 8 kB / 327.1 MB, free: 15 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1039/0.1043, allocations: 47.58 MB / 374.6 MB, free: 15.34 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour): time 0.009147/0.1135, allocations: 5.124 MB / 379.8 MB, free: 10.19 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.005629/0.1192, allocations: 2.075 MB / 381.8 MB, free: 8.102 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001095/0.1204, allocations: 19.94 kB / 381.9 MB, free: 8.082 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001005/0.1214, allocations: 286.6 kB / 382.1 MB, free: 7.801 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002054/0.1235, allocations: 0.4908 MB / 382.6 MB, free: 7.309 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001308/0.1249, allocations: 263.5 kB / 382.9 MB, free: 7.051 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.002677/0.1275, allocations: 0.9478 MB / 383.8 MB, free: 6.102 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008908/0.1285, allocations: 374.4 kB / 384.2 MB, free: 5.723 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00105/0.1296, allocations: 458.3 kB / 384.6 MB, free: 5.273 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001122/0.1307, allocations: 0.5291 MB / 385.2 MB, free: 4.742 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000282/0.131, allocations: 67.94 kB / 385.2 MB, free: 4.676 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004198/0.1314, allocations: 72 kB / 385.3 MB, free: 4.605 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003072/0.1318, allocations: 219.1 kB / 385.5 MB, free: 4.391 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003919/0.1322, allocations: 257.1 kB / 385.8 MB, free: 4.133 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002371/0.1346, allocations: 1.507 MB / 387.3 MB, free: 2.621 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.1346, allocations: 0 / 387.3 MB, free: 2.621 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.176e-06/0.1346, allocations: 4 kB / 387.3 MB, free: 2.617 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.929e-05/0.1347, allocations: 0 / 387.3 MB, free: 2.617 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: 242 * Number of variables: 242 Notification: Performance of Generate backend data structure: time 0.005176/0.1399, allocations: 1.391 MB / 388.7 MB, free: 1.176 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.671e-05/0.14, allocations: 12.03 kB / 388.7 MB, free: 1.164 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004705/0.1405, allocations: 144 kB / 388.8 MB, free: 1.016 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003507/0.1408, allocations: 130.5 kB / 389 MB, free: 0.8867 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002019/0.1429, allocations: 0.6804 MB / 389.6 MB, free: 168 kB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002043/0.1431, allocations: 70 kB / 389.7 MB, free: 96 kB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.2605/0.4036, allocations: 101.4 kB / 389.8 MB, free: 19.79 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004357/0.408, allocations: 1.025 MB / 390.8 MB, free: 19.73 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.186e-05/0.4082, allocations: 3.578 kB / 390.8 MB, free: 19.73 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001607/0.4083, allocations: 40.59 kB / 390.9 MB, free: 19.73 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.356e-05/0.4084, allocations: 22.75 kB / 390.9 MB, free: 19.73 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004149/0.4125, allocations: 0.9496 MB / 391.8 MB, free: 19.54 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009747/0.4223, allocations: 3.669 MB / 395.5 MB, free: 17.36 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006197/0.4286, allocations: 1.1 MB / 396.6 MB, free: 17.1 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001346/0.4288, allocations: 8.781 kB / 396.6 MB, free: 17.1 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.946e-05/0.4288, allocations: 42.12 kB / 396.7 MB, free: 17.05 MB / 282.7 MB Notification: Performance of pre-optimization done (n=58): time 3.907e-06/0.4289, allocations: 1.188 kB / 396.7 MB, free: 17.05 MB / 282.7 MB Notification: Performance of matching and sorting (n=67): time 0.009624/0.4385, allocations: 1.985 MB / 398.7 MB, free: 16.27 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.119e-05/0.4386, allocations: 83.61 kB / 398.7 MB, free: 16.18 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002284/0.4409, allocations: 0.971 MB / 399.7 MB, free: 15.78 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001802/0.4411, allocations: 36.02 kB / 399.7 MB, free: 15.74 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004184/0.4416, allocations: 0.535 MB / 400.3 MB, free: 15.27 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002662/0.4418, allocations: 227.4 kB / 400.5 MB, free: 15.1 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.524e-05/0.4419, allocations: 19.81 kB / 400.5 MB, free: 15.09 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001056/0.4421, allocations: 348.3 kB / 400.9 MB, free: 14.76 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001872/0.4439, allocations: 381.2 kB / 401.2 MB, free: 14.64 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001969/0.4459, allocations: 0.5537 MB / 401.8 MB, free: 14.3 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001951/0.4479, allocations: 424.8 kB / 402.2 MB, free: 14.15 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.119e-05/0.448, allocations: 4.812 kB / 402.2 MB, free: 14.15 MB / 282.7 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.004366/0.4524, allocations: 1.027 MB / 403.2 MB, free: 13.77 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.615e-05/0.4524, allocations: 8.125 kB / 403.2 MB, free: 13.77 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.123e-05/0.4525, allocations: 4.906 kB / 403.2 MB, free: 13.77 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.331e-05/0.4525, allocations: 11.38 kB / 403.3 MB, free: 13.77 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00258/0.4551, allocations: 320.6 kB / 403.6 MB, free: 13.75 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.706e-05/0.4552, allocations: 14.73 kB / 403.6 MB, free: 13.74 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001723/0.4569, allocations: 93.39 kB / 403.7 MB, free: 13.72 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001309/0.4571, allocations: 36.7 kB / 403.7 MB, free: 13.71 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 4 (cActuator.armature.stopper_xMax.contact,cActuator.armature.stopper_xMin.contact,pmActuator.armature.stopper_xMax.contact,pmActuator.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (108): * Single equations (assignments): 108 * 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.0007157/0.4578, allocations: 283.3 kB / 404 MB, free: 13.5 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002793/0.4581, allocations: 104.3 kB / 404.1 MB, free: 13.45 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001726/0.4598, allocations: 421.1 kB / 404.5 MB, free: 13.28 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.75e-05/0.4599, allocations: 10.36 kB / 404.5 MB, free: 13.28 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.657e-05/0.4599, allocations: 4.719 kB / 404.5 MB, free: 13.28 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.83e-05/0.46, allocations: 5.047 kB / 404.5 MB, free: 13.28 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006861/0.4668, allocations: 2.342 MB / 406.9 MB, free: 11.72 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.539e-05/0.4669, allocations: 5.938 kB / 406.9 MB, free: 11.72 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001753/0.4687, allocations: 234.6 kB / 407.1 MB, free: 11.66 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.611e-05/0.4687, allocations: 16.16 kB / 407.1 MB, free: 11.65 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.863e-05/0.4688, allocations: 22.98 kB / 407.1 MB, free: 11.64 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.817e-05/0.4689, allocations: 17.56 kB / 407.1 MB, free: 11.63 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.025e-05/0.4689, allocations: 6.875 kB / 407.2 MB, free: 11.63 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003181/0.4721, allocations: 1.396 MB / 408.5 MB, free: 10.34 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005423/0.4727, allocations: 190.3 kB / 408.7 MB, free: 10.16 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002717/0.473, allocations: 19.28 kB / 408.8 MB, free: 10.16 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001277/0.4742, allocations: 61.55 kB / 408.8 MB, free: 10.13 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000209/0.4745, allocations: 67.05 kB / 408.9 MB, free: 10.09 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.711e-05/0.4746, allocations: 29.2 kB / 408.9 MB, free: 10.09 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.001579/0.4762, allocations: 0.6792 MB / 409.6 MB, free: 9.715 MB / 282.7 MB Notification: Performance of sort global known variables: time 4.8e-07/0.4762, allocations: 0 / 409.6 MB, free: 9.715 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.001652/0.4779, allocations: 211.3 kB / 409.8 MB, free: 9.691 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (67): * Single equations (assignments): 67 * 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.005037/0.483, allocations: 4.144 MB / 413.9 MB, free: 5.797 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.003465/0.4865, allocations: 0.798 MB / 414.7 MB, free: 5.453 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.587e-05/0.4866, allocations: 3.688 kB / 414.7 MB, free: 5.453 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00162/0.4882, allocations: 402 kB / 415.1 MB, free: 5.266 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001783/0.49, allocations: 175.3 kB / 415.3 MB, free: 5.176 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02116/0.5112, allocations: 9.584 MB / 424.9 MB, free: 11.6 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009749/0.5123, allocations: 1.038 MB / 425.9 MB, free: 10.53 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001166/0.5135, allocations: 391.3 kB / 426.3 MB, free: 10.15 MB / 298.7 MB Notification: Performance of SimCode: time 1.483e-06/0.5135, allocations: 0 / 426.3 MB, free: 10.15 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.044/3.557, allocations: 17.63 MB / 443.9 MB, free: 8.496 MB / 314.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceCurrentBehaviour_fmu --startTime=0 --stopTime=6 --timeout=50 --tolerance=1e-07 Modelica_3_2_3_cpp_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceCurrentBehaviour.fmu > Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour_res.mat does not exist to compare? outputFormat=mat