Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.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.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.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.001162/0.001162, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.00127/0.00127, allocations: 198.5 kB / 16.14 MB, free: 6.707 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.364/1.364, allocations: 205.1 MB / 222 MB, free: 4.973 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.001406/0.001406, allocations: 47.92 kB / 278.1 MB, free: 13.01 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.239/0.2405, allocations: 46.63 MB / 324.7 MB, free: 1.828 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.01314/0.2537, allocations: 10.89 MB / 335.6 MB, free: 9.195 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.008585/0.2623, allocations: 3.481 MB / 339 MB, free: 5.773 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002674/0.265, allocations: 39.88 kB / 339.1 MB, free: 5.734 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007436/0.2725, allocations: 8.137 MB / 347.2 MB, free: 13.58 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006814/0.2794, allocations: 4.559 MB / 351.8 MB, free: 9.012 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002676/0.2821, allocations: 0.8273 MB / 352.6 MB, free: 8.184 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.006618/0.2887, allocations: 5.1 MB / 357.7 MB, free: 3.07 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001286/0.29, allocations: 0.7624 MB / 358.5 MB, free: 2.281 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00378/0.2938, allocations: 2.599 MB / 361.1 MB, free: 15.68 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00576/0.2996, allocations: 4.943 MB / 366 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005616/0.3002, allocations: 168 kB / 366.2 MB, free: 10.55 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007619/0.3009, allocations: 212 kB / 366.4 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001418/0.3024, allocations: 1.775 MB / 368.2 MB, free: 8.555 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002164/0.3045, allocations: 2.6 MB / 370.8 MB, free: 5.934 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00541/0.3099, allocations: 6.946 MB / 377.7 MB, free: 14.96 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.95e-06/0.31, allocations: 4 kB / 377.7 MB, free: 14.95 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.31, allocations: 0 / 377.7 MB, free: 14.95 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.000168/0.3101, allocations: 0 / 377.7 MB, free: 14.95 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.013/0.3232, allocations: 7.639 MB / 385.4 MB, free: 7.207 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.634e-05/0.3232, allocations: 8.031 kB / 385.4 MB, free: 7.199 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001229/0.3245, allocations: 0.8494 MB / 386.2 MB, free: 6.34 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004312/0.3288, allocations: 3.159 MB / 389.4 MB, free: 3.105 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001276/0.3289, allocations: 156.5 kB / 389.5 MB, free: 2.949 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002851/0.3292, allocations: 208 kB / 389.7 MB, free: 2.746 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004029/0.3333, allocations: 2.112 MB / 391.8 MB, free: 0.5664 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.722e-05/0.3333, allocations: 3.906 kB / 391.8 MB, free: 0.5625 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001793/0.3335, allocations: 84 kB / 391.9 MB, free: 492 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.683e-05/0.3336, allocations: 52 kB / 392 MB, free: 440 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003806/0.3374, allocations: 1.895 MB / 393.9 MB, free: 14.52 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01453/0.3519, allocations: 8.938 MB / 402.8 MB, free: 5.383 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00383/0.3558, allocations: 2.327 MB / 405.1 MB, free: 2.988 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002621/0.3584, allocations: 1.381 MB / 406.5 MB, free: 1.605 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000137/0.3586, allocations: 54.2 kB / 406.6 MB, free: 1.551 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002159/0.3608, allocations: 1.16 MB / 407.7 MB, free: 364 kB / 334.1 MB Notification: Performance of pre-optimization done (n=242): time 4.188e-06/0.3608, allocations: 0 / 407.7 MB, free: 364 kB / 334.1 MB Notification: Performance of matching and sorting (n=367): time 0.06605/0.4268, allocations: 22.79 MB / 430.5 MB, free: 9.211 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.02886/0.4557, allocations: 13.04 MB / 443.5 MB, free: 11.8 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1833/0.6391, allocations: 14.89 MB / 458.4 MB, free: 104.1 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006271/0.6397, allocations: 88.23 kB / 458.5 MB, free: 104.1 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003067/0.6428, allocations: 3.724 MB / 462.2 MB, free: 103.5 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001367/0.6442, allocations: 1.213 MB / 463.5 MB, free: 103.2 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009931/0.6452, allocations: 0.5137 MB / 464 MB, free: 102.9 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.183e-05/0.6453, allocations: 306.3 kB / 464.3 MB, free: 102.6 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002406/0.6477, allocations: 1.251 MB / 465.5 MB, free: 102.1 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00237/0.6501, allocations: 1.627 MB / 467.1 MB, free: 101.3 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004697/0.6548, allocations: 2.997 MB / 470.1 MB, free: 99.71 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.113e-06/0.6548, allocations: 0 / 470.1 MB, free: 99.71 MB / 382.1 MB Notification: Performance of matching and sorting (n=431) (initialization): time 0.01042/0.6652, allocations: 5.202 MB / 475.3 MB, free: 97.61 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.939e-05/0.6653, allocations: 9.156 kB / 475.4 MB, free: 97.61 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.013e-05/0.6653, allocations: 6 kB / 475.4 MB, free: 97.61 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005349/0.6707, allocations: 1.389 MB / 476.8 MB, free: 97.28 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00271/0.6734, allocations: 0.5422 MB / 477.3 MB, free: 97.23 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02187/0.6953, allocations: 21.91 MB / 499.2 MB, free: 74.97 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003273/0.6986, allocations: 131.8 kB / 499.3 MB, free: 74.84 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000366/0.699, allocations: 119.9 kB / 499.5 MB, free: 74.73 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.002667/0.7016, allocations: 2.18 MB / 0.4899 GB, free: 72.54 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008424/0.7025, allocations: 0.8137 MB / 0.4907 GB, free: 71.71 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009824/0.7123, allocations: 5.222 MB / 0.4958 GB, free: 66.45 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.23e-05/0.7124, allocations: 36 kB / 0.4958 GB, free: 66.41 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.534e-05/0.7124, allocations: 4 kB / 0.4958 GB, free: 66.41 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.142e-05/0.7124, allocations: 27.92 kB / 0.4958 GB, free: 66.38 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01702/0.7295, allocations: 11.09 MB / 0.5067 GB, free: 55.26 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.72e-05/0.7295, allocations: 0 / 0.5067 GB, free: 55.26 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002367/0.7319, allocations: 463.3 kB / 0.5071 GB, free: 54.81 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005203/0.7371, allocations: 1.334 MB / 0.5084 GB, free: 53.45 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003233/0.7374, allocations: 71.97 kB / 0.5085 GB, free: 53.38 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01974/0.7572, allocations: 20.01 MB / 0.528 GB, free: 32.18 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0219/0.7791, allocations: 11.41 MB / 0.5392 GB, free: 20.5 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01212/0.7913, allocations: 6.94 MB / 0.5459 GB, free: 13.46 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001207/0.7925, allocations: 0.7561 MB / 0.5467 GB, free: 12.68 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006227/0.7932, allocations: 64 kB / 0.5467 GB, free: 12.61 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00206/0.7952, allocations: 116 kB / 0.5468 GB, free: 12.5 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000645/0.7959, allocations: 263.3 kB / 0.5471 GB, free: 12.24 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00018/0.7961, allocations: 95.97 kB / 0.5472 GB, free: 12.15 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.009051/0.8051, allocations: 11.12 MB / 0.558 GB, free: 1.074 MB / 382.1 MB Notification: Performance of sort global known variables: time 4.81e-07/0.8052, allocations: 4 kB / 0.5581 GB, free: 1.07 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.004604/0.8098, allocations: 1.074 MB / 0.5591 GB, free: 15.99 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.001246/0.811, allocations: 0.4953 MB / 0.5596 GB, free: 15.51 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.008332/0.8194, allocations: 4.797 MB / 0.5643 GB, free: 10.59 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.502e-06/0.8194, allocations: 4 kB / 0.5643 GB, free: 10.58 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005009/0.8244, allocations: 3.273 MB / 0.5675 GB, free: 7.195 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003215/0.8277, allocations: 0.523 MB / 0.568 GB, free: 6.672 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02554/0.8532, allocations: 20.21 MB / 0.5877 GB, free: 2.406 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003866/0.8571, allocations: 4.01 MB / 0.5916 GB, free: 14.35 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001986/0.8591, allocations: 312.8 kB / 0.5919 GB, free: 14.05 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006526/0.8598, allocations: 167.4 kB / 0.5921 GB, free: 13.88 MB / 430.1 MB Notification: Performance of SimCode: time 8.61e-07/0.8598, allocations: 0 / 0.5921 GB, free: 13.88 MB / 430.1 MB Notification: Performance of Templates: time 0.3299/1.19, allocations: 62.78 MB / 0.6534 GB, free: 106.2 MB / 430.1 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.makefile (rm -f Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.sim & ./Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe 2>&1)