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.0009839/0.0009839, allocations: 172.9 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.326/1.326, allocations: 205.2 MB / 219.8 MB, free: 14.2 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.0008343/0.0008343, allocations: 74.73 kB / 268 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.083e-05/2.086e-05, allocations: 0 / 322.5 MB, free: 17.25 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07253/0.07257, allocations: 47.58 MB / 370.1 MB, free: 1.605 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2708/0.3434, allocations: 88.86 MB / 459 MB, free: 4.531 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001943/0.3436, allocations: 82.27 kB / 459.1 MB, free: 4.492 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.06016/0.4038, allocations: 22.12 MB / 481.2 MB, free: 15.65 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.615e-06/0.4039, allocations: 0 / 481.2 MB, free: 15.65 MB / 362.7 MB Notification: Performance of Transformations before backend: time 8.263e-05/0.404, allocations: 20 kB / 481.2 MB, free: 15.63 MB / 362.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.002202/0.4062, allocations: 1.228 MB / 482.4 MB, free: 14.36 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.534e-05/0.4062, allocations: 8.031 kB / 482.4 MB, free: 14.35 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000164/0.4064, allocations: 148.7 kB / 482.6 MB, free: 14.2 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001809/0.4066, allocations: 134.4 kB / 482.7 MB, free: 14.07 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001025/0.4076, allocations: 0.6531 MB / 483.4 MB, free: 13.37 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001171/0.4077, allocations: 78 kB / 483.4 MB, free: 13.3 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001407/0.4079, allocations: 95.91 kB / 483.5 MB, free: 13.2 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001566/0.4095, allocations: 0.9352 MB / 484.5 MB, free: 12.25 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.41e-05/0.4095, allocations: 0 / 484.5 MB, free: 12.25 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001938/0.4097, allocations: 36 kB / 484.5 MB, free: 12.22 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.812e-05/0.4097, allocations: 24 kB / 484.5 MB, free: 12.2 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001319/0.4111, allocations: 0.7783 MB / 485.3 MB, free: 11.41 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005668/0.4168, allocations: 3.864 MB / 489.2 MB, free: 7.344 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002037/0.4188, allocations: 0.8386 MB / 490 MB, free: 6.488 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006469/0.4195, allocations: 370.8 kB / 490.4 MB, free: 6.121 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.951e-05/0.4195, allocations: 12.55 kB / 490.4 MB, free: 6.109 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.748e-05/0.4196, allocations: 43.06 kB / 490.4 MB, free: 6.059 MB / 362.7 MB Notification: Performance of pre-optimization done (n=68): time 2.534e-06/0.4196, allocations: 0 / 490.4 MB, free: 6.059 MB / 362.7 MB Notification: Performance of matching and sorting (n=86): time 0.003564/0.4232, allocations: 1.653 MB / 492.1 MB, free: 4.395 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.096e-05/0.4232, allocations: 101.5 kB / 492.2 MB, free: 4.277 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009943/0.4242, allocations: 0.8051 MB / 493 MB, free: 3.465 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.951e-05/0.4243, allocations: 37.7 kB / 493 MB, free: 3.422 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003488/0.4246, allocations: 0.503 MB / 493.5 MB, free: 2.91 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002154/0.4249, allocations: 287.8 kB / 493.8 MB, free: 2.625 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.81e-05/0.4249, allocations: 20 kB / 493.8 MB, free: 2.605 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001086/0.425, allocations: 341.9 kB / 494.2 MB, free: 2.266 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005024/0.4256, allocations: 298 kB / 494.4 MB, free: 1.977 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005906/0.4262, allocations: 461.9 kB / 494.9 MB, free: 1.473 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006063/0.4268, allocations: 346.9 kB / 495.2 MB, free: 1.133 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.4268, allocations: 0 / 495.2 MB, free: 1.133 MB / 362.7 MB Notification: Performance of matching and sorting (n=121) (initialization): time 0.0014/0.4282, allocations: 0.9156 MB / 496.1 MB, free: 212 kB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.845e-05/0.4282, allocations: 11.94 kB / 496.2 MB, free: 200 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.267e-06/0.4282, allocations: 7.938 kB / 496.2 MB, free: 192 kB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.216e-05/0.4283, allocations: 8 kB / 496.2 MB, free: 184 kB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001467/0.4298, allocations: 351.8 kB / 496.5 MB, free: 15.84 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.882e-05/0.4298, allocations: 11.94 kB / 496.5 MB, free: 15.82 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009279/0.4307, allocations: 119.9 kB / 496.6 MB, free: 15.71 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.405e-05/0.4308, allocations: 43.98 kB / 496.7 MB, free: 15.66 MB / 378.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.0001538/0.431, allocations: 160.3 kB / 496.8 MB, free: 15.5 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001538/0.4311, allocations: 102.8 kB / 496.9 MB, free: 15.4 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006506/0.4318, allocations: 362.1 kB / 497.3 MB, free: 15.04 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.695e-06/0.4318, allocations: 8 kB / 497.3 MB, free: 15.03 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.845e-06/0.4318, allocations: 4 kB / 497.3 MB, free: 15.02 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.917e-06/0.4318, allocations: 3.984 kB / 497.3 MB, free: 15.02 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004171/0.436, allocations: 2.888 MB / 0.4885 GB, free: 11.93 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.137e-06/0.436, allocations: 12.94 kB / 0.4885 GB, free: 11.92 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001018/0.4371, allocations: 267.6 kB / 0.4887 GB, free: 11.66 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.825e-05/0.4371, allocations: 16 kB / 0.4888 GB, free: 11.64 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.886e-05/0.4372, allocations: 47.92 kB / 0.4888 GB, free: 11.6 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.335e-05/0.4372, allocations: 23.86 kB / 0.4888 GB, free: 11.57 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.003e-05/0.4372, allocations: 15.94 kB / 0.4888 GB, free: 11.56 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001518/0.4387, allocations: 1.671 MB / 0.4905 GB, free: 9.445 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002357/0.439, allocations: 211.8 kB / 0.4907 GB, free: 9.219 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000115/0.4391, allocations: 28 kB / 0.4907 GB, free: 9.191 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007912/0.4399, allocations: 87.89 kB / 0.4908 GB, free: 9.105 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001237/0.44, allocations: 95.62 kB / 0.4909 GB, free: 9.012 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.359e-05/0.4401, allocations: 36 kB / 0.4909 GB, free: 8.977 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0007392/0.4408, allocations: 0.6202 MB / 0.4915 GB, free: 8.363 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.6e-07/0.4408, allocations: 4 kB / 0.4915 GB, free: 8.359 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008778/0.4417, allocations: 236 kB / 0.4918 GB, free: 8.129 MB / 378.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.003143/0.4449, allocations: 5.657 MB / 0.4973 GB, free: 2.145 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001109/0.446, allocations: 0.7161 MB / 0.498 GB, free: 1.426 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.576e-06/0.446, allocations: 192 / 0.498 GB, free: 1.426 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000656/0.4467, allocations: 413.1 kB / 0.4984 GB, free: 1.023 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008777/0.4476, allocations: 196 kB / 0.4986 GB, free: 0.832 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003121/0.4507, allocations: 1.731 MB / 0.5002 GB, free: 14.91 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005446/0.4512, allocations: 1.057 MB / 0.5013 GB, free: 13.82 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0005698/0.4518, allocations: 127.2 kB / 0.5014 GB, free: 13.7 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006048/0.4524, allocations: 387.3 kB / 0.5018 GB, free: 13.32 MB / 394.7 MB Notification: Performance of SimCode: time 4.2e-07/0.4524, allocations: 3.938 kB / 0.5018 GB, free: 13.31 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03614/0.4886, allocations: 19.3 MB / 0.5206 GB, free: 9.992 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002354/0.4889, allocations: 225.9 kB / 0.5208 GB, free: 9.758 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.285/2.774, allocations: 3.938 kB / 0.5208 GB, free: 9.754 MB / 410.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