Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonPullInStroke",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonPullInStroke",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001128/0.001128, allocations: 105.7 kB / 16.62 MB, free: 6.805 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.001483/0.001483, allocations: 193.8 kB / 17.55 MB, free: 5.949 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.288/1.288, allocations: 222.9 MB / 241.2 MB, free: 15.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000964/0.0009642, allocations: 43.16 kB / 300.2 MB, free: 6.102 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08333/0.08431, allocations: 49.44 MB / 349.7 MB, free: 4.648 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.01095/0.09529, allocations: 11 MB / 360.7 MB, free: 9.598 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005858/0.1012, allocations: 3.6 MB / 364.3 MB, free: 5.984 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001457/0.1027, allocations: 35.88 kB / 364.3 MB, free: 5.949 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.1399/0.2426, allocations: 8.036 MB / 372.4 MB, free: 13.15 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00531/0.2479, allocations: 4.509 MB / 376.9 MB, free: 13.09 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001813/0.2498, allocations: 0.8468 MB / 377.7 MB, free: 13.07 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005521/0.2553, allocations: 5.281 MB / 383 MB, free: 12.56 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009279/0.2562, allocations: 0.8935 MB / 383.9 MB, free: 12.33 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002722/0.259, allocations: 2.871 MB / 386.8 MB, free: 10.95 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003349/0.2623, allocations: 5.3 MB / 392.1 MB, free: 8.906 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003698/0.2627, allocations: 348.8 kB / 392.4 MB, free: 8.566 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005398/0.2632, allocations: 395.9 kB / 392.8 MB, free: 8.184 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007378/0.264, allocations: 1.95 MB / 394.7 MB, free: 6.227 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001183/0.2652, allocations: 2.786 MB / 397.5 MB, free: 3.426 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003841/0.269, allocations: 7.151 MB / 404.7 MB, free: 12.5 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.269, allocations: 0 / 404.7 MB, free: 12.5 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.022e-06/0.2691, allocations: 0.8125 kB / 404.7 MB, free: 12.5 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.756e-05/0.2691, allocations: 0 / 404.7 MB, free: 12.5 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.00928/0.2784, allocations: 7.643 MB / 412.3 MB, free: 4.766 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.669e-05/0.2785, allocations: 12.03 kB / 412.3 MB, free: 4.754 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003038/0.2788, allocations: 287.6 kB / 412.6 MB, free: 4.461 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007561/0.2795, allocations: 0.8521 MB / 413.5 MB, free: 3.602 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003109/0.2826, allocations: 3.155 MB / 416.6 MB, free: 0.5625 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001082/0.2828, allocations: 160.8 kB / 416.8 MB, free: 412 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002562/0.283, allocations: 203.9 kB / 417 MB, free: 208 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003346/0.2864, allocations: 2.116 MB / 419.1 MB, free: 14.02 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.601e-05/0.2864, allocations: 7.984 kB / 419.1 MB, free: 14.01 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001706/0.2866, allocations: 84 kB / 419.2 MB, free: 13.93 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.069e-05/0.2866, allocations: 48 kB / 419.2 MB, free: 13.88 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003565/0.2902, allocations: 1.899 MB / 421.1 MB, free: 11.97 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01207/0.3023, allocations: 8.945 MB / 430.1 MB, free: 2.914 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003865/0.3062, allocations: 2.326 MB / 432.4 MB, free: 0.5195 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002678/0.3089, allocations: 1.386 MB / 433.8 MB, free: 15.14 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001511/0.309, allocations: 50.47 kB / 433.8 MB, free: 15.09 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0022/0.3112, allocations: 1.156 MB / 435 MB, free: 13.9 MB / 350.1 MB Notification: Performance of pre-optimization done (n=242): time 4.989e-06/0.3113, allocations: 4 kB / 435 MB, free: 13.9 MB / 350.1 MB Notification: Performance of matching and sorting (n=367): time 0.06389/0.3752, allocations: 22.8 MB / 457.8 MB, free: 6.82 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.02871/0.4039, allocations: 13.62 MB / 471.4 MB, free: 8.848 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01731/0.4212, allocations: 14.9 MB / 486.3 MB, free: 10.02 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000529/0.4218, allocations: 85.7 kB / 486.4 MB, free: 9.926 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00291/0.4247, allocations: 3.73 MB / 490.1 MB, free: 6.191 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001079/0.4258, allocations: 1.21 MB / 491.3 MB, free: 4.992 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008586/0.4267, allocations: 0.5117 MB / 491.8 MB, free: 4.473 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 8.093e-05/0.4268, allocations: 305.2 kB / 492.1 MB, free: 4.172 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002267/0.429, allocations: 1.252 MB / 493.4 MB, free: 2.918 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002468/0.4315, allocations: 1.624 MB / 495 MB, free: 1.215 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004763/0.4363, allocations: 2.992 MB / 498 MB, free: 14.15 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.052e-06/0.4363, allocations: 0 / 498 MB, free: 14.15 MB / 414.1 MB Notification: Performance of matching and sorting (n=431) (initialization): time 0.01037/0.4467, allocations: 5.21 MB / 0.4914 GB, free: 8.898 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.41e-05/0.4467, allocations: 8 kB / 0.4914 GB, free: 8.891 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.578e-05/0.4467, allocations: 8 kB / 0.4914 GB, free: 8.883 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005416/0.4522, allocations: 1.403 MB / 0.4928 GB, free: 7.453 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002412/0.4546, allocations: 0.5344 MB / 0.4933 GB, free: 6.918 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2268/0.6814, allocations: 23.98 MB / 0.5168 GB, free: 13.71 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002918/0.6843, allocations: 127.9 kB / 0.5169 GB, free: 13.59 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004573/0.6848, allocations: 119.9 kB / 0.517 GB, free: 13.47 MB / 446.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.00318/0.688, allocations: 2.195 MB / 0.5191 GB, free: 11.27 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001116/0.6891, allocations: 0.8175 MB / 0.5199 GB, free: 10.44 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01086/0.7, allocations: 5.222 MB / 0.525 GB, free: 5.168 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.698e-05/0.7, allocations: 36 kB / 0.5251 GB, free: 5.133 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.877e-05/0.7001, allocations: 7.938 kB / 0.5251 GB, free: 5.125 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-05/0.7001, allocations: 23.88 kB / 0.5251 GB, free: 5.102 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1635/0.8636, allocations: 11.07 MB / 0.5359 GB, free: 143.8 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.149e-05/0.8637, allocations: 0 / 0.5359 GB, free: 143.8 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002178/0.8659, allocations: 462 kB / 0.5363 GB, free: 143.8 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00499/0.8709, allocations: 1.342 MB / 0.5377 GB, free: 143.7 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001941/0.8711, allocations: 79.92 kB / 0.5377 GB, free: 143.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01955/0.8906, allocations: 21.87 MB / 0.5591 GB, free: 127 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.02025/0.9109, allocations: 11.93 MB / 0.5707 GB, free: 120.1 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01169/0.9226, allocations: 6.945 MB / 0.5775 GB, free: 117.2 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001175/0.9238, allocations: 0.751 MB / 0.5783 GB, free: 116.9 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006554/0.9245, allocations: 64.44 kB / 0.5783 GB, free: 116.9 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001888/0.9264, allocations: 114.5 kB / 0.5784 GB, free: 116.8 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006673/0.927, allocations: 272.1 kB / 0.5787 GB, free: 116.8 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001684/0.9272, allocations: 93.11 kB / 0.5788 GB, free: 116.7 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.007972/0.9352, allocations: 11.12 MB / 0.5896 GB, free: 106.4 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.9352, allocations: 3.281 kB / 0.5896 GB, free: 106.4 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002735/0.9379, allocations: 1.071 MB / 0.5907 GB, free: 105.3 MB / 446.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.01144/0.9494, allocations: 7.936 MB / 0.5984 GB, free: 97.48 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.008996/0.9584, allocations: 4.917 MB / 0.6032 GB, free: 92.49 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.557e-06/0.9584, allocations: 0 / 0.6032 GB, free: 92.49 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003519/0.9619, allocations: 3.294 MB / 0.6065 GB, free: 89.08 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002361/0.9643, allocations: 0.5367 MB / 0.607 GB, free: 88.55 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08837/1.053, allocations: 89.95 MB / 0.6948 GB, free: 8.438 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004551/1.057, allocations: 4.012 MB / 0.6987 GB, free: 4.383 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001754/1.059, allocations: 304.9 kB / 0.699 GB, free: 4.082 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003323/1.062, allocations: 3.217 MB / 0.7022 GB, free: 0.8633 MB / 462.1 MB Notification: Performance of SimCode: time 6.41e-07/1.062, allocations: 0 / 0.7022 GB, free: 0.8633 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.513/2.576, allocations: 139.3 MB / 0.8382 GB, free: 40.89 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001695/2.576, allocations: 317.2 kB / 0.8385 GB, free: 40.5 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.925/10.5, allocations: 0 / 0.8385 GB, free: 40.5 MB / 462.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonPullInStroke_fmu --startTime=0 --stopTime=0.05 --timeout=50 --tolerance=1e-07 Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonPullInStroke.fmu > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe 2>&1)