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.001095/0.001095, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001297/0.001297, allocations: 192.9 kB / 16.25 MB, free: 6.625 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.375/1.375, allocations: 205.1 MB / 222.1 MB, free: 4.676 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.001365/0.001365, allocations: 55.92 kB / 278.2 MB, free: 12.64 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2303/0.2317, allocations: 46.63 MB / 324.9 MB, free: 1.922 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.01119/0.2429, allocations: 10.89 MB / 335.7 MB, free: 9.176 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.008052/0.251, allocations: 3.5 MB / 339.2 MB, free: 5.66 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002428/0.2535, allocations: 39.88 kB / 339.3 MB, free: 5.621 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00681/0.2604, allocations: 8.036 MB / 347.3 MB, free: 13.57 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006778/0.2672, allocations: 4.512 MB / 351.8 MB, free: 9.047 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002495/0.2697, allocations: 0.8234 MB / 352.7 MB, free: 8.223 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.006729/0.2764, allocations: 5.296 MB / 357.9 MB, free: 2.914 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001397/0.2779, allocations: 0.884 MB / 358.8 MB, free: 2 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003853/0.2817, allocations: 2.868 MB / 361.7 MB, free: 15.12 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005122/0.2869, allocations: 5.299 MB / 367 MB, free: 9.809 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007068/0.2876, allocations: 348 kB / 367.3 MB, free: 9.469 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007703/0.2884, allocations: 399.9 kB / 367.7 MB, free: 9.078 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00123/0.2896, allocations: 1.951 MB / 369.7 MB, free: 7.113 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001992/0.2916, allocations: 2.784 MB / 372.5 MB, free: 4.309 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005231/0.2969, allocations: 7.149 MB / 379.6 MB, free: 13.13 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.56e-06/0.2969, allocations: 0 / 379.6 MB, free: 13.13 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.2969, allocations: 4 kB / 379.6 MB, free: 13.12 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001688/0.2971, allocations: 0 / 379.6 MB, free: 13.12 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.01124/0.3083, allocations: 7.643 MB / 387.3 MB, free: 5.375 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.638e-05/0.3084, allocations: 15.89 kB / 387.3 MB, free: 5.359 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009755/0.3094, allocations: 0.8416 MB / 388.1 MB, free: 4.508 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003509/0.3129, allocations: 3.159 MB / 391.3 MB, free: 1.273 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001219/0.313, allocations: 160.5 kB / 391.4 MB, free: 1.113 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002976/0.3133, allocations: 212 kB / 391.6 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003884/0.3172, allocations: 2.108 MB / 393.7 MB, free: 14.73 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.623e-05/0.3173, allocations: 7.906 kB / 393.8 MB, free: 14.72 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001821/0.3175, allocations: 84 kB / 393.8 MB, free: 14.64 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.451e-05/0.3175, allocations: 59.98 kB / 393.9 MB, free: 14.58 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003959/0.3215, allocations: 1.895 MB / 395.8 MB, free: 12.68 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01455/0.3361, allocations: 8.946 MB / 404.7 MB, free: 3.531 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003881/0.34, allocations: 2.326 MB / 407.1 MB, free: 1.137 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002508/0.3425, allocations: 1.381 MB / 408.4 MB, free: 15.75 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001357/0.3427, allocations: 42.19 kB / 408.5 MB, free: 15.71 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002108/0.3448, allocations: 1.16 MB / 409.6 MB, free: 14.52 MB / 350.1 MB Notification: Performance of pre-optimization done (n=242): time 4.338e-06/0.3448, allocations: 0 / 409.6 MB, free: 14.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=367): time 0.06404/0.4088, allocations: 22.81 MB / 432.4 MB, free: 7.352 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0285/0.4374, allocations: 13.63 MB / 446.1 MB, free: 9.34 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1834/0.6208, allocations: 14.89 MB / 461 MB, free: 104.2 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007884/0.6217, allocations: 87.08 kB / 461.1 MB, free: 104.1 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00283/0.6245, allocations: 3.73 MB / 464.8 MB, free: 101.5 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001139/0.6257, allocations: 1.211 MB / 466 MB, free: 101.1 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008747/0.6265, allocations: 0.5205 MB / 466.5 MB, free: 100.9 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.844e-05/0.6266, allocations: 301.1 kB / 466.8 MB, free: 100.6 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002145/0.6287, allocations: 1.25 MB / 468.1 MB, free: 100.1 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002273/0.631, allocations: 1.625 MB / 469.7 MB, free: 99.25 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004289/0.6353, allocations: 2.99 MB / 472.7 MB, free: 97.69 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.544e-06/0.6353, allocations: 0 / 472.7 MB, free: 97.69 MB / 382.1 MB Notification: Performance of matching and sorting (n=431) (initialization): time 0.009864/0.6452, allocations: 5.219 MB / 477.9 MB, free: 95.59 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.733e-05/0.6453, allocations: 6.969 kB / 477.9 MB, free: 95.59 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.871e-05/0.6453, allocations: 3.469 kB / 477.9 MB, free: 95.59 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005296/0.6506, allocations: 1.395 MB / 479.3 MB, free: 95.26 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002514/0.6531, allocations: 0.5451 MB / 479.8 MB, free: 95.11 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02174/0.6749, allocations: 23.99 MB / 0.492 GB, free: 70.18 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00374/0.6786, allocations: 128.6 kB / 0.4921 GB, free: 70.05 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000658/0.6793, allocations: 112 kB / 0.4923 GB, free: 69.95 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.003322/0.6827, allocations: 2.188 MB / 0.4944 GB, free: 67.75 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001302/0.684, allocations: 0.8213 MB / 0.4952 GB, free: 66.91 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01077/0.6948, allocations: 5.212 MB / 0.5003 GB, free: 61.65 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.212e-05/0.6948, allocations: 36 kB / 0.5003 GB, free: 61.62 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.584e-05/0.6948, allocations: 8 kB / 0.5003 GB, free: 61.61 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.777e-05/0.6949, allocations: 19.92 kB / 0.5003 GB, free: 61.59 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02105/0.7159, allocations: 11.08 MB / 0.5112 GB, free: 50.47 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.953e-05/0.716, allocations: 7.984 kB / 0.5112 GB, free: 50.46 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002284/0.7183, allocations: 455.4 kB / 0.5116 GB, free: 50.02 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005122/0.7234, allocations: 1.349 MB / 0.5129 GB, free: 48.64 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002796/0.7237, allocations: 75.97 kB / 0.513 GB, free: 48.57 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02173/0.7455, allocations: 21.86 MB / 0.5343 GB, free: 25.47 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.02258/0.7681, allocations: 11.93 MB / 0.546 GB, free: 13.25 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01407/0.7822, allocations: 6.941 MB / 0.5528 GB, free: 6.207 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001303/0.7836, allocations: 0.7637 MB / 0.5535 GB, free: 5.414 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001141/0.7847, allocations: 64 kB / 0.5536 GB, free: 5.352 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002655/0.7874, allocations: 107.9 kB / 0.5537 GB, free: 5.246 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007466/0.7882, allocations: 271.4 kB / 0.5539 GB, free: 4.98 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000277/0.7885, allocations: 91.98 kB / 0.554 GB, free: 4.891 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.01291/0.8014, allocations: 11.13 MB / 0.5649 GB, free: 9.82 MB / 398.1 MB Notification: Performance of sort global known variables: time 3.3e-07/0.8014, allocations: 0 / 0.5649 GB, free: 9.82 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.006096/0.8075, allocations: 1.082 MB / 0.566 GB, free: 8.742 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.001603/0.8091, allocations: 0.5028 MB / 0.5664 GB, free: 8.242 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.01303/0.8222, allocations: 4.914 MB / 0.5712 GB, free: 3.246 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 7.153e-06/0.8222, allocations: 0 / 0.5712 GB, free: 3.246 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006303/0.8285, allocations: 3.288 MB / 0.5745 GB, free: 15.84 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006216/0.8348, allocations: 0.5382 MB / 0.575 GB, free: 15.3 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02905/0.8639, allocations: 20.22 MB / 0.5947 GB, free: 11.04 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006048/0.87, allocations: 4.01 MB / 0.5986 GB, free: 6.984 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002652/0.8726, allocations: 300.9 kB / 0.5989 GB, free: 6.688 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008815/0.8735, allocations: 167.4 kB / 0.5991 GB, free: 6.527 MB / 430.1 MB Notification: Performance of SimCode: time 8.41e-07/0.8735, allocations: 0 / 0.5991 GB, free: 6.527 MB / 430.1 MB Notification: Performance of Templates: time 0.335/1.209, allocations: 65.29 MB / 0.6628 GB, free: 98.18 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)