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.001177/0.001177, allocations: 96.83 kB / 16.3 MB, free: 5.535 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.001295/0.001295, allocations: 179.5 kB / 17.2 MB, free: 5.469 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.46/1.46, allocations: 223.2 MB / 241.1 MB, free: 384 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00027/0.00027, allocations: 4 kB / 300.8 MB, free: 6.348 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1091/0.1094, allocations: 50.41 MB / 351.2 MB, free: 3.926 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceStrokeBehaviour): time 0.005378/0.1149, allocations: 3.736 MB / 355 MB, free: 172 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002955/0.1178, allocations: 1.704 MB / 356.7 MB, free: 14.46 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003895/0.1183, allocations: 8 kB / 356.7 MB, free: 14.45 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00061/0.1189, allocations: 386.8 kB / 357.1 MB, free: 14.07 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007215/0.1196, allocations: 430.8 kB / 357.5 MB, free: 13.65 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005434/0.1202, allocations: 210.4 kB / 357.7 MB, free: 13.45 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007605/0.1209, allocations: 0.628 MB / 358.3 MB, free: 12.82 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003241/0.1213, allocations: 223.8 kB / 358.5 MB, free: 12.59 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003544/0.1216, allocations: 338.9 kB / 358.9 MB, free: 12.25 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004679/0.1221, allocations: 406.5 kB / 359.3 MB, free: 11.86 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.762e-05/0.1222, allocations: 36 kB / 359.3 MB, free: 11.82 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001514/0.1223, allocations: 56 kB / 359.3 MB, free: 11.77 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001636/0.1225, allocations: 175.3 kB / 359.5 MB, free: 11.59 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001337/0.1227, allocations: 173.3 kB / 359.7 MB, free: 11.42 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008107/0.1235, allocations: 0.9897 MB / 360.7 MB, free: 10.43 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.1235, allocations: 0 / 360.7 MB, free: 10.43 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.705e-06/0.1235, allocations: 3.938 kB / 360.7 MB, free: 10.42 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.928e-06/0.1235, allocations: 3.938 kB / 360.7 MB, free: 10.42 MB / 302.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.001924/0.1254, allocations: 1.079 MB / 361.8 MB, free: 9.289 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.018e-05/0.1255, allocations: 8.031 kB / 361.8 MB, free: 9.281 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001266/0.1256, allocations: 106.5 kB / 361.9 MB, free: 9.168 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001307/0.1258, allocations: 98.78 kB / 362 MB, free: 9.07 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000828/0.1266, allocations: 0.527 MB / 362.5 MB, free: 8.5 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000101/0.1267, allocations: 49.31 kB / 362.5 MB, free: 8.449 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.876e-05/0.1268, allocations: 63.98 kB / 362.6 MB, free: 8.387 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001199/0.128, allocations: 0.6557 MB / 363.3 MB, free: 7.715 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.256e-05/0.128, allocations: 7.922 kB / 363.3 MB, free: 7.707 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.483e-05/0.1281, allocations: 31.94 kB / 363.3 MB, free: 7.676 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.772e-05/0.1281, allocations: 12 kB / 363.3 MB, free: 7.664 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001238/0.1294, allocations: 0.5829 MB / 363.9 MB, free: 7.082 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003609/0.133, allocations: 2.571 MB / 366.5 MB, free: 4.371 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009441/0.134, allocations: 486.7 kB / 366.9 MB, free: 3.891 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.095e-05/0.134, allocations: 4.438 kB / 366.9 MB, free: 3.887 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.946e-05/0.134, allocations: 42.94 kB / 367 MB, free: 3.836 MB / 302.1 MB Notification: Performance of pre-optimization done (n=48): time 2.274e-06/0.134, allocations: 0 / 367 MB, free: 3.836 MB / 302.1 MB Notification: Performance of matching and sorting (n=60): time 0.004387/0.1384, allocations: 1.633 MB / 368.6 MB, free: 2.203 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.912e-05/0.1385, allocations: 59.97 kB / 368.7 MB, free: 2.133 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001072/0.1396, allocations: 0.9418 MB / 369.6 MB, free: 1.184 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.761e-05/0.1396, allocations: 37.7 kB / 369.7 MB, free: 1.141 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002911/0.1399, allocations: 404 kB / 370.1 MB, free: 0.7383 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001431/0.1401, allocations: 201.1 kB / 370.3 MB, free: 0.5391 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.296e-05/0.1401, allocations: 12 kB / 370.3 MB, free: 0.5273 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001313/0.1403, allocations: 334 kB / 370.6 MB, free: 200 kB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2283/0.3686, allocations: 256.9 kB / 370.8 MB, free: 24.02 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001281/0.3699, allocations: 354.3 kB / 371.2 MB, free: 23.94 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001058/0.371, allocations: 297.2 kB / 371.5 MB, free: 23.94 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.579e-06/0.371, allocations: 0 / 371.5 MB, free: 23.94 MB / 302.1 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.001705/0.3727, allocations: 0.7614 MB / 372.2 MB, free: 23.89 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.521e-05/0.3728, allocations: 6.156 kB / 372.2 MB, free: 23.89 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.267e-05/0.3728, allocations: 6.609 kB / 372.2 MB, free: 23.89 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.449e-05/0.3728, allocations: 5.719 kB / 372.3 MB, free: 23.89 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007825/0.3736, allocations: 178.5 kB / 372.4 MB, free: 23.88 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.534e-05/0.3736, allocations: 6.484 kB / 372.4 MB, free: 23.88 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005458/0.3742, allocations: 58.31 kB / 372.5 MB, free: 23.88 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.091e-05/0.3742, allocations: 26.53 kB / 372.5 MB, free: 23.88 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 (82): * Single equations (assignments): 82 * 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.0003599/0.3746, allocations: 273.7 kB / 372.8 MB, free: 23.76 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001086/0.3747, allocations: 86.08 kB / 372.9 MB, free: 23.76 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001541/0.3763, allocations: 0.6592 MB / 373.5 MB, free: 23.71 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.552e-06/0.3763, allocations: 7.875 kB / 373.5 MB, free: 23.71 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/0.3763, allocations: 0 / 373.5 MB, free: 23.71 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.764e-06/0.3763, allocations: 3.469 kB / 373.5 MB, free: 23.71 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002845/0.3792, allocations: 1.812 MB / 375.4 MB, free: 22.86 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.062e-06/0.3792, allocations: 3.141 kB / 375.4 MB, free: 22.86 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005872/0.3798, allocations: 139.2 kB / 375.5 MB, free: 22.85 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.347e-06/0.3798, allocations: 5.281 kB / 375.5 MB, free: 22.85 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.461e-05/0.3798, allocations: 15.94 kB / 375.5 MB, free: 22.84 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.624e-06/0.3798, allocations: 9.812 kB / 375.5 MB, free: 22.84 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.669e-06/0.3799, allocations: 4.344 kB / 375.5 MB, free: 22.84 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001328/0.3812, allocations: 0.8595 MB / 376.4 MB, free: 22.3 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002729/0.3815, allocations: 217.9 kB / 376.6 MB, free: 22.12 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.565e-05/0.3816, allocations: 10.02 kB / 376.6 MB, free: 22.12 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004459/0.382, allocations: 49.75 kB / 376.7 MB, free: 22.11 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001019/0.3821, allocations: 49.62 kB / 376.7 MB, free: 22.09 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.818e-05/0.3822, allocations: 17.98 kB / 376.7 MB, free: 22.09 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0008527/0.383, allocations: 0.6861 MB / 377.4 MB, free: 21.82 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.383, allocations: 0 / 377.4 MB, free: 21.82 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000593/0.3836, allocations: 146.1 kB / 377.6 MB, free: 21.8 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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 (60): * Single equations (assignments): 60 * 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.002293/0.3859, allocations: 2.224 MB / 379.8 MB, free: 20.1 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001315/0.3873, allocations: 0.6062 MB / 380.4 MB, free: 19.91 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.3873, allocations: 0 / 380.4 MB, free: 19.91 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005882/0.3879, allocations: 309.5 kB / 380.7 MB, free: 19.82 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005933/0.3885, allocations: 112.6 kB / 380.8 MB, free: 19.77 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008339/0.3968, allocations: 6.145 MB / 386.9 MB, free: 16 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006362/0.3975, allocations: 0.9799 MB / 387.9 MB, free: 15.27 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0005549/0.3981, allocations: 94.39 kB / 388 MB, free: 15.25 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000388/0.3985, allocations: 282.8 kB / 388.3 MB, free: 15.04 MB / 302.1 MB Notification: Performance of SimCode: time 8.32e-07/0.3985, allocations: 0 / 388.3 MB, free: 15.04 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02526/0.4238, allocations: 13.99 MB / 402.3 MB, free: 5.34 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001428/0.4239, allocations: 256 kB / 402.5 MB, free: 5.004 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.05/2.474, allocations: 8.062 kB / 402.5 MB, free: 4.996 MB / 302.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