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.001576/0.001576, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001235/0.001235, allocations: 194 kB / 16.25 MB, free: 6.617 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.417/1.417, allocations: 205.1 MB / 222.1 MB, free: 4.754 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.001385/0.001385, allocations: 55.92 kB / 278.2 MB, free: 12.67 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2116/0.213, allocations: 46.63 MB / 324.9 MB, free: 1.852 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.01142/0.2245, allocations: 10.89 MB / 335.7 MB, free: 9.18 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.007639/0.2322, allocations: 3.488 MB / 339.2 MB, free: 5.676 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002485/0.2347, allocations: 43.81 kB / 339.3 MB, free: 5.633 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007518/0.2423, allocations: 8.04 MB / 347.3 MB, free: 13.58 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006575/0.2489, allocations: 4.509 MB / 351.8 MB, free: 9.059 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002383/0.2513, allocations: 0.8351 MB / 352.7 MB, free: 8.223 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.006938/0.2582, allocations: 5.292 MB / 357.9 MB, free: 2.918 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001882/0.2601, allocations: 0.8879 MB / 358.8 MB, free: 2 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004485/0.2647, allocations: 2.868 MB / 361.7 MB, free: 15.12 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00687/0.2715, allocations: 5.299 MB / 367 MB, free: 9.809 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00118/0.2728, allocations: 348 kB / 367.3 MB, free: 9.469 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001262/0.274, allocations: 396 kB / 367.7 MB, free: 9.082 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001613/0.2757, allocations: 1.947 MB / 369.7 MB, free: 7.121 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002538/0.2782, allocations: 2.795 MB / 372.5 MB, free: 4.305 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005938/0.2842, allocations: 7.141 MB / 379.6 MB, free: 13.13 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.2842, allocations: 0 / 379.6 MB, free: 13.13 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.133e-06/0.2842, allocations: 0 / 379.6 MB, free: 13.13 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001415/0.2844, allocations: 0 / 379.6 MB, free: 13.13 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.01271/0.2971, allocations: 7.647 MB / 387.3 MB, free: 5.379 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.126e-05/0.2972, allocations: 15.89 kB / 387.3 MB, free: 5.363 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001253/0.2984, allocations: 0.8416 MB / 388.1 MB, free: 4.512 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006404/0.3048, allocations: 3.155 MB / 391.3 MB, free: 1.281 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001975/0.3051, allocations: 160.5 kB / 391.4 MB, free: 1.121 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005151/0.3056, allocations: 212 kB / 391.6 MB, free: 0.9141 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00618/0.3118, allocations: 2.108 MB / 393.7 MB, free: 14.73 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.86e-05/0.3119, allocations: 15.84 kB / 393.8 MB, free: 14.72 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002957/0.3122, allocations: 80 kB / 393.8 MB, free: 14.64 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.748e-05/0.3123, allocations: 52 kB / 393.9 MB, free: 14.59 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006066/0.3184, allocations: 1.899 MB / 395.8 MB, free: 12.68 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02129/0.3397, allocations: 8.942 MB / 404.7 MB, free: 3.543 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006042/0.3458, allocations: 2.338 MB / 407.1 MB, free: 1.137 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003829/0.3496, allocations: 1.381 MB / 408.4 MB, free: 15.75 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001792/0.3498, allocations: 34.3 kB / 408.5 MB, free: 15.72 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002843/0.3527, allocations: 1.16 MB / 409.6 MB, free: 14.52 MB / 350.1 MB Notification: Performance of pre-optimization done (n=242): time 4.448e-06/0.3527, allocations: 0 / 409.6 MB, free: 14.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=367): time 0.06564/0.4183, allocations: 22.81 MB / 432.4 MB, free: 7.355 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.02958/0.448, allocations: 13.64 MB / 446.1 MB, free: 9.34 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.175/0.623, allocations: 14.89 MB / 461 MB, free: 104.1 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005662/0.6236, allocations: 86.8 kB / 461.1 MB, free: 104 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002703/0.6263, allocations: 3.723 MB / 464.8 MB, free: 101.4 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001056/0.6274, allocations: 1.213 MB / 466 MB, free: 101.1 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008913/0.6283, allocations: 0.5127 MB / 466.5 MB, free: 100.8 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.463e-05/0.6283, allocations: 308.8 kB / 466.8 MB, free: 100.5 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002139/0.6305, allocations: 1.25 MB / 468.1 MB, free: 100 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00228/0.6328, allocations: 1.623 MB / 469.7 MB, free: 99.18 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004394/0.6372, allocations: 2.989 MB / 472.7 MB, free: 97.62 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.536e-06/0.6372, allocations: 3.375 kB / 472.7 MB, free: 97.62 MB / 382.1 MB Notification: Performance of matching and sorting (n=431) (initialization): time 0.01024/0.6474, allocations: 5.213 MB / 477.9 MB, free: 95.52 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.653e-05/0.6475, allocations: 7.562 kB / 477.9 MB, free: 95.52 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.826e-05/0.6475, allocations: 3.75 kB / 477.9 MB, free: 95.52 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00537/0.6529, allocations: 1.4 MB / 479.3 MB, free: 95.2 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002822/0.6557, allocations: 0.5409 MB / 479.8 MB, free: 95.12 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02247/0.6782, allocations: 23.99 MB / 0.492 GB, free: 70.19 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003293/0.6816, allocations: 123.9 kB / 0.4921 GB, free: 70.07 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004013/0.682, allocations: 112 kB / 0.4922 GB, free: 69.96 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.002531/0.6845, allocations: 2.188 MB / 0.4944 GB, free: 67.76 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008172/0.6853, allocations: 0.8214 MB / 0.4952 GB, free: 66.93 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009769/0.6951, allocations: 5.223 MB / 0.5003 GB, free: 61.66 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.463e-05/0.6952, allocations: 36 kB / 0.5003 GB, free: 61.62 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.608e-05/0.6952, allocations: 4 kB / 0.5003 GB, free: 61.62 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-05/0.6952, allocations: 26.98 kB / 0.5003 GB, free: 61.59 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01746/0.7127, allocations: 11.08 MB / 0.5112 GB, free: 50.48 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.675e-05/0.7128, allocations: 0 / 0.5112 GB, free: 50.48 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002344/0.7151, allocations: 467.4 kB / 0.5116 GB, free: 50.02 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005028/0.7201, allocations: 1.342 MB / 0.5129 GB, free: 48.65 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003409/0.7205, allocations: 75.97 kB / 0.513 GB, free: 48.58 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01982/0.7403, allocations: 21.87 MB / 0.5343 GB, free: 25.47 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.02197/0.7623, allocations: 11.93 MB / 0.546 GB, free: 13.25 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0138/0.7762, allocations: 6.949 MB / 0.5528 GB, free: 6.203 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00175/0.778, allocations: 0.7559 MB / 0.5535 GB, free: 5.418 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009124/0.7789, allocations: 67.98 kB / 0.5536 GB, free: 5.352 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002328/0.7813, allocations: 107.9 kB / 0.5537 GB, free: 5.246 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006466/0.7819, allocations: 267.4 kB / 0.5539 GB, free: 4.984 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001839/0.7821, allocations: 95.97 kB / 0.554 GB, free: 4.891 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.01092/0.793, allocations: 11.13 MB / 0.5649 GB, free: 9.848 MB / 398.1 MB Notification: Performance of sort global known variables: time 3e-07/0.7931, allocations: 0 / 0.5649 GB, free: 9.848 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.004802/0.7979, allocations: 1.081 MB / 0.566 GB, free: 8.77 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.00124/0.7992, allocations: 0.4911 MB / 0.5664 GB, free: 8.277 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.01256/0.8117, allocations: 4.922 MB / 0.5712 GB, free: 3.273 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 7.244e-06/0.8118, allocations: 0 / 0.5712 GB, free: 3.273 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005468/0.8172, allocations: 3.283 MB / 0.5745 GB, free: 15.88 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00391/0.8212, allocations: 0.5384 MB / 0.575 GB, free: 15.34 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02823/0.8495, allocations: 20.22 MB / 0.5947 GB, free: 11.07 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004552/0.8541, allocations: 4.012 MB / 0.5986 GB, free: 7.02 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002209/0.8563, allocations: 308.8 kB / 0.5989 GB, free: 6.715 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006899/0.857, allocations: 175.4 kB / 0.5991 GB, free: 6.547 MB / 430.1 MB Notification: Performance of SimCode: time 1.353e-06/0.857, allocations: 0 / 0.5991 GB, free: 6.547 MB / 430.1 MB Notification: Performance of Templates: time 0.3507/1.208, allocations: 65.28 MB / 0.6629 GB, free: 98.26 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)