Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.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 3.2.3+maint.om/package.mo", uses=false) 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 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: translateModel(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke,tolerance=1e-07,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke") translateModel(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke,tolerance=1e-07,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008446/0.008446, allocations: 104.7 kB / 15.73 MB, free: 6.051 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.001705/0.001705, allocations: 191.6 kB / 16.68 MB, free: 5.965 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.498/1.498, allocations: 205.1 MB / 222.5 MB, free: 4.488 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001299/0.001299, allocations: 49.83 kB / 326.5 MB, free: 14.41 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.098/0.09931, allocations: 46.63 MB / 373.2 MB, free: 1.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.01168/0.111, allocations: 10.98 MB / 384.1 MB, free: 6.293 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007562/0.1186, allocations: 3.546 MB / 387.7 MB, free: 2.73 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002198/0.1209, allocations: 39.88 kB / 387.7 MB, free: 2.691 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006963/0.1279, allocations: 8.132 MB / 395.9 MB, free: 10.54 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.006284/0.1342, allocations: 4.632 MB / 400.5 MB, free: 5.898 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002504/0.1367, allocations: 0.9128 MB / 401.4 MB, free: 4.984 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.007297/0.144, allocations: 5.315 MB / 406.7 MB, free: 15.66 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001548/0.1456, allocations: 0.8865 MB / 407.6 MB, free: 14.73 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005609/0.1512, allocations: 2.856 MB / 410.5 MB, free: 11.87 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007023/0.1583, allocations: 5.123 MB / 415.6 MB, free: 6.73 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001014/0.1593, allocations: 352 kB / 415.9 MB, free: 6.387 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001052/0.1604, allocations: 391.9 kB / 416.3 MB, free: 6.004 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001251/0.1617, allocations: 1.865 MB / 418.2 MB, free: 4.125 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002376/0.164, allocations: 2.792 MB / 421 MB, free: 1.312 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006247/0.1703, allocations: 7.239 MB / 428.2 MB, free: 10.05 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.084e-06/0.1703, allocations: 0 / 428.2 MB, free: 10.05 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.1703, allocations: 0 / 428.2 MB, free: 10.05 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002052/0.1706, allocations: 0 / 428.2 MB, free: 10.05 MB / 366.1 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.01282/0.1834, allocations: 7.655 MB / 435.9 MB, free: 2.285 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.609e-05/0.1834, allocations: 15.83 kB / 435.9 MB, free: 2.27 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001001/0.1845, allocations: 0.8494 MB / 436.7 MB, free: 1.41 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004278/0.1887, allocations: 3.175 MB / 439.9 MB, free: 14.16 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001212/0.1889, allocations: 160.5 kB / 440.1 MB, free: 14 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003139/0.1892, allocations: 212 kB / 440.3 MB, free: 13.79 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003731/0.1929, allocations: 2.108 MB / 442.4 MB, free: 11.61 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.54e-05/0.193, allocations: 4 kB / 442.4 MB, free: 11.61 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001771/0.1932, allocations: 84 kB / 442.5 MB, free: 11.53 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.963e-05/0.1932, allocations: 52 kB / 442.5 MB, free: 11.48 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003692/0.1969, allocations: 1.899 MB / 444.4 MB, free: 9.574 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01451/0.2115, allocations: 8.872 MB / 453.3 MB, free: 0.4961 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1839/0.3954, allocations: 2.321 MB / 455.6 MB, free: 66.91 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002965/0.3984, allocations: 1.417 MB / 457 MB, free: 66.82 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001336/0.3986, allocations: 39.09 kB / 457.1 MB, free: 66.82 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002116/0.4007, allocations: 1.158 MB / 458.2 MB, free: 66.3 MB / 382.1 MB Notification: Performance of pre-optimization done (n=242): time 4.689e-06/0.4007, allocations: 0.8125 kB / 458.2 MB, free: 66.3 MB / 382.1 MB Notification: Performance of matching and sorting (n=367): time 0.05989/0.4606, allocations: 22.82 MB / 481 MB, free: 54.56 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.02431/0.4849, allocations: 13.61 MB / 494.6 MB, free: 40.6 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01155/0.4965, allocations: 14.9 MB / 0.4976 GB, free: 25.77 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006035/0.4972, allocations: 85.69 kB / 0.4977 GB, free: 25.68 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002468/0.4996, allocations: 3.725 MB / 0.5013 GB, free: 21.95 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001232/0.5009, allocations: 1.21 MB / 0.5025 GB, free: 20.75 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007612/0.5016, allocations: 0.5156 MB / 0.503 GB, free: 20.23 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.397e-05/0.5017, allocations: 309.1 kB / 0.5033 GB, free: 19.92 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002115/0.5038, allocations: 1.252 MB / 0.5045 GB, free: 18.67 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002271/0.5061, allocations: 1.626 MB / 0.5061 GB, free: 16.96 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004342/0.5105, allocations: 2.998 MB / 0.509 GB, free: 13.9 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.215e-06/0.5105, allocations: 0 / 0.509 GB, free: 13.9 MB / 382.1 MB Notification: Performance of matching and sorting (n=431) (initialization): time 0.009557/0.52, allocations: 5.198 MB / 0.5141 GB, free: 8.66 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.297e-05/0.5201, allocations: 12 kB / 0.5141 GB, free: 8.648 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.505e-05/0.5201, allocations: 4 kB / 0.5141 GB, free: 8.645 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004853/0.525, allocations: 1.388 MB / 0.5155 GB, free: 7.234 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002434/0.5274, allocations: 0.5344 MB / 0.516 GB, free: 6.699 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02599/0.5534, allocations: 23.96 MB / 0.5394 GB, free: 13.5 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003118/0.5566, allocations: 124 kB / 0.5395 GB, free: 13.38 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002857/0.5569, allocations: 122.5 kB / 0.5396 GB, free: 13.27 MB / 414.1 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 ($PRE.comparisonWithFEA.nextTimeEvent,$whenCondition1,comparisonWithFEA.nextTimeEventScaled,$PRE.comparisonWithFEA.nextTimeEventScaled,comparisonWithFEA.nextTimeEvent,simpleSolenoid.armature.stopper_xMin.contact,simpleSolenoid.armature.stopper_xMax.contact,advancedSolenoid.armature.stopper_xMin.contact,advancedSolenoid.armature.stopper_xMax.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 (not torn): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 7 systems {(1,3,100.0%), (1,3,100.0%), (1,4,100.0%), (1,4,100.0%), (1,3,100.0%), (1,5,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(2,43), (3,50)} Notification: Performance of prepare postOptimizeDAE: time 0.002958/0.5598, allocations: 2.18 MB / 0.5418 GB, free: 11.07 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001063/0.5609, allocations: 0.8214 MB / 0.5426 GB, free: 10.24 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01089/0.5718, allocations: 5.215 MB / 0.5477 GB, free: 4.984 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.998e-05/0.5719, allocations: 36 kB / 0.5477 GB, free: 4.949 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.864e-05/0.5719, allocations: 8 kB / 0.5477 GB, free: 4.941 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.962e-05/0.5719, allocations: 15.94 kB / 0.5477 GB, free: 4.926 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01894/0.5909, allocations: 11.06 MB / 0.5585 GB, free: 9.824 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.955e-05/0.591, allocations: 0 / 0.5585 GB, free: 9.824 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002451/0.5934, allocations: 459.5 kB / 0.559 GB, free: 9.375 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005284/0.5987, allocations: 1.33 MB / 0.5603 GB, free: 8.016 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003549/0.5991, allocations: 75.95 kB / 0.5603 GB, free: 7.941 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02436/0.6235, allocations: 21.85 MB / 0.5817 GB, free: 0.8555 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.02483/0.6483, allocations: 11.93 MB / 0.5933 GB, free: 4.625 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01427/0.6626, allocations: 6.936 MB / 0.6001 GB, free: 13.58 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001874/0.6645, allocations: 0.7521 MB / 0.6008 GB, free: 12.8 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000714/0.6653, allocations: 64 kB / 0.6009 GB, free: 12.74 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002187/0.6675, allocations: 123.9 kB / 0.601 GB, free: 12.62 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008087/0.6683, allocations: 270.8 kB / 0.6013 GB, free: 12.36 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002089/0.6685, allocations: 95.97 kB / 0.6014 GB, free: 12.27 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.01257/0.6811, allocations: 11.12 MB / 0.6122 GB, free: 1.191 MB / 478.1 MB Notification: Performance of sort global known variables: time 7.01e-07/0.6811, allocations: 4 kB / 0.6122 GB, free: 1.188 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.005106/0.6862, allocations: 1.077 MB / 0.6133 GB, free: 116 kB / 478.1 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 (not torn): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 7 systems {(1,2,100.0%), (1,2,100.0%), (1,4,100.0%), (1,5,100.0%), (1,3,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(3,49), (4,42)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001415/0.6877, allocations: 0.4954 MB / 0.6138 GB, free: 15.63 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.008617/0.6963, allocations: 4.812 MB / 0.6185 GB, free: 10.7 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 8.937e-06/0.6963, allocations: 0 / 0.6185 GB, free: 10.7 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005242/0.7016, allocations: 3.291 MB / 0.6217 GB, free: 7.301 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003352/0.705, allocations: 0.5536 MB / 0.6222 GB, free: 6.746 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2257/0.9307, allocations: 17.89 MB / 0.6397 GB, free: 158.1 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003893/0.9347, allocations: 4.01 MB / 0.6436 GB, free: 157.2 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.001728/0.9364, allocations: 313.4 kB / 0.6439 GB, free: 157.2 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006086/0.937, allocations: 170.5 kB / 0.6441 GB, free: 157.2 MB / 494.1 MB Notification: Performance of SimCode: time 7.91e-07/0.937, allocations: 0 / 0.6441 GB, free: 157.2 MB / 494.1 MB Notification: Performance of Templates: time 0.1671/1.104, allocations: 66.46 MB / 0.709 GB, free: 101.1 MB / 494.1 MB make -j1 -f Modelica_3.2.1_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.makefile (rm -f Modelica_3.2.1_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; mkfifo Modelica_3.2.1_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe >> ../files/Modelica_3.2.1_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.sim & ./Modelica_3.2.1_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe 2>&1)