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.001145/0.001145, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001224/0.001224, allocations: 197.2 kB / 16.53 MB, free: 6.391 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.305/1.305, allocations: 205.1 MB / 222.4 MB, free: 4.43 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.001915/0.001915, allocations: 47.92 kB / 278.7 MB, free: 12.22 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2243/0.2262, allocations: 46.64 MB / 325.3 MB, free: 2.035 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.01282/0.2391, allocations: 10.97 MB / 336.3 MB, free: 8.895 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.007892/0.247, allocations: 3.542 MB / 339.8 MB, free: 5.336 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002084/0.2492, allocations: 39.88 kB / 339.9 MB, free: 5.297 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0071/0.2563, allocations: 8.132 MB / 348 MB, free: 13.15 MB / 286.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.005973/0.2623, allocations: 4.616 MB / 352.6 MB, free: 8.52 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002243/0.2646, allocations: 0.9283 MB / 353.5 MB, free: 7.59 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.005429/0.27, allocations: 5.3 MB / 358.8 MB, free: 2.277 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001194/0.2712, allocations: 0.884 MB / 359.7 MB, free: 1.363 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003312/0.2745, allocations: 2.856 MB / 362.6 MB, free: 14.5 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005019/0.2796, allocations: 5.119 MB / 367.7 MB, free: 9.363 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007756/0.2804, allocations: 348 kB / 368 MB, free: 9.023 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008575/0.2812, allocations: 392 kB / 368.4 MB, free: 8.641 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001205/0.2824, allocations: 1.873 MB / 370.3 MB, free: 6.754 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002235/0.2847, allocations: 2.795 MB / 373.1 MB, free: 3.938 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00568/0.2904, allocations: 7.145 MB / 380.2 MB, free: 12.76 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.913e-06/0.2904, allocations: 4 kB / 380.2 MB, free: 12.76 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.2904, allocations: 0 / 380.2 MB, free: 12.76 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001797/0.2906, allocations: 0 / 380.2 MB, free: 12.76 MB / 318.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.01152/0.3021, allocations: 7.643 MB / 387.9 MB, free: 5.008 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.057e-05/0.3022, allocations: 15.89 kB / 387.9 MB, free: 4.992 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001014/0.3032, allocations: 0.8455 MB / 388.7 MB, free: 4.137 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004183/0.3074, allocations: 3.155 MB / 391.9 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001199/0.3076, allocations: 156.5 kB / 392.1 MB, free: 0.75 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002773/0.3078, allocations: 216 kB / 392.3 MB, free: 0.5391 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003685/0.3115, allocations: 2.112 MB / 394.4 MB, free: 14.36 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.867e-05/0.3116, allocations: 7.906 kB / 394.4 MB, free: 14.35 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001814/0.3118, allocations: 84 kB / 394.5 MB, free: 14.27 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.391e-05/0.3118, allocations: 52 kB / 394.5 MB, free: 14.22 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003679/0.3155, allocations: 1.895 MB / 396.4 MB, free: 12.32 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01285/0.3284, allocations: 8.942 MB / 405.4 MB, free: 3.172 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003608/0.332, allocations: 2.33 MB / 407.7 MB, free: 0.7773 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002473/0.3345, allocations: 1.377 MB / 409.1 MB, free: 15.4 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001152/0.3347, allocations: 42.28 kB / 409.1 MB, free: 15.36 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002003/0.3367, allocations: 1.156 MB / 410.3 MB, free: 14.16 MB / 350.1 MB Notification: Performance of pre-optimization done (n=242): time 4.268e-06/0.3367, allocations: 0 / 410.3 MB, free: 14.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=367): time 0.06416/0.4009, allocations: 22.81 MB / 433.1 MB, free: 6.992 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.02856/0.4294, allocations: 13.64 MB / 446.7 MB, free: 8.973 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1767/0.6062, allocations: 14.89 MB / 461.6 MB, free: 104.9 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005671/0.6068, allocations: 89.42 kB / 461.7 MB, free: 104.8 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00271/0.6095, allocations: 3.728 MB / 465.4 MB, free: 102.2 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001121/0.6107, allocations: 1.214 MB / 466.6 MB, free: 101.8 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008447/0.6115, allocations: 0.5128 MB / 467.1 MB, free: 101.6 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.68e-05/0.6116, allocations: 303.8 kB / 467.4 MB, free: 101.3 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002204/0.6138, allocations: 1.251 MB / 468.7 MB, free: 100.8 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002304/0.6161, allocations: 1.628 MB / 470.3 MB, free: 99.96 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004435/0.6205, allocations: 2.987 MB / 473.3 MB, free: 98.4 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.514e-06/0.6206, allocations: 4.859 kB / 473.3 MB, free: 98.4 MB / 382.1 MB Notification: Performance of matching and sorting (n=431) (initialization): time 0.009527/0.6301, allocations: 5.212 MB / 478.5 MB, free: 96.3 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.915e-05/0.6302, allocations: 8 kB / 478.5 MB, free: 96.3 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.882e-05/0.6302, allocations: 4 kB / 478.5 MB, free: 96.3 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005221/0.6354, allocations: 1.391 MB / 479.9 MB, free: 95.62 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002767/0.6382, allocations: 0.5438 MB / 480.5 MB, free: 95.16 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02207/0.6603, allocations: 23.98 MB / 0.4926 GB, free: 70.24 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003001/0.6633, allocations: 127.9 kB / 0.4927 GB, free: 70.11 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002317/0.6636, allocations: 112 kB / 0.4929 GB, free: 70 MB / 382.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.002477/0.6661, allocations: 2.191 MB / 0.495 GB, free: 67.8 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007108/0.6668, allocations: 0.8174 MB / 0.4958 GB, free: 66.97 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009463/0.6763, allocations: 5.221 MB / 0.5009 GB, free: 61.71 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.209e-05/0.6763, allocations: 32 kB / 0.5009 GB, free: 61.68 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.592e-05/0.6763, allocations: 12 kB / 0.5009 GB, free: 61.66 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.878e-05/0.6764, allocations: 15.94 kB / 0.5009 GB, free: 61.65 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01649/0.6929, allocations: 11.08 MB / 0.5118 GB, free: 50.53 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.618e-05/0.6929, allocations: 4 kB / 0.5118 GB, free: 50.52 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002263/0.6952, allocations: 459.3 kB / 0.5122 GB, free: 50.07 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004992/0.7002, allocations: 1.35 MB / 0.5135 GB, free: 48.7 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003329/0.7005, allocations: 75.97 kB / 0.5136 GB, free: 48.62 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02031/0.7209, allocations: 21.86 MB / 0.535 GB, free: 25.52 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.02175/0.7427, allocations: 11.93 MB / 0.5466 GB, free: 13.3 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01273/0.7554, allocations: 6.944 MB / 0.5534 GB, free: 6.258 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001381/0.7569, allocations: 0.7559 MB / 0.5541 GB, free: 5.473 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007011/0.7576, allocations: 64 kB / 0.5542 GB, free: 5.41 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002091/0.7597, allocations: 116 kB / 0.5543 GB, free: 5.297 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006203/0.7603, allocations: 267.4 kB / 0.5545 GB, free: 5.035 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001728/0.7605, allocations: 95.97 kB / 0.5546 GB, free: 4.941 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.01134/0.7718, allocations: 11.13 MB / 0.5655 GB, free: 9.875 MB / 398.1 MB Notification: Performance of sort global known variables: time 4.21e-07/0.7719, allocations: 0 / 0.5655 GB, free: 9.875 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.004439/0.7763, allocations: 1.08 MB / 0.5666 GB, free: 8.797 MB / 398.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.001204/0.7775, allocations: 0.4991 MB / 0.5671 GB, free: 8.309 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.01157/0.7891, allocations: 4.917 MB / 0.5719 GB, free: 3.312 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 7.284e-06/0.7892, allocations: 0 / 0.5719 GB, free: 3.312 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005211/0.7944, allocations: 3.284 MB / 0.5751 GB, free: 15.91 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003338/0.7977, allocations: 0.5383 MB / 0.5756 GB, free: 15.37 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02664/0.8244, allocations: 18.09 MB / 0.5933 GB, free: 13.24 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004211/0.8287, allocations: 4.013 MB / 0.5972 GB, free: 9.18 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002202/0.8309, allocations: 300.9 kB / 0.5975 GB, free: 8.883 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006588/0.8316, allocations: 175.4 kB / 0.5976 GB, free: 8.715 MB / 430.1 MB Notification: Performance of SimCode: time 1.182e-06/0.8316, allocations: 4 kB / 0.5976 GB, free: 8.711 MB / 430.1 MB Notification: Performance of Templates: time 0.3226/1.154, allocations: 65.37 MB / 0.6615 GB, free: 99.77 MB / 430.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)