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.001575/0.001575, allocations: 181.9 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.305/2.305, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001091/0.001091, allocations: 86.66 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.067e-05/3.08e-05, allocations: 8 kB / 321.6 MB, free: 17.74 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09723/0.0973, allocations: 47.57 MB / 369.2 MB, free: 2.102 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4171/0.5144, allocations: 86.77 MB / 456 MB, free: 6.547 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000337/0.5148, allocations: 82.83 kB / 456 MB, free: 6.508 MB / 330.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Magnetic/FluxTubes.mo:1363:11-1363:91:writable] Warning: connect(p, p) connects the same connector instance! The connect equation will be ignored. Notification: Performance of FrontEnd - DAE generated: time 0.1758/0.6907, allocations: 35.95 MB / 492 MB, free: 4.199 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.104e-06/0.6907, allocations: 0 / 492 MB, free: 4.199 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.00011/0.6909, allocations: 24 kB / 492 MB, free: 4.176 MB / 362.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.004302/0.6952, allocations: 1.139 MB / 493.1 MB, free: 2.988 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.911e-05/0.6953, allocations: 12.03 kB / 493.2 MB, free: 2.977 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005384/0.6958, allocations: 152 kB / 493.3 MB, free: 2.82 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000403/0.6962, allocations: 118.6 kB / 493.4 MB, free: 2.703 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00172/0.698, allocations: 0.5979 MB / 494 MB, free: 2.062 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002303/0.6982, allocations: 74 kB / 494.1 MB, free: 1.988 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003281/0.6986, allocations: 103.9 kB / 494.2 MB, free: 1.887 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003137/0.7017, allocations: 0.9425 MB / 495.1 MB, free: 0.9297 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.786e-05/0.7018, allocations: 0 / 495.1 MB, free: 0.9297 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001586/0.702, allocations: 40 kB / 495.2 MB, free: 0.8906 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.471e-05/0.7021, allocations: 28 kB / 495.2 MB, free: 0.8633 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002631/0.7047, allocations: 0.7814 MB / 496 MB, free: 84 kB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01002/0.7148, allocations: 3.568 MB / 499.5 MB, free: 12.36 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002331/0.7172, allocations: 0.7937 MB / 0.4886 GB, free: 11.54 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001479/0.7187, allocations: 466.2 kB / 0.4891 GB, free: 11.08 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001498/0.7189, allocations: 12.55 kB / 0.4891 GB, free: 11.07 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.804e-05/0.719, allocations: 43.12 kB / 0.4891 GB, free: 11.02 MB / 378.7 MB Notification: Performance of pre-optimization done (n=95): time 4.398e-06/0.719, allocations: 3.938 kB / 0.4891 GB, free: 11.01 MB / 378.7 MB Notification: Performance of matching and sorting (n=131): time 0.01733/0.7363, allocations: 4.278 MB / 0.4933 GB, free: 6.547 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.291e-05/0.7365, allocations: 98.27 kB / 0.4934 GB, free: 6.43 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00126/0.7377, allocations: 0.5284 MB / 0.4939 GB, free: 5.895 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002434/0.738, allocations: 49.7 kB / 0.494 GB, free: 5.84 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004203/0.7384, allocations: 446.9 kB / 0.4944 GB, free: 5.398 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006627/0.7391, allocations: 445.4 kB / 0.4948 GB, free: 4.957 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001176/0.7393, allocations: 24 kB / 0.4948 GB, free: 4.934 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000206/0.7395, allocations: 354.8 kB / 0.4952 GB, free: 4.578 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001192/0.7407, allocations: 370.6 kB / 0.4955 GB, free: 4.215 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001344/0.742, allocations: 0.5006 MB / 0.496 GB, free: 3.684 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001315/0.7434, allocations: 431.6 kB / 0.4964 GB, free: 3.262 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.352e-06/0.7434, allocations: 0 / 0.4964 GB, free: 3.262 MB / 378.7 MB Notification: Performance of matching and sorting (n=156) (initialization): time 0.003693/0.7471, allocations: 1.168 MB / 0.4976 GB, free: 2.074 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.439e-05/0.7472, allocations: 8 kB / 0.4976 GB, free: 2.066 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.361e-05/0.7472, allocations: 0 / 0.4976 GB, free: 2.066 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007564/0.748, allocations: 150.6 kB / 0.4977 GB, free: 1.91 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002474/0.7505, allocations: 299.6 kB / 0.498 GB, free: 1.617 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006458/0.757, allocations: 4.762 MB / 0.5026 GB, free: 12.45 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001681/0.7587, allocations: 84.03 kB / 0.5027 GB, free: 12.37 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002445/0.759, allocations: 43.98 kB / 0.5028 GB, free: 12.32 MB / 394.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 (pmActuator.armature.stopper_xMax.contact,pmActuator.armature.stopper_xMin.contact,cActuator.armature.stopper_xMax.contact,cActuator.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (142): * Single equations (assignments): 139 * 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%) 6,(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003799/0.7594, allocations: 176.6 kB / 0.5029 GB, free: 12.14 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003438/0.7597, allocations: 94.88 kB / 0.503 GB, free: 12.05 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002499/0.7622, allocations: 0.7988 MB / 0.5038 GB, free: 11.24 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.377e-05/0.7623, allocations: 12 kB / 0.5038 GB, free: 11.23 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.472e-05/0.7624, allocations: 4 kB / 0.5038 GB, free: 11.22 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.935e-05/0.7624, allocations: 3.984 kB / 0.5038 GB, free: 11.22 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008163/0.7706, allocations: 2.973 MB / 0.5067 GB, free: 8.121 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.44e-05/0.7706, allocations: 4 kB / 0.5067 GB, free: 8.117 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002213/0.7729, allocations: 259.9 kB / 0.507 GB, free: 7.863 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006977/0.7736, allocations: 118.5 kB / 0.5071 GB, free: 7.738 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002105/0.7738, allocations: 35.98 kB / 0.5071 GB, free: 7.703 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005198/0.779, allocations: 4.385 MB / 0.5114 GB, free: 2.918 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.763e-06/0.7791, allocations: 4 kB / 0.5114 GB, free: 2.914 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004944/0.784, allocations: 1.951 MB / 0.5133 GB, free: 0.8516 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004404/0.7845, allocations: 176 kB / 0.5135 GB, free: 0.6602 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002653/0.7848, allocations: 24 kB / 0.5135 GB, free: 0.6367 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001364/0.7862, allocations: 83.94 kB / 0.5136 GB, free: 0.5547 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002966/0.7865, allocations: 88.62 kB / 0.5137 GB, free: 476 kB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001202/0.7866, allocations: 35.98 kB / 0.5137 GB, free: 440 kB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0009653/0.7876, allocations: 435.2 kB / 0.5141 GB, free: 0 / 394.7 MB Notification: Performance of sort global known variables: time 2.856e-05/0.7877, allocations: 0 / 0.5141 GB, free: 0 / 394.7 MB Notification: Performance of remove unused functions: time 0.001737/0.7894, allocations: 280 kB / 0.5144 GB, free: 15.73 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 6 (pmActuator.x,pmActuator.armature.stopper_xMin.v_rel,pmActuator.g_ma.Phi,cActuator.x,cActuator.armature.stopper_xMin.v_rel,cActuator.l.i) * Number of discrete variables: 4 (pmActuator.armature.stopper_xMax.contact,pmActuator.armature.stopper_xMin.contact,cActuator.armature.stopper_xMax.contact,cActuator.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (122): * Single equations (assignments): 119 * 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%) 2,(1,100.0%) 5,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005802/0.7953, allocations: 3.308 MB / 0.5176 GB, free: 12.3 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003985/0.7993, allocations: 1.361 MB / 0.519 GB, free: 10.91 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.447e-05/0.7994, allocations: 4 kB / 0.519 GB, free: 10.91 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002349/0.8017, allocations: 0.9111 MB / 0.5198 GB, free: 9.957 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001769/0.8035, allocations: 164.1 kB / 0.52 GB, free: 9.805 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00748/0.8111, allocations: 1.999 MB / 0.522 GB, free: 7.727 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009577/0.8121, allocations: 1.06 MB / 0.523 GB, free: 6.637 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001577/0.8137, allocations: 399.3 kB / 0.5234 GB, free: 6.246 MB / 410.7 MB Notification: Performance of SimCode: time 1.703e-06/0.8137, allocations: 0 / 0.5234 GB, free: 6.246 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.551/4.364, allocations: 31.42 MB / 0.5541 GB, free: 113.6 MB / 410.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)