Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ArmatureStroke",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ArmatureStroke",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001323/0.001323, allocations: 175.2 kB / 16.72 MB, free: 4.961 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.427/1.427, allocations: 205.4 MB / 222.9 MB, free: 9 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007869/0.0007868, allocations: 89.11 kB / 271.2 MB, free: 8.23 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003006/0.0003009, allocations: 8 kB / 327.6 MB, free: 15.77 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1949/0.1952, allocations: 47.57 MB / 375.2 MB, free: 45.45 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke): time 0.004475/0.1997, allocations: 5.434 MB / 380.6 MB, free: 41.19 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002459/0.2022, allocations: 1.791 MB / 382.4 MB, free: 39.69 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004662/0.2027, allocations: 19.12 kB / 382.4 MB, free: 39.69 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003987/0.2031, allocations: 165.7 kB / 382.6 MB, free: 39.55 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006476/0.2037, allocations: 328.2 kB / 382.9 MB, free: 39.29 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004554/0.2042, allocations: 209.6 kB / 383.1 MB, free: 39.11 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001061/0.2053, allocations: 1.332 MB / 384.5 MB, free: 38.29 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005106/0.2058, allocations: 450.5 kB / 384.9 MB, free: 38.02 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004466/0.2062, allocations: 417.2 kB / 385.3 MB, free: 37.8 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004134/0.2067, allocations: 0.489 MB / 385.8 MB, free: 37.47 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001132/0.2068, allocations: 60.94 kB / 385.9 MB, free: 37.47 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001472/0.2069, allocations: 61.38 kB / 385.9 MB, free: 37.47 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001256/0.2071, allocations: 189.9 kB / 386.1 MB, free: 37.31 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004449/0.2075, allocations: 0.5419 MB / 386.6 MB, free: 36.93 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008366/0.2084, allocations: 1.463 MB / 388.1 MB, free: 35.71 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.2084, allocations: 0 / 388.1 MB, free: 35.71 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.004e-06/0.2084, allocations: 0 / 388.1 MB, free: 35.71 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.492e-05/0.2084, allocations: 0 / 388.1 MB, free: 35.71 MB / 298.7 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.002082/0.2105, allocations: 1.286 MB / 389.4 MB, free: 34.37 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.753e-05/0.2105, allocations: 8.031 kB / 389.4 MB, free: 34.36 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001377/0.2107, allocations: 156.2 kB / 389.5 MB, free: 34.2 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001328/0.2108, allocations: 119.5 kB / 389.7 MB, free: 34.08 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007949/0.2116, allocations: 0.665 MB / 390.3 MB, free: 33.38 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.448e-05/0.2117, allocations: 78.56 kB / 390.4 MB, free: 33.3 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000106/0.2118, allocations: 100.3 kB / 390.5 MB, free: 33.2 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001554/0.2134, allocations: 1.025 MB / 391.5 MB, free: 32.16 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.158e-05/0.2134, allocations: 7.984 kB / 391.5 MB, free: 32.16 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.15e-05/0.2135, allocations: 40 kB / 391.6 MB, free: 32.12 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.333e-05/0.2135, allocations: 20 kB / 391.6 MB, free: 32.1 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001591/0.2151, allocations: 0.9147 MB / 392.5 MB, free: 31.19 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003828/0.219, allocations: 3.352 MB / 395.9 MB, free: 27.71 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001131/0.2201, allocations: 0.8279 MB / 396.7 MB, free: 26.87 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007119/0.2209, allocations: 493.5 kB / 397.2 MB, free: 26.38 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.698e-05/0.2209, allocations: 17.12 kB / 397.2 MB, free: 26.37 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.314e-05/0.2209, allocations: 43.12 kB / 397.2 MB, free: 26.31 MB / 298.7 MB Notification: Performance of pre-optimization done (n=91): time 3.676e-06/0.221, allocations: 4 kB / 397.2 MB, free: 26.31 MB / 298.7 MB Notification: Performance of matching and sorting (n=115): time 0.00772/0.2287, allocations: 4.445 MB / 401.7 MB, free: 21.66 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.505e-05/0.2287, allocations: 89.77 kB / 401.8 MB, free: 21.55 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005918/0.2293, allocations: 0.5968 MB / 402.4 MB, free: 20.94 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.826e-05/0.2294, allocations: 45.7 kB / 402.4 MB, free: 20.89 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001783/0.2296, allocations: 436.2 kB / 402.8 MB, free: 20.46 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001655/0.2298, allocations: 390.2 kB / 403.2 MB, free: 20.07 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.722e-05/0.2298, allocations: 23.94 kB / 403.2 MB, free: 20.05 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.265e-05/0.2299, allocations: 398.7 kB / 403.6 MB, free: 19.65 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007251/0.2306, allocations: 398.4 kB / 404 MB, free: 19.26 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007561/0.2314, allocations: 0.5354 MB / 404.6 MB, free: 18.69 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001426/0.2328, allocations: 0.9161 MB / 405.5 MB, free: 17.74 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.2328, allocations: 0 / 405.5 MB, free: 17.74 MB / 298.7 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002048/0.2349, allocations: 1.231 MB / 406.7 MB, free: 16.49 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.657e-05/0.2349, allocations: 8 kB / 406.7 MB, free: 16.48 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.574e-06/0.2349, allocations: 0 / 406.7 MB, free: 16.48 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003247/0.2353, allocations: 126.5 kB / 406.8 MB, free: 16.35 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009165/0.2362, allocations: 267.6 kB / 407.1 MB, free: 16.09 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002329/0.2385, allocations: 4.532 MB / 411.6 MB, free: 11.16 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006903/0.2392, allocations: 59.95 kB / 411.7 MB, free: 11.1 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.118e-05/0.2393, allocations: 39.98 kB / 411.7 MB, free: 11.06 MB / 298.7 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.0003737/0.2397, allocations: 274.9 kB / 412 MB, free: 10.78 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001221/0.2398, allocations: 86.97 kB / 412.1 MB, free: 10.7 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00133/0.2412, allocations: 0.7879 MB / 412.9 MB, free: 9.887 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.494e-06/0.2412, allocations: 12 kB / 412.9 MB, free: 9.875 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.506e-06/0.2412, allocations: 4 kB / 412.9 MB, free: 9.871 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.073e-05/0.2412, allocations: 7.969 kB / 412.9 MB, free: 9.863 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003895/0.2451, allocations: 2.698 MB / 415.6 MB, free: 7.062 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.533e-06/0.2451, allocations: 0 / 415.6 MB, free: 7.062 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001025/0.2462, allocations: 215.7 kB / 415.8 MB, free: 6.852 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004377/0.2466, allocations: 167.4 kB / 416 MB, free: 6.676 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.565e-05/0.2467, allocations: 27.98 kB / 416 MB, free: 6.648 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002659/0.2494, allocations: 5.564 MB / 421.6 MB, free: 0.5547 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.2494, allocations: 0 / 421.6 MB, free: 0.5547 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00301/0.2524, allocations: 1.798 MB / 423.3 MB, free: 14.72 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002482/0.2527, allocations: 160.1 kB / 423.5 MB, free: 14.54 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.974e-05/0.2528, allocations: 24 kB / 423.5 MB, free: 14.52 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005683/0.2533, allocations: 63.95 kB / 423.6 MB, free: 14.46 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001735/0.2535, allocations: 80.33 kB / 423.7 MB, free: 14.38 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.93e-05/0.2536, allocations: 39.98 kB / 423.7 MB, free: 14.34 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0005531/0.2542, allocations: 439.1 kB / 424.1 MB, free: 13.91 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2542, allocations: 0 / 424.1 MB, free: 13.91 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008704/0.255, allocations: 252 kB / 424.4 MB, free: 13.67 MB / 314.7 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.003237/0.2583, allocations: 2.37 MB / 426.8 MB, free: 11.25 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002476/0.2608, allocations: 1.373 MB / 428.1 MB, free: 9.836 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.2608, allocations: 0 / 428.1 MB, free: 9.836 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001458/0.2623, allocations: 1.025 MB / 429.2 MB, free: 8.758 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001177/0.2635, allocations: 181.5 kB / 429.3 MB, free: 8.586 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01026/0.2737, allocations: 6.141 MB / 435.5 MB, free: 2.242 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00064/0.2744, allocations: 1.02 MB / 436.5 MB, free: 1.191 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000664/0.2751, allocations: 395.3 kB / 436.9 MB, free: 0.8086 MB / 314.7 MB Notification: Performance of SimCode: time 1.232e-06/0.2751, allocations: 0 / 436.9 MB, free: 0.8086 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.283/4.558, allocations: 31.16 MB / 468 MB, free: 1.57 MB / 346.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ArmatureStroke_fmu --startTime=0 --stopTime=0.05 --timeout=50 --tolerance=1e-07 Modelica_3_2_3_cpp_Modelica_Magnetic_FluxTubes_Examples_MovingCoilActuator_ArmatureStroke.fmu > Modelica_3.2.3_cpp_Modelica.Magnetic.FluxTubes.Examples.MovingCoilActuator.ArmatureStroke.pipe 2>&1)