Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceCurrentBehaviour",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceCurrentBehaviour",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007888/0.0007885, allocations: 94.33 kB / 17 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009799/0.0009801, allocations: 192.7 kB / 17.91 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.372/1.372, allocations: 227.4 MB / 246 MB, free: 11.97 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002279/0.0002281, allocations: 4 kB / 306.8 MB, free: 1.457 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1089/0.1092, allocations: 51.48 MB / 358.3 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour): time 0.005896/0.1151, allocations: 5.612 MB / 363.9 MB, free: 8.344 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003903/0.119, allocations: 2.233 MB / 366.2 MB, free: 6.102 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001051/0.1201, allocations: 16 kB / 366.2 MB, free: 6.086 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008409/0.121, allocations: 302.5 kB / 366.5 MB, free: 5.789 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001272/0.1223, allocations: 445.3 kB / 366.9 MB, free: 5.352 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008105/0.1231, allocations: 291.4 kB / 367.2 MB, free: 5.066 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001317/0.1244, allocations: 1.362 MB / 368.5 MB, free: 3.699 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005085/0.1249, allocations: 382.3 kB / 368.9 MB, free: 3.309 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005744/0.1255, allocations: 454.2 kB / 369.4 MB, free: 2.863 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005857/0.1261, allocations: 0.5445 MB / 369.9 MB, free: 2.316 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001072/0.1262, allocations: 60 kB / 370 MB, free: 2.258 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002195/0.1264, allocations: 91.98 kB / 370.1 MB, free: 2.168 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002066/0.1267, allocations: 215.1 kB / 370.3 MB, free: 1.957 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001954/0.1269, allocations: 253.1 kB / 370.5 MB, free: 1.703 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001136/0.128, allocations: 1.523 MB / 372 MB, free: 180 kB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.128, allocations: 0 / 372 MB, free: 180 kB / 302.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.128, allocations: 0 / 372 MB, free: 180 kB / 302.1 MB Notification: Performance of Transformations before backend: time 1.359e-05/0.128, allocations: 0 / 372 MB, free: 180 kB / 302.1 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.2125/0.3405, allocations: 1.397 MB / 373.4 MB, free: 18.59 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.775e-05/0.3406, allocations: 8.812 kB / 373.4 MB, free: 18.59 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002494/0.3408, allocations: 146.6 kB / 373.6 MB, free: 18.55 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000569/0.3414, allocations: 157.4 kB / 373.7 MB, free: 18.49 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001163/0.3426, allocations: 0.6891 MB / 374.4 MB, free: 18.18 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001204/0.3427, allocations: 79.61 kB / 374.5 MB, free: 18.17 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001471/0.3429, allocations: 99.2 kB / 374.6 MB, free: 18.17 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002211/0.3451, allocations: 1.034 MB / 375.6 MB, free: 18.09 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.987e-05/0.3451, allocations: 5.25 kB / 375.6 MB, free: 18.08 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001019/0.3452, allocations: 42.92 kB / 375.7 MB, free: 18.08 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.295e-05/0.3453, allocations: 23.72 kB / 375.7 MB, free: 18.08 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002287/0.3476, allocations: 0.9408 MB / 376.6 MB, free: 18.01 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00533/0.3529, allocations: 3.682 MB / 380.3 MB, free: 15.73 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002945/0.3559, allocations: 1.099 MB / 381.4 MB, free: 15.47 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007714/0.3567, allocations: 397.4 kB / 381.8 MB, free: 15.33 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.633e-05/0.3567, allocations: 10 kB / 381.8 MB, free: 15.33 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.439e-05/0.3568, allocations: 44.55 kB / 381.9 MB, free: 15.29 MB / 302.1 MB Notification: Performance of pre-optimization done (n=58): time 2.494e-06/0.3568, allocations: 0 / 381.9 MB, free: 15.29 MB / 302.1 MB Notification: Performance of matching and sorting (n=67): time 0.005004/0.3618, allocations: 1.978 MB / 383.8 MB, free: 14.51 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.716e-05/0.3618, allocations: 84.42 kB / 383.9 MB, free: 14.41 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001331/0.3632, allocations: 0.9805 MB / 384.9 MB, free: 14 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.001e-05/0.3632, allocations: 35.98 kB / 384.9 MB, free: 13.96 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003328/0.3636, allocations: 0.5362 MB / 385.5 MB, free: 13.53 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001412/0.3637, allocations: 227.6 kB / 385.7 MB, free: 13.36 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.327e-05/0.3638, allocations: 16.53 kB / 385.7 MB, free: 13.34 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.484e-05/0.3639, allocations: 342.6 kB / 386.1 MB, free: 13.02 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008822/0.3647, allocations: 381.1 kB / 386.4 MB, free: 12.9 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009579/0.3657, allocations: 0.5601 MB / 387 MB, free: 12.57 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009279/0.3667, allocations: 421 kB / 387.4 MB, free: 12.41 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.518e-06/0.3667, allocations: 1.562 kB / 387.4 MB, free: 12.41 MB / 302.1 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.002313/0.369, allocations: 1.097 MB / 388.5 MB, free: 12 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.29e-05/0.369, allocations: 6.562 kB / 388.5 MB, free: 12 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.701e-05/0.369, allocations: 10.77 kB / 388.5 MB, free: 12 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.722e-05/0.3691, allocations: 11.81 kB / 388.5 MB, free: 12 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001217/0.3703, allocations: 321.3 kB / 388.8 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.193e-05/0.3703, allocations: 14.64 kB / 388.8 MB, free: 11.97 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008424/0.3712, allocations: 88.97 kB / 388.9 MB, free: 11.96 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.78e-05/0.3713, allocations: 38.58 kB / 389 MB, free: 11.95 MB / 302.1 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.0004367/0.3717, allocations: 289 kB / 389.3 MB, free: 11.73 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001575/0.3719, allocations: 104.6 kB / 389.4 MB, free: 11.68 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009569/0.3728, allocations: 424.5 kB / 389.8 MB, free: 11.44 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.688e-06/0.3728, allocations: 7.031 kB / 389.8 MB, free: 11.44 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.325e-05/0.3729, allocations: 0 / 389.8 MB, free: 11.44 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.247e-06/0.3729, allocations: 10.83 kB / 389.8 MB, free: 11.43 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003521/0.3764, allocations: 2.338 MB / 392.1 MB, free: 9.711 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.068e-05/0.3764, allocations: 6.875 kB / 392.1 MB, free: 9.711 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000794/0.3772, allocations: 239 kB / 392.4 MB, free: 9.641 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.73e-05/0.3773, allocations: 9.531 kB / 392.4 MB, free: 9.641 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.134e-05/0.3773, allocations: 20.62 kB / 392.4 MB, free: 9.633 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.168e-05/0.3773, allocations: 17.33 kB / 392.4 MB, free: 9.625 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.755e-06/0.3773, allocations: 18.78 kB / 392.4 MB, free: 9.617 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001475/0.3788, allocations: 1.063 MB / 393.5 MB, free: 8.824 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002348/0.3791, allocations: 190 kB / 393.7 MB, free: 8.648 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001217/0.3792, allocations: 22.86 kB / 393.7 MB, free: 8.637 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000587/0.3798, allocations: 62.67 kB / 393.8 MB, free: 8.613 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001118/0.3799, allocations: 69.5 kB / 393.8 MB, free: 8.57 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.116e-05/0.38, allocations: 28.33 kB / 393.9 MB, free: 8.562 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0008806/0.3809, allocations: 0.6824 MB / 394.5 MB, free: 8.176 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3809, allocations: 0 / 394.5 MB, free: 8.176 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008267/0.3817, allocations: 211.1 kB / 394.8 MB, free: 8.152 MB / 302.1 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.002156/0.3839, allocations: 1.881 MB / 396.6 MB, free: 6.73 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001633/0.3855, allocations: 0.8072 MB / 397.4 MB, free: 6.383 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.599e-06/0.3855, allocations: 0 / 397.4 MB, free: 6.383 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000708/0.3862, allocations: 392 kB / 397.8 MB, free: 6.141 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001135/0.3874, allocations: 199.3 kB / 398 MB, free: 5.941 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009194/0.3966, allocations: 6.157 MB / 404.2 MB, free: 15.43 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006319/0.3972, allocations: 1.018 MB / 405.2 MB, free: 14.38 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0006105/0.3979, allocations: 127.2 kB / 405.3 MB, free: 14.25 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005307/0.3984, allocations: 383.3 kB / 405.7 MB, free: 13.88 MB / 318.1 MB Notification: Performance of SimCode: time 7.61e-07/0.3984, allocations: 0 / 405.7 MB, free: 13.88 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03503/0.4334, allocations: 18.31 MB / 424 MB, free: 11.85 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002013/0.4337, allocations: 250.5 kB / 424.2 MB, free: 11.51 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.226/2.66, allocations: 0 / 424.2 MB, free: 11.51 MB / 334.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceCurrentBehaviour_fmu --startTime=0 --stopTime=6 --timeout=50 --tolerance=1e-07 Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ForceCurrentBehaviour.fmu > Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ForceCurrentBehaviour_res.mat does not exist to compare? outputFormat=mat