Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke,fileNamePrefix="Modelica_trunk_cpp_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonPullInStroke",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke,fileNamePrefix="Modelica_trunk_cpp_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 trunk/package.mo): time 0.000937/0.0009368, allocations: 190.7 kB / 17.37 MB, free: 4.41 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.231/1.231, allocations: 226.5 MB / 244.7 MB, free: 8.188 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007192/0.0007193, allocations: 104 kB / 296.7 MB, free: 6.898 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002019/0.0002019, allocations: 4 kB / 356.8 MB, free: 10.81 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.196/0.1963, allocations: 51.29 MB / 408.1 MB, free: 27.7 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.007222/0.2035, allocations: 9.769 MB / 417.9 MB, free: 17.9 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.006304/0.2099, allocations: 3.648 MB / 421.6 MB, free: 14.26 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001631/0.2116, allocations: 39.88 kB / 421.6 MB, free: 14.22 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005105/0.2167, allocations: 8.11 MB / 429.7 MB, free: 6.094 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004542/0.2212, allocations: 4.567 MB / 434.3 MB, free: 1.516 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001746/0.223, allocations: 0.5872 MB / 434.9 MB, free: 0.9336 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.004809/0.2278, allocations: 4.48 MB / 439.3 MB, free: 12.44 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001178/0.229, allocations: 0.761 MB / 440.1 MB, free: 11.64 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003333/0.2324, allocations: 2.509 MB / 442.6 MB, free: 9.129 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006745/0.2391, allocations: 4.143 MB / 446.7 MB, free: 4.977 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009216/0.2401, allocations: 144 kB / 446.9 MB, free: 4.836 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001022/0.2411, allocations: 176 kB / 447.1 MB, free: 4.664 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001711/0.2428, allocations: 1.732 MB / 448.8 MB, free: 2.926 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002998/0.2458, allocations: 2.406 MB / 451.2 MB, free: 0.4961 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005/0.2509, allocations: 5.453 MB / 456.7 MB, free: 11.03 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.436e-06/0.2509, allocations: 4 kB / 456.7 MB, free: 11.03 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.384e-06/0.2509, allocations: 0 / 456.7 MB, free: 11.03 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001944/0.2511, allocations: 4 kB / 456.7 MB, free: 11.02 MB / 330.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.01187/0.263, allocations: 6.609 MB / 463.3 MB, free: 4.316 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.058e-05/0.263, allocations: 8.031 kB / 463.3 MB, free: 4.309 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006976/0.2638, allocations: 295.5 kB / 463.6 MB, free: 4.008 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001572/0.2653, allocations: 0.8922 MB / 464.5 MB, free: 3.105 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003878/0.2692, allocations: 3.152 MB / 467.6 MB, free: 15.88 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001191/0.2694, allocations: 152.5 kB / 467.8 MB, free: 15.72 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002943/0.2697, allocations: 215.8 kB / 468 MB, free: 15.51 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003975/0.2736, allocations: 2.119 MB / 470.1 MB, free: 13.32 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.975e-05/0.2737, allocations: 8 kB / 470.1 MB, free: 13.32 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001734/0.2739, allocations: 87.98 kB / 470.2 MB, free: 13.23 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.362e-05/0.2739, allocations: 48 kB / 470.2 MB, free: 13.18 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003808/0.2777, allocations: 1.938 MB / 472.2 MB, free: 11.24 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01555/0.2933, allocations: 8.981 MB / 481.1 MB, free: 2.059 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003955/0.2973, allocations: 2.346 MB / 483.5 MB, free: 15.66 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002562/0.2999, allocations: 1.377 MB / 484.9 MB, free: 14.26 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001435/0.3001, allocations: 42.28 kB / 484.9 MB, free: 14.22 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002167/0.3022, allocations: 1.167 MB / 486.1 MB, free: 13.02 MB / 362.7 MB Notification: Performance of pre-optimization done (n=242): time 4.458e-06/0.3023, allocations: 4 kB / 486.1 MB, free: 13.01 MB / 362.7 MB Notification: Performance of matching and sorting (n=367): time 0.06448/0.3668, allocations: 23.04 MB / 0.4972 GB, free: 5.617 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.2105/0.5773, allocations: 13.18 MB / 0.5101 GB, free: 83.74 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0141/0.5914, allocations: 14.92 MB / 0.5246 GB, free: 76.01 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005638/0.592, allocations: 85.7 kB / 0.5247 GB, free: 75.92 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002529/0.5945, allocations: 3.731 MB / 0.5284 GB, free: 72.45 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001106/0.5957, allocations: 1.217 MB / 0.5295 GB, free: 71.88 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002037/0.5959, allocations: 68 kB / 0.5296 GB, free: 71.81 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001287/0.596, allocations: 433 kB / 0.53 GB, free: 71.38 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002217/0.5982, allocations: 1.262 MB / 0.5313 GB, free: 70.12 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002219/0.6005, allocations: 1.637 MB / 0.5329 GB, free: 68.41 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004453/0.6049, allocations: 3.011 MB / 0.5358 GB, free: 65.36 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.405e-06/0.6049, allocations: 4 kB / 0.5358 GB, free: 65.36 MB / 378.7 MB Notification: Performance of matching and sorting (n=431) (initialization): time 0.01017/0.6151, allocations: 5.219 MB / 0.5409 GB, free: 60.18 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.741e-05/0.6152, allocations: 4 kB / 0.5409 GB, free: 60.18 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.747e-05/0.6152, allocations: 8 kB / 0.5409 GB, free: 60.17 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004933/0.6201, allocations: 1.392 MB / 0.5423 GB, free: 58.79 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002526/0.6227, allocations: 0.5527 MB / 0.5428 GB, free: 58.23 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02106/0.6438, allocations: 21.89 MB / 0.5642 GB, free: 35.18 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003138/0.6469, allocations: 140 kB / 0.5643 GB, free: 35.05 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002826/0.6472, allocations: 112 kB / 0.5644 GB, free: 34.94 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * 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 (309): * Single equations (assignments): 300 * 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: 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%) 3,(1,100.0%) 4,(1,100.0%) 5,(1,100.0%) 4} * Non-linear torn systems: 2 {2 43,3 50} Notification: Performance of prepare postOptimizeDAE: time 0.003086/0.6503, allocations: 2.192 MB / 0.5666 GB, free: 32.73 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008407/0.6512, allocations: 0.8136 MB / 0.5674 GB, free: 31.91 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009735/0.6609, allocations: 5.247 MB / 0.5725 GB, free: 26.62 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.493e-05/0.661, allocations: 39.94 kB / 0.5725 GB, free: 26.58 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.688e-05/0.661, allocations: 8 kB / 0.5725 GB, free: 26.57 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.48e-05/0.661, allocations: 19.94 kB / 0.5725 GB, free: 26.55 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01653/0.6776, allocations: 11.1 MB / 0.5834 GB, free: 15.41 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.537e-05/0.6776, allocations: 4 kB / 0.5834 GB, free: 15.41 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002204/0.6798, allocations: 471.4 kB / 0.5838 GB, free: 14.95 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004951/0.6848, allocations: 1.351 MB / 0.5852 GB, free: 13.57 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002784/0.6851, allocations: 75.97 kB / 0.5852 GB, free: 13.49 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01999/0.7051, allocations: 20 MB / 0.6048 GB, free: 8.309 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.02481/0.7299, allocations: 11.57 MB / 0.6161 GB, free: 12.45 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01381/0.7438, allocations: 6.971 MB / 0.6229 GB, free: 5.387 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001442/0.7452, allocations: 0.7599 MB / 0.6236 GB, free: 4.598 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005864/0.7458, allocations: 67.98 kB / 0.6237 GB, free: 4.531 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002009/0.7479, allocations: 127.9 kB / 0.6238 GB, free: 4.406 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008767/0.7488, allocations: 267.4 kB / 0.6241 GB, free: 4.145 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001998/0.749, allocations: 95.98 kB / 0.6242 GB, free: 4.051 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.01321/0.7622, allocations: 11.16 MB / 0.6351 GB, free: 8.988 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.132e-06/0.7622, allocations: 0 / 0.6351 GB, free: 8.988 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004224/0.7665, allocations: 1.088 MB / 0.6361 GB, free: 7.902 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 9 (advancedSolenoid.x,advancedSolenoid.coil1.i,advancedSolenoid.armature.stopper_xMin.v_rel,advancedSolenoid.coil2.i,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.nextTimeEventScaled,comparisonWithFEA.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (253): * Single equations (assignments): 242 * 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%) 2,(1,100.0%) 2,(1,100.0%) 4,(1,100.0%) 5,(1,100.0%) 3,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 2 {3 49,4 42} Notification: Performance of Backend phase and start with SimCode phase: time 0.01466/0.7811, allocations: 7.957 MB / 0.6439 GB, free: 16 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.007906/0.7891, allocations: 4.815 MB / 0.6486 GB, free: 11.05 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.61e-06/0.7891, allocations: 0 / 0.6486 GB, free: 11.05 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005062/0.7942, allocations: 3.291 MB / 0.6518 GB, free: 7.664 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00426/0.7985, allocations: 0.5279 MB / 0.6523 GB, free: 7.145 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2835/1.082, allocations: 79.1 MB / 0.7296 GB, free: 109.8 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003234/1.085, allocations: 4.014 MB / 0.7335 GB, free: 105.8 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003185/1.088, allocations: 3.256 MB / 0.7367 GB, free: 102.6 MB / 458.7 MB Notification: Performance of SimCode: time 9.11e-07/1.089, allocations: 0 / 0.7367 GB, free: 102.6 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 10.51/11.6, allocations: 0.8427 GB / 1.579 GB, free: 133.4 MB / 490.7 MB (rm -f Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe >> ../files/Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonPullInStroke_fmu --startTime=0 --stopTime=0.05 --timeout=50 --tolerance=1e-07 Modelica_trunk_cpp_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonPullInStroke.fmu > Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe 2>&1)