Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceStrokeBehaviour",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour,fileNamePrefix="Modelica_4_0_0_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.0007662/0.0007662, allocations: 89.69 kB / 16.31 MB, free: 5.684 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.0008632/0.0008633, allocations: 180.8 kB / 17.21 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.367/1.367, allocations: 223.3 MB / 241.2 MB, free: 5.438 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000243/0.0002431, allocations: 6.344 kB / 300.9 MB, free: 6.031 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09296/0.09322, allocations: 50.43 MB / 351.3 MB, free: 11.61 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour): time 0.004335/0.09759, allocations: 3.956 MB / 355.3 MB, free: 7.633 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002625/0.1003, allocations: 1.703 MB / 357 MB, free: 5.922 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002761/0.1005, allocations: 11.94 kB / 357 MB, free: 5.91 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006273/0.1012, allocations: 390.7 kB / 357.4 MB, free: 5.527 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006365/0.1018, allocations: 374.2 kB / 357.8 MB, free: 5.16 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005168/0.1024, allocations: 206.6 kB / 358 MB, free: 4.961 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009098/0.1033, allocations: 0.9031 MB / 358.9 MB, free: 4.055 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003802/0.1037, allocations: 223.9 kB / 359.1 MB, free: 3.824 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004153/0.1041, allocations: 322.8 kB / 359.4 MB, free: 3.508 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004869/0.1046, allocations: 422.5 kB / 359.8 MB, free: 3.094 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 7.971e-05/0.1047, allocations: 36 kB / 359.9 MB, free: 3.059 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001817/0.1049, allocations: 63.98 kB / 359.9 MB, free: 2.996 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001734/0.105, allocations: 167.3 kB / 360.1 MB, free: 2.828 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001434/0.1052, allocations: 181.2 kB / 360.3 MB, free: 2.645 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008493/0.1061, allocations: 0.9817 MB / 361.2 MB, free: 1.66 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.66e-06/0.1061, allocations: 0 / 361.2 MB, free: 1.66 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.494e-06/0.1061, allocations: 0 / 361.2 MB, free: 1.66 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.3e-05/0.1061, allocations: 4 kB / 361.2 MB, free: 1.656 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.00196/0.1081, allocations: 1.094 MB / 362.3 MB, free: 0.5117 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.027e-05/0.1081, allocations: 8.031 kB / 362.3 MB, free: 0.5039 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000122/0.1082, allocations: 98.52 kB / 362.4 MB, free: 408 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001297/0.1084, allocations: 98.78 kB / 362.5 MB, free: 308 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007695/0.1092, allocations: 0.5309 MB / 363.1 MB, free: 15.73 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.295e-05/0.1093, allocations: 53.31 kB / 363.1 MB, free: 15.67 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.834e-05/0.1094, allocations: 60 kB / 363.2 MB, free: 15.61 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0013/0.1107, allocations: 0.6635 MB / 363.8 MB, free: 14.93 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.891e-05/0.1107, allocations: 0 / 363.8 MB, free: 14.93 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.534e-05/0.1108, allocations: 20 kB / 363.9 MB, free: 14.91 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.544e-05/0.1108, allocations: 16 kB / 363.9 MB, free: 14.9 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001226/0.112, allocations: 0.5946 MB / 364.5 MB, free: 14.3 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003509/0.1155, allocations: 2.56 MB / 367 MB, free: 11.61 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008906/0.1164, allocations: 485.8 kB / 367.5 MB, free: 11.12 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006584/0.1171, allocations: 307.9 kB / 367.8 MB, free: 10.82 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.738e-05/0.1172, allocations: 4.438 kB / 367.8 MB, free: 10.82 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.95e-05/0.1172, allocations: 46.94 kB / 367.9 MB, free: 10.77 MB / 302.1 MB Notification: Performance of pre-optimization done (n=48): time 1.953e-06/0.1172, allocations: 0 / 367.9 MB, free: 10.77 MB / 302.1 MB Notification: Performance of matching and sorting (n=61): time 0.004188/0.1214, allocations: 1.652 MB / 369.5 MB, free: 9.109 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.021e-05/0.1215, allocations: 63.91 kB / 369.6 MB, free: 9.035 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001047/0.1225, allocations: 0.9418 MB / 370.5 MB, free: 8.086 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.156e-05/0.1226, allocations: 41.7 kB / 370.6 MB, free: 8.039 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002773/0.1229, allocations: 400 kB / 370.9 MB, free: 7.641 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000143/0.123, allocations: 201 kB / 371.1 MB, free: 7.441 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.327e-05/0.123, allocations: 12 kB / 371.2 MB, free: 7.43 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001202/0.1232, allocations: 333.9 kB / 371.5 MB, free: 7.098 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005838/0.1238, allocations: 261.9 kB / 371.7 MB, free: 6.84 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006446/0.1244, allocations: 371.1 kB / 372.1 MB, free: 6.449 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006331/0.1251, allocations: 291.1 kB / 372.4 MB, free: 6.168 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.1251, allocations: 0 / 372.4 MB, free: 6.168 MB / 302.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.00146/0.1265, allocations: 0.7736 MB / 373.2 MB, free: 5.387 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.95e-05/0.1266, allocations: 8 kB / 373.2 MB, free: 5.379 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.536e-06/0.1266, allocations: 4 kB / 373.2 MB, free: 5.375 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.612e-05/0.1266, allocations: 8 kB / 373.2 MB, free: 5.367 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007675/0.1274, allocations: 187.8 kB / 373.4 MB, free: 5.184 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.276e-05/0.1274, allocations: 7.938 kB / 373.4 MB, free: 5.176 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004643/0.1279, allocations: 51.95 kB / 373.4 MB, free: 5.125 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.18e-05/0.1279, allocations: 24 kB / 373.4 MB, free: 5.102 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.0003558/0.1283, allocations: 273.6 kB / 373.7 MB, free: 4.824 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001073/0.1284, allocations: 79.06 kB / 373.8 MB, free: 4.746 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001445/0.1299, allocations: 0.6709 MB / 374.5 MB, free: 4.074 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.565e-06/0.1299, allocations: 4 kB / 374.5 MB, free: 4.07 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.616e-06/0.1299, allocations: 0 / 374.5 MB, free: 4.07 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.077e-06/0.1299, allocations: 7.922 kB / 374.5 MB, free: 4.062 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003008/0.1329, allocations: 1.863 MB / 376.3 MB, free: 2.066 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.891e-06/0.1329, allocations: 4 kB / 376.3 MB, free: 2.062 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005518/0.1335, allocations: 135.8 kB / 376.5 MB, free: 1.93 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.075e-05/0.1335, allocations: 4 kB / 376.5 MB, free: 1.926 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.377e-05/0.1336, allocations: 16 kB / 376.5 MB, free: 1.91 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.485e-05/0.1336, allocations: 12.06 kB / 376.5 MB, free: 1.898 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.28e-06/0.1336, allocations: 7.984 kB / 376.5 MB, free: 1.891 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001317/0.1349, allocations: 0.7771 MB / 377.3 MB, free: 1.066 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002512/0.1352, allocations: 208.1 kB / 377.5 MB, free: 0.8438 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.352e-05/0.1353, allocations: 16 kB / 377.5 MB, free: 0.8281 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004078/0.1357, allocations: 47.97 kB / 377.5 MB, free: 0.7812 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000105/0.1358, allocations: 44.31 kB / 377.6 MB, free: 0.7383 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.961e-05/0.1358, allocations: 23.95 kB / 377.6 MB, free: 0.7148 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0007912/0.1366, allocations: 0.6903 MB / 378.3 MB, free: 28 kB / 302.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.1366, allocations: 0 / 378.3 MB, free: 28 kB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005711/0.1372, allocations: 148 kB / 378.4 MB, free: 15.88 MB / 318.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.002266/0.1395, allocations: 1.593 MB / 380 MB, free: 14.36 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001339/0.1409, allocations: 0.6162 MB / 380.7 MB, free: 13.75 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.527e-06/0.1409, allocations: 0 / 380.7 MB, free: 13.75 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00062/0.1415, allocations: 311.2 kB / 381 MB, free: 13.45 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007783/0.1423, allocations: 121.3 kB / 381.1 MB, free: 13.33 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007652/0.15, allocations: 4.881 MB / 386 MB, free: 8.273 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000512/0.1505, allocations: 0.9594 MB / 386.9 MB, free: 7.289 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004181/0.1509, allocations: 97.03 kB / 387 MB, free: 7.195 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003945/0.1513, allocations: 291.3 kB / 387.3 MB, free: 6.91 MB / 318.1 MB Notification: Performance of SimCode: time 3.1e-07/0.1513, allocations: 3.938 kB / 387.3 MB, free: 6.906 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02872/0.1801, allocations: 14.12 MB / 401.4 MB, free: 9.047 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002218/0.1803, allocations: 259.7 kB / 401.7 MB, free: 8.707 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.228/2.409, allocations: 4 kB / 401.7 MB, free: 8.703 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceStrokeBehaviour_fmu --startTime=-4 --stopTime=4 --timeout=50 --tolerance=1e-07 Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceStrokeBehaviour.fmu > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour_res.mat does not exist to compare? outputFormat=mat