Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonPullInStroke",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonPullInStroke",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00117/0.00117, allocations: 180.2 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.31/1.31, allocations: 223.2 MB / 240.3 MB, free: 10.16 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008975/0.0008974, allocations: 100.9 kB / 291.5 MB, free: 10.69 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002663/0.0002662, allocations: 8 kB / 351.2 MB, free: 14.99 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2454/0.2457, allocations: 50.41 MB / 401.6 MB, free: 32.54 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1055/0.3513, allocations: 95.68 MB / 497.3 MB, free: 0.7109 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002085/0.3515, allocations: 99.94 kB / 497.4 MB, free: 0.6133 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3799/0.7314, allocations: 79.47 MB / 0.5633 GB, free: 49.1 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.635e-06/0.7314, allocations: 0 / 0.5633 GB, free: 49.1 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0009991/0.7325, allocations: 116 kB / 0.5634 GB, free: 48.99 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 528 * Number of variables: 528 Notification: Performance of Generate backend data structure: time 0.01422/0.7467, allocations: 6.934 MB / 0.5702 GB, free: 41.95 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.067e-05/0.7468, allocations: 8.031 kB / 0.5702 GB, free: 41.95 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001108/0.7479, allocations: 287.4 kB / 0.5705 GB, free: 41.65 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002239/0.7502, allocations: 0.8609 MB / 0.5713 GB, free: 40.78 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008877/0.7591, allocations: 3.643 MB / 0.5749 GB, free: 37.07 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001561/0.7593, allocations: 156.1 kB / 0.575 GB, free: 36.91 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006646/0.7599, allocations: 203.9 kB / 0.5752 GB, free: 36.71 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004547/0.7645, allocations: 2.131 MB / 0.5773 GB, free: 34.52 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.452e-05/0.7646, allocations: 3.984 kB / 0.5773 GB, free: 34.51 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002225/0.7648, allocations: 91.94 kB / 0.5774 GB, free: 34.42 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.097e-05/0.7649, allocations: 48 kB / 0.5774 GB, free: 34.38 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003877/0.7687, allocations: 1.993 MB / 0.5794 GB, free: 32.37 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01905/0.7878, allocations: 10.13 MB / 0.5893 GB, free: 22 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003872/0.7917, allocations: 2.409 MB / 0.5916 GB, free: 19.54 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001669/0.7919, allocations: 42.41 kB / 0.5917 GB, free: 19.5 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002378/0.7943, allocations: 1.194 MB / 0.5928 GB, free: 18.27 MB / 378.7 MB Notification: Performance of pre-optimization done (n=246): time 6.011e-06/0.7943, allocations: 0 / 0.5928 GB, free: 18.27 MB / 378.7 MB Notification: Performance of matching and sorting (n=385): time 0.06159/0.8559, allocations: 21.64 MB / 0.614 GB, free: 12.3 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.1038/0.9598, allocations: 34.49 MB / 0.6476 GB, free: 9.078 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.3762/1.336, allocations: 13.46 MB / 0.6608 GB, free: 96.08 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007635/1.337, allocations: 86.89 kB / 0.6609 GB, free: 96.05 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00401/1.341, allocations: 3.72 MB / 0.6645 GB, free: 95.92 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001286/1.342, allocations: 1.274 MB / 0.6658 GB, free: 95.71 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002691/1.342, allocations: 68.34 kB / 0.6658 GB, free: 95.71 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001809/1.343, allocations: 438.4 kB / 0.6662 GB, free: 95.4 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002734/1.345, allocations: 1.362 MB / 0.6676 GB, free: 95.39 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002637/1.348, allocations: 1.698 MB / 0.6692 GB, free: 95.18 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002639/1.351, allocations: 1.564 MB / 0.6708 GB, free: 95.14 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.125e-06/1.351, allocations: 0 / 0.6708 GB, free: 95.14 MB / 426.7 MB Notification: Performance of matching and sorting (n=448) (initialization): time 0.0137/1.364, allocations: 5.476 MB / 0.6761 GB, free: 94.45 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.741e-05/1.364, allocations: 7.406 kB / 0.6761 GB, free: 94.45 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.262e-05/1.365, allocations: 2.281 kB / 0.6761 GB, free: 94.45 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005793/1.37, allocations: 1.467 MB / 0.6775 GB, free: 94.38 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00329/1.374, allocations: 0.5664 MB / 0.6781 GB, free: 94.38 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02514/1.399, allocations: 22.67 MB / 0.7002 GB, free: 77.35 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004914/1.404, allocations: 198.1 kB / 0.7004 GB, free: 77.29 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008439/1.405, allocations: 122 kB / 0.7005 GB, free: 77.27 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,$PRE.comparisonWithFEA.nextTimeEvent,comparisonWithFEA.nextTimeEvent,$PRE.comparisonWithFEA.nextTimeEventScaled,comparisonWithFEA.nextTimeEventScaled,simpleSolenoid.armature.stopper_xMax.contact,simpleSolenoid.armature.stopper_xMin.contact,advancedSolenoid.armature.stopper_xMax.contact,advancedSolenoid.armature.stopper_xMin.contact) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (320): * Single equations (assignments): 309 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 4,(1,100.0%) 4,(1,100.0%) 3,(1,100.0%) 5,(1,100.0%) 4} * Non-linear torn systems: 2 {2 43,3 54} Notification: Performance of prepare postOptimizeDAE: time 0.005256/1.41, allocations: 2.199 MB / 0.7027 GB, free: 76.63 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002868/1.413, allocations: 0.852 MB / 0.7035 GB, free: 76.18 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01393/1.427, allocations: 5.64 MB / 0.709 GB, free: 73.92 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005171/1.432, allocations: 2.472 MB / 0.7114 GB, free: 72.94 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.122e-05/1.432, allocations: 8.188 kB / 0.7114 GB, free: 72.94 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.959e-05/1.432, allocations: 17.95 kB / 0.7115 GB, free: 72.94 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0289/1.461, allocations: 14.2 MB / 0.7253 GB, free: 64.64 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.902e-05/1.461, allocations: 4 kB / 0.7253 GB, free: 64.64 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002516/1.464, allocations: 488.3 kB / 0.7258 GB, free: 64.24 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005614/1.469, allocations: 1.478 MB / 0.7272 GB, free: 63.08 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003974/1.47, allocations: 83.3 kB / 0.7273 GB, free: 63.01 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02181/1.491, allocations: 20.84 MB / 0.7477 GB, free: 42.29 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.08414/1.576, allocations: 30.5 MB / 0.7775 GB, free: 15.23 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0164/1.592, allocations: 8.05 MB / 0.7853 GB, free: 7.023 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004516/1.597, allocations: 1.597 MB / 0.7869 GB, free: 5.398 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002053/1.599, allocations: 91.95 kB / 0.787 GB, free: 5.309 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003756/1.602, allocations: 175.9 kB / 0.7871 GB, free: 5.137 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009249/1.603, allocations: 287.2 kB / 0.7874 GB, free: 4.855 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00045/1.604, allocations: 99.97 kB / 0.7875 GB, free: 4.758 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.02087/1.625, allocations: 10.87 MB / 0.7981 GB, free: 9.934 MB / 442.7 MB Notification: Performance of sort global known variables: time 7.11e-07/1.625, allocations: 4 kB / 0.7981 GB, free: 9.93 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.008614/1.633, allocations: 1.76 MB / 0.7999 GB, free: 8.176 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 9 ($STATESET2.x[2],$STATESET2.x[1],advancedSolenoid.x,advancedSolenoid.armature.stopper_xMin.v_rel,advancedSolenoid.c_par1.v,advancedSolenoid.c_par2.v,$STATESET1.x,simpleSolenoid.x,simpleSolenoid.armature.stopper_xMin.v_rel) * Number of discrete variables: 7 (advancedSolenoid.armature.stopper_xMax.contact,advancedSolenoid.armature.stopper_xMin.contact,simpleSolenoid.armature.stopper_xMax.contact,simpleSolenoid.armature.stopper_xMin.contact,$whenCondition1,comparisonWithFEA.nextTimeEvent,comparisonWithFEA.nextTimeEventScaled) * Number of discrete states: 2 (comparisonWithFEA.nextTimeEvent,comparisonWithFEA.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (266): * Single equations (assignments): 255 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 4,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 5,(1,100.0%) 3,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 2 {5 55,4 42} Notification: Performance of Backend phase and start with SimCode phase: time 0.02136/1.655, allocations: 9.331 MB / 0.809 GB, free: 14.92 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01057/1.665, allocations: 5.065 MB / 0.8139 GB, free: 9.742 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 8.777e-06/1.666, allocations: 2.656 kB / 0.8139 GB, free: 9.742 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00673/1.672, allocations: 3.529 MB / 0.8174 GB, free: 6.109 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004454/1.677, allocations: 0.4921 MB / 0.8178 GB, free: 5.633 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3223/1.999, allocations: 82.79 MB / 0.8987 GB, free: 79.5 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004072/2.003, allocations: 4.213 MB / 0.9028 GB, free: 76.79 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.003112/2.006, allocations: 0.8468 MB / 0.9036 GB, free: 76.12 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004412/2.011, allocations: 3.432 MB / 0.907 GB, free: 74.84 MB / 458.7 MB Notification: Performance of SimCode: time 1.041e-06/2.011, allocations: 0 / 0.907 GB, free: 74.84 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6368/2.648, allocations: 162.4 MB / 1.066 GB, free: 102.7 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000161/2.648, allocations: 282.1 kB / 1.066 GB, free: 102.4 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.07/13.72, allocations: 0 / 1.066 GB, free: 102.4 MB / 474.7 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonPullInStroke_fmu --startTime=0 --stopTime=0.05 --timeout=50 --tolerance=1e-07 Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonPullInStroke.fmu > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe 2>&1)