Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.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.ArmatureStroke,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ArmatureStroke",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ArmatureStroke",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.0008279/0.0008281, allocations: 89.61 kB / 16.31 MB, free: 6.457 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.0008354/0.0008354, allocations: 180.9 kB / 17.21 MB, free: 6.328 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.361/1.361, allocations: 223.2 MB / 241.2 MB, free: 348 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002477/0.0002477, allocations: 4 kB / 300.9 MB, free: 6.344 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09983/0.1001, allocations: 50.41 MB / 351.3 MB, free: 3.91 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke): time 0.006016/0.1061, allocations: 5.497 MB / 356.8 MB, free: 14.39 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003363/0.1095, allocations: 1.753 MB / 358.6 MB, free: 12.62 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006863/0.1103, allocations: 19.94 kB / 358.6 MB, free: 12.61 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005419/0.1108, allocations: 166.8 kB / 358.8 MB, free: 12.44 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008936/0.1117, allocations: 325.5 kB / 359.1 MB, free: 12.12 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005945/0.1123, allocations: 211.8 kB / 359.3 MB, free: 11.91 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001529/0.1139, allocations: 1.315 MB / 360.6 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005759/0.1144, allocations: 378.2 kB / 361 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005888/0.115, allocations: 422.3 kB / 361.4 MB, free: 9.793 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005447/0.1156, allocations: 489.8 kB / 361.9 MB, free: 9.312 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001142/0.1157, allocations: 64 kB / 361.9 MB, free: 9.25 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001315/0.1159, allocations: 60 kB / 362 MB, free: 9.191 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001629/0.116, allocations: 199.1 kB / 362.2 MB, free: 8.996 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002058/0.1162, allocations: 237.2 kB / 362.4 MB, free: 8.758 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001173/0.1174, allocations: 1.46 MB / 363.9 MB, free: 7.293 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.036e-05/0.1174, allocations: 4 kB / 363.9 MB, free: 7.289 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.385e-06/0.1175, allocations: 3.938 kB / 363.9 MB, free: 7.285 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.75e-05/0.1175, allocations: 4 kB / 363.9 MB, free: 7.281 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: 245 * Number of variables: 245 Notification: Performance of Generate backend data structure: time 0.002421/0.1199, allocations: 1.297 MB / 365.2 MB, free: 5.934 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.981e-05/0.12, allocations: 12.03 kB / 365.2 MB, free: 5.922 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001683/0.1201, allocations: 152.1 kB / 365.3 MB, free: 5.766 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001676/0.1203, allocations: 122.6 kB / 365.5 MB, free: 5.645 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009767/0.1213, allocations: 0.6369 MB / 366.1 MB, free: 4.961 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001063/0.1214, allocations: 78 kB / 366.2 MB, free: 4.887 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001344/0.1216, allocations: 103.9 kB / 366.3 MB, free: 4.785 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001879/0.1234, allocations: 1.025 MB / 367.3 MB, free: 3.746 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.196e-05/0.1235, allocations: 7.891 kB / 367.3 MB, free: 3.738 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.191e-05/0.1236, allocations: 40 kB / 367.4 MB, free: 3.699 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.08e-05/0.1236, allocations: 24 kB / 367.4 MB, free: 3.676 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001813/0.1254, allocations: 0.9069 MB / 368.3 MB, free: 2.77 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1791/0.3045, allocations: 3.346 MB / 371.6 MB, free: 22.69 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001527/0.3061, allocations: 0.8329 MB / 372.5 MB, free: 22.63 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009689/0.3071, allocations: 497.5 kB / 372.9 MB, free: 22.61 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.578e-05/0.3071, allocations: 16.84 kB / 373 MB, free: 22.61 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.806e-05/0.3072, allocations: 43.44 kB / 373 MB, free: 22.57 MB / 302.1 MB Notification: Performance of pre-optimization done (n=91): time 2.815e-06/0.3072, allocations: 0 / 373 MB, free: 22.57 MB / 302.1 MB Notification: Performance of matching and sorting (n=115): time 0.008587/0.3158, allocations: 4.439 MB / 377.4 MB, free: 20.83 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.123e-05/0.3158, allocations: 89.81 kB / 377.5 MB, free: 20.73 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008088/0.3167, allocations: 0.5958 MB / 378.1 MB, free: 20.46 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.214e-05/0.3167, allocations: 43.05 kB / 378.2 MB, free: 20.42 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002368/0.317, allocations: 430.8 kB / 378.6 MB, free: 20.08 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002265/0.3172, allocations: 393.8 kB / 379 MB, free: 19.78 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.104e-05/0.3173, allocations: 24.94 kB / 379 MB, free: 19.76 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001168/0.3174, allocations: 397 kB / 379.4 MB, free: 19.41 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000755/0.3181, allocations: 403 kB / 379.8 MB, free: 19.27 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008366/0.319, allocations: 0.528 MB / 380.3 MB, free: 19 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008066/0.3198, allocations: 445.8 kB / 380.7 MB, free: 18.8 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.569e-06/0.3198, allocations: 1.062 kB / 380.7 MB, free: 18.8 MB / 302.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.0023/0.3221, allocations: 1.222 MB / 382 MB, free: 18.29 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.286e-05/0.3222, allocations: 6 kB / 382 MB, free: 18.29 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.189e-05/0.3222, allocations: 3.844 kB / 382 MB, free: 18.29 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003823/0.3226, allocations: 129.7 kB / 382.1 MB, free: 18.24 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001067/0.3237, allocations: 265.1 kB / 382.4 MB, free: 18.21 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002864/0.3265, allocations: 4.519 MB / 386.9 MB, free: 13.85 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007471/0.3273, allocations: 61.69 kB / 386.9 MB, free: 13.84 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.533e-05/0.3274, allocations: 41.66 kB / 387 MB, free: 13.82 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (128): * Single equations (assignments): 125 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 4,(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004505/0.3278, allocations: 290.3 kB / 387.3 MB, free: 13.59 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001641/0.328, allocations: 95.67 kB / 387.4 MB, free: 13.54 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00153/0.3295, allocations: 0.7807 MB / 388.1 MB, free: 13.17 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.251e-05/0.3296, allocations: 16.64 kB / 388.2 MB, free: 13.17 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.375e-05/0.3296, allocations: 3.844 kB / 388.2 MB, free: 13.17 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.574e-05/0.3296, allocations: 5.766 kB / 388.2 MB, free: 13.17 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004063/0.3337, allocations: 2.689 MB / 390.9 MB, free: 11.72 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.715e-06/0.3337, allocations: 1.656 kB / 390.9 MB, free: 11.72 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008794/0.3346, allocations: 216 kB / 391.1 MB, free: 11.7 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004238/0.335, allocations: 152.7 kB / 391.2 MB, free: 11.63 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.699e-05/0.3351, allocations: 27.33 kB / 391.2 MB, free: 11.62 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003021/0.3381, allocations: 5.576 MB / 396.8 MB, free: 6.125 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.3381, allocations: 3.938 kB / 396.8 MB, free: 6.121 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002988/0.3411, allocations: 1.793 MB / 398.6 MB, free: 5.246 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002381/0.3414, allocations: 169.2 kB / 398.8 MB, free: 5.09 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001099/0.3415, allocations: 26.14 kB / 398.8 MB, free: 5.07 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005542/0.3421, allocations: 62.42 kB / 398.9 MB, free: 5.055 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001705/0.3423, allocations: 80.33 kB / 398.9 MB, free: 5.039 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.369e-05/0.3423, allocations: 38.28 kB / 399 MB, free: 5.027 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005792/0.3429, allocations: 433 kB / 399.4 MB, free: 4.824 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3429, allocations: 1.375 kB / 399.4 MB, free: 4.824 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001027/0.344, allocations: 255.9 kB / 399.7 MB, free: 4.789 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 6 (cActuator.x,cActuator.armature.stopper_xMin.v_rel,cActuator.l.i,pmActuator.x,pmActuator.armature.stopper_xMin.v_rel,pmActuator.coil.Phi) * 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 simulation (104): * Single equations (assignments): 100 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 3,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002952/0.3469, allocations: 2.368 MB / 402 MB, free: 3.348 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002166/0.3491, allocations: 1.371 MB / 403.4 MB, free: 2.539 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.217e-06/0.3491, allocations: 2.844 kB / 403.4 MB, free: 2.539 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001232/0.3503, allocations: 1.023 MB / 404.4 MB, free: 1.609 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009356/0.3513, allocations: 167.7 kB / 404.6 MB, free: 1.449 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01056/0.3619, allocations: 6.106 MB / 410.7 MB, free: 11.16 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007376/0.3626, allocations: 1.02 MB / 411.7 MB, free: 10.12 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0006186/0.3633, allocations: 123.5 kB / 411.8 MB, free: 9.992 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000566/0.3638, allocations: 387.9 kB / 412.2 MB, free: 9.613 MB / 318.1 MB Notification: Performance of SimCode: time 9.52e-07/0.3639, allocations: 0 / 412.2 MB, free: 9.613 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03779/0.4016, allocations: 19.01 MB / 431.2 MB, free: 6.922 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000354/0.4021, allocations: 233.3 kB / 431.4 MB, free: 6.68 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.322/2.725, allocations: 0 / 431.4 MB, free: 6.68 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ArmatureStroke_fmu --startTime=0 --stopTime=0.05 --timeout=50 --tolerance=1e-07 Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ArmatureStroke.fmu > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe 2>&1)