Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceStrokeBehaviour",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceStrokeBehaviour",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001072/0.001072, allocations: 95.7 kB / 16.95 MB, free: 6.453 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001131/0.001131, allocations: 183.4 kB / 17.84 MB, free: 6.008 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.68/1.68, allocations: 205.4 MB / 224 MB, free: 13.16 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004678/0.0004679, allocations: 8 kB / 280.9 MB, free: 3.625 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1242/0.1247, allocations: 47.58 MB / 328.5 MB, free: 3.973 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour): time 0.005097/0.1298, allocations: 3.912 MB / 332.4 MB, free: 40 kB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.003371/0.1333, allocations: 1.642 MB / 334 MB, free: 14.39 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005477/0.1339, allocations: 12 kB / 334 MB, free: 14.38 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008622/0.1347, allocations: 394.7 kB / 334.4 MB, free: 13.99 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00091/0.1356, allocations: 370.5 kB / 334.8 MB, free: 13.62 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007031/0.1364, allocations: 199.6 kB / 335 MB, free: 13.43 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.00119/0.1376, allocations: 0.8993 MB / 335.9 MB, free: 12.53 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004351/0.138, allocations: 223.8 kB / 336.1 MB, free: 12.3 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000438/0.1385, allocations: 326.8 kB / 336.4 MB, free: 11.98 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005089/0.139, allocations: 426.4 kB / 336.8 MB, free: 11.57 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 7.908e-05/0.1391, allocations: 36 kB / 336.9 MB, free: 11.53 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000166/0.1392, allocations: 56 kB / 336.9 MB, free: 11.48 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001694/0.1394, allocations: 175.3 kB / 337.1 MB, free: 11.3 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00014/0.1396, allocations: 177.3 kB / 337.3 MB, free: 11.12 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008549/0.1404, allocations: 0.9894 MB / 338.2 MB, free: 10.13 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.983e-06/0.1404, allocations: 0 / 338.2 MB, free: 10.13 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.1405, allocations: 0 / 338.2 MB, free: 10.13 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.145e-05/0.1405, allocations: 4 kB / 338.2 MB, free: 10.13 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 151 * Number of variables: 151 Notification: Performance of Generate backend data structure: time 0.002177/0.1427, allocations: 1.09 MB / 339.3 MB, free: 8.988 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.16e-05/0.1427, allocations: 8.031 kB / 339.3 MB, free: 8.98 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001513/0.1429, allocations: 102.5 kB / 339.4 MB, free: 8.871 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001642/0.1431, allocations: 98.83 kB / 339.5 MB, free: 8.773 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009592/0.144, allocations: 0.527 MB / 340.1 MB, free: 8.199 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001072/0.1441, allocations: 49.31 kB / 340.1 MB, free: 8.152 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001126/0.1443, allocations: 67.89 kB / 340.2 MB, free: 8.086 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001307/0.1456, allocations: 0.6519 MB / 340.8 MB, free: 7.418 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.405e-05/0.1456, allocations: 4 kB / 340.8 MB, free: 7.414 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.925e-05/0.1457, allocations: 27.98 kB / 340.9 MB, free: 7.387 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.793e-05/0.1457, allocations: 23.92 kB / 340.9 MB, free: 7.363 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001263/0.147, allocations: 0.5945 MB / 341.5 MB, free: 6.77 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003907/0.1509, allocations: 2.552 MB / 344 MB, free: 4.074 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009212/0.1519, allocations: 485.8 kB / 344.5 MB, free: 3.59 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006517/0.1525, allocations: 306.4 kB / 344.8 MB, free: 3.289 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.378e-05/0.1526, allocations: 16.42 kB / 344.8 MB, free: 3.273 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.999e-05/0.1526, allocations: 31 kB / 344.9 MB, free: 3.234 MB / 286.1 MB Notification: Performance of pre-optimization done (n=48): time 2.855e-06/0.1526, allocations: 4 kB / 344.9 MB, free: 3.23 MB / 286.1 MB Notification: Performance of matching and sorting (n=61): time 0.004456/0.1571, allocations: 1.656 MB / 346.5 MB, free: 1.566 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.588e-05/0.1572, allocations: 59.97 kB / 346.6 MB, free: 1.496 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001316/0.1585, allocations: 0.9457 MB / 347.5 MB, free: 0.543 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 5.511e-05/0.1586, allocations: 33.7 kB / 347.6 MB, free: 0.5039 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003497/0.1589, allocations: 400 kB / 347.9 MB, free: 108 kB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000243/0.1592, allocations: 209.2 kB / 348.1 MB, free: 15.89 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.672e-05/0.1593, allocations: 16 kB / 348.2 MB, free: 15.88 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000167/0.1594, allocations: 337.9 kB / 348.5 MB, free: 15.54 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006334/0.1601, allocations: 261.9 kB / 348.7 MB, free: 15.29 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007008/0.1608, allocations: 363.1 kB / 349.1 MB, free: 14.9 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007078/0.1615, allocations: 299.1 kB / 349.4 MB, free: 14.61 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.476e-06/0.1615, allocations: 0 / 349.4 MB, free: 14.61 MB / 302.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001692/0.1632, allocations: 0.7657 MB / 350.2 MB, free: 13.84 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.741e-05/0.1633, allocations: 11.98 kB / 350.2 MB, free: 13.83 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.408e-06/0.1633, allocations: 0 / 350.2 MB, free: 13.83 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.579e-05/0.1633, allocations: 8 kB / 350.2 MB, free: 13.82 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007587/0.1641, allocations: 183.8 kB / 350.4 MB, free: 13.64 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.463e-05/0.1641, allocations: 7.984 kB / 350.4 MB, free: 13.63 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005582/0.1647, allocations: 59.88 kB / 350.4 MB, free: 13.57 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.697e-05/0.1647, allocations: 27.92 kB / 350.5 MB, free: 13.55 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 2 (actuator.armature.stopper_xMax.contact,actuator.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (83): * Single equations (assignments): 83 * 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.0004501/0.1652, allocations: 261.7 kB / 350.7 MB, free: 13.28 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001203/0.1653, allocations: 83 kB / 350.8 MB, free: 13.2 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001513/0.1668, allocations: 0.6709 MB / 351.5 MB, free: 12.52 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.017e-06/0.1668, allocations: 4 kB / 351.5 MB, free: 12.52 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.763e-06/0.1669, allocations: 0 / 351.5 MB, free: 12.52 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.299e-05/0.1669, allocations: 3.984 kB / 351.5 MB, free: 12.52 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003163/0.17, allocations: 1.859 MB / 353.3 MB, free: 10.53 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.464e-06/0.1701, allocations: 4 kB / 353.3 MB, free: 10.52 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005512/0.1706, allocations: 144.1 kB / 353.5 MB, free: 10.38 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.816e-05/0.1707, allocations: 7.938 kB / 353.5 MB, free: 10.38 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.664e-05/0.1707, allocations: 19.98 kB / 353.5 MB, free: 10.36 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.714e-06/0.1707, allocations: 4 kB / 353.5 MB, free: 10.35 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.028e-06/0.1707, allocations: 4 kB / 353.5 MB, free: 10.35 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001374/0.1721, allocations: 0.7694 MB / 354.3 MB, free: 9.531 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003192/0.1724, allocations: 208 kB / 354.5 MB, free: 9.309 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.286e-05/0.1725, allocations: 15.95 kB / 354.5 MB, free: 9.293 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004239/0.173, allocations: 55.95 kB / 354.5 MB, free: 9.238 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001172/0.1731, allocations: 44.33 kB / 354.6 MB, free: 9.195 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.964e-05/0.1731, allocations: 19.98 kB / 354.6 MB, free: 9.176 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0009623/0.1741, allocations: 0.6904 MB / 355.3 MB, free: 8.488 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.146e-06/0.1741, allocations: 0 / 355.3 MB, free: 8.488 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000614/0.1748, allocations: 147.9 kB / 355.4 MB, free: 8.344 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 2 (actuator.armature.stopper_xMax.contact,actuator.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (61): * Single equations (assignments): 61 * 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.002445/0.1772, allocations: 1.582 MB / 357 MB, free: 6.719 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001404/0.1786, allocations: 0.6084 MB / 357.6 MB, free: 6.109 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.618e-06/0.1786, allocations: 4 kB / 357.6 MB, free: 6.105 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006677/0.1793, allocations: 315.2 kB / 357.9 MB, free: 5.801 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008456/0.1802, allocations: 126.8 kB / 358.1 MB, free: 5.68 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008275/0.1885, allocations: 4.881 MB / 363 MB, free: 0.625 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006127/0.1891, allocations: 0.9594 MB / 363.9 MB, free: 15.64 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005001/0.1896, allocations: 97.03 kB / 364 MB, free: 15.54 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004546/0.1901, allocations: 295.3 kB / 364.3 MB, free: 15.25 MB / 318.1 MB Notification: Performance of SimCode: time 7.51e-07/0.1901, allocations: 3.938 kB / 364.3 MB, free: 15.25 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03141/0.2215, allocations: 14.12 MB / 378.4 MB, free: 1.105 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002578/0.2218, allocations: 257.9 kB / 378.7 MB, free: 0.7617 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.37/2.592, allocations: 3.906 kB / 378.7 MB, free: 0.7578 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceStrokeBehaviour_fmu --startTime=-4 --stopTime=4 --timeout=50 --tolerance=1e-07 Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceStrokeBehaviour.fmu > Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour_res.mat does not exist to compare? outputFormat=mat