Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonPullInStroke",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke,fileNamePrefix="Modelica_3_2_3_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.00137/0.00137, allocations: 110.6 kB / 17.73 MB, free: 5.34 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.001673/0.001673, allocations: 194.9 kB / 18.67 MB, free: 4.406 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.473/1.473, allocations: 205.1 MB / 224.5 MB, free: 12.23 MB / 190.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.001646/0.001646, allocations: 51.92 kB / 328 MB, free: 3.809 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09867/0.1003, allocations: 46.63 MB / 374.6 MB, free: 5.074 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.2058/0.3062, allocations: 10.98 MB / 385.6 MB, free: 6.973 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007011/0.3132, allocations: 3.545 MB / 389.2 MB, free: 5.133 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002865/0.3161, allocations: 40.03 kB / 389.2 MB, free: 5.125 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00946/0.3257, allocations: 8.134 MB / 397.3 MB, free: 3.73 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007782/0.3335, allocations: 4.624 MB / 402 MB, free: 1.375 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002883/0.3364, allocations: 0.9188 MB / 402.9 MB, free: 0.5469 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.009242/0.3457, allocations: 5.315 MB / 408.2 MB, free: 13.73 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00183/0.3475, allocations: 0.8889 MB / 409.1 MB, free: 13.24 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006127/0.3537, allocations: 2.86 MB / 411.9 MB, free: 10.66 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007911/0.3616, allocations: 5.115 MB / 417.1 MB, free: 5.531 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001076/0.3627, allocations: 360 kB / 417.4 MB, free: 5.18 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001386/0.3641, allocations: 387.9 kB / 417.8 MB, free: 4.801 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001643/0.3658, allocations: 1.865 MB / 419.7 MB, free: 2.922 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002927/0.3687, allocations: 2.788 MB / 422.4 MB, free: 116 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008408/0.3771, allocations: 7.301 MB / 429.7 MB, free: 8.785 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.53e-06/0.3772, allocations: 0 / 429.7 MB, free: 8.785 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.3772, allocations: 0 / 429.7 MB, free: 8.785 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002031/0.3774, allocations: 0 / 429.7 MB, free: 8.785 MB / 350.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.0155/0.3929, allocations: 7.945 MB / 437.7 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.29e-05/0.393, allocations: 8.031 kB / 437.7 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004878/0.3935, allocations: 291.6 kB / 438 MB, free: 436 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001603/0.3951, allocations: 0.8912 MB / 438.9 MB, free: 15.53 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005022/0.4001, allocations: 3.25 MB / 442.1 MB, free: 12.21 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001518/0.4003, allocations: 162.7 kB / 442.3 MB, free: 12.05 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003584/0.4007, allocations: 208 kB / 442.5 MB, free: 11.85 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004177/0.4049, allocations: 2.112 MB / 444.6 MB, free: 9.668 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.323e-05/0.4049, allocations: 11.95 kB / 444.6 MB, free: 9.656 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001886/0.4051, allocations: 80 kB / 444.7 MB, free: 9.578 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.286e-05/0.4052, allocations: 52 kB / 444.7 MB, free: 9.527 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003931/0.4091, allocations: 1.899 MB / 446.6 MB, free: 7.625 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01475/0.4239, allocations: 8.89 MB / 455.5 MB, free: 14.52 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004078/0.428, allocations: 2.333 MB / 457.9 MB, free: 12.12 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002879/0.4309, allocations: 1.416 MB / 459.3 MB, free: 10.71 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001389/0.4311, allocations: 38.28 kB / 459.3 MB, free: 10.67 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002205/0.4333, allocations: 1.167 MB / 460.5 MB, free: 9.465 MB / 382.1 MB Notification: Performance of pre-optimization done (n=242): time 3.887e-06/0.4333, allocations: 3.938 kB / 460.5 MB, free: 9.461 MB / 382.1 MB Notification: Performance of matching and sorting (n=367): time 0.07271/0.506, allocations: 23.21 MB / 483.7 MB, free: 1.941 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.03211/0.5382, allocations: 13.61 MB / 497.3 MB, free: 3.945 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02368/0.5619, allocations: 14.9 MB / 0.5002 GB, free: 5.113 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000822/0.5628, allocations: 89.7 kB / 0.5003 GB, free: 5.02 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004127/0.5669, allocations: 3.747 MB / 0.5039 GB, free: 1.266 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001899/0.5688, allocations: 1.282 MB / 0.5052 GB, free: 15.97 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001031/0.5699, allocations: 0.5118 MB / 0.5057 GB, free: 15.45 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001263/0.57, allocations: 301.1 kB / 0.506 GB, free: 15.15 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002606/0.5726, allocations: 1.248 MB / 0.5072 GB, free: 13.9 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002851/0.5755, allocations: 1.63 MB / 0.5088 GB, free: 12.19 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00548/0.581, allocations: 2.996 MB / 0.5117 GB, free: 9.125 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.947e-06/0.581, allocations: 4 kB / 0.5117 GB, free: 9.121 MB / 446.1 MB Notification: Performance of matching and sorting (n=431) (initialization): time 0.01176/0.5928, allocations: 5.255 MB / 0.5169 GB, free: 3.832 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.994e-05/0.5928, allocations: 8 kB / 0.5169 GB, free: 3.824 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.802e-05/0.5928, allocations: 4 kB / 0.5169 GB, free: 3.82 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005508/0.5984, allocations: 1.385 MB / 0.5182 GB, free: 2.41 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002739/0.6011, allocations: 0.5422 MB / 0.5188 GB, free: 1.867 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03129/0.6324, allocations: 23.98 MB / 0.5422 GB, free: 8.617 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003241/0.6357, allocations: 135.9 kB / 0.5423 GB, free: 8.484 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003918/0.6361, allocations: 112 kB / 0.5424 GB, free: 8.375 MB / 478.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.003622/0.6397, allocations: 2.18 MB / 0.5445 GB, free: 6.184 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001388/0.6411, allocations: 0.8692 MB / 0.5454 GB, free: 5.309 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01199/0.6531, allocations: 5.215 MB / 0.5505 GB, free: 48 kB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.123e-05/0.6532, allocations: 36 kB / 0.5505 GB, free: 12 kB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.056e-05/0.6533, allocations: 4 kB / 0.5505 GB, free: 8 kB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.1927/0.8459, allocations: 18.62 kB / 0.5505 GB, free: 147.7 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02293/0.8689, allocations: 11.06 MB / 0.5613 GB, free: 145.3 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.061e-05/0.869, allocations: 5.828 kB / 0.5613 GB, free: 145.3 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002562/0.8715, allocations: 462.8 kB / 0.5618 GB, free: 145.3 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005704/0.8773, allocations: 1.335 MB / 0.5631 GB, free: 145 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004316/0.8777, allocations: 74.25 kB / 0.5631 GB, free: 144.9 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02329/0.901, allocations: 21.87 MB / 0.5845 GB, free: 127.6 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.02252/0.9236, allocations: 11.95 MB / 0.5962 GB, free: 120.7 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01315/0.9368, allocations: 6.979 MB / 0.603 GB, free: 117.8 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001854/0.9387, allocations: 0.7984 MB / 0.6038 GB, free: 117.4 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008056/0.9395, allocations: 71.42 kB / 0.6038 GB, free: 117.4 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002083/0.9416, allocations: 110.6 kB / 0.6039 GB, free: 117.3 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008319/0.9424, allocations: 272.7 kB / 0.6042 GB, free: 117.2 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001953/0.9426, allocations: 91.31 kB / 0.6043 GB, free: 117.1 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.01107/0.9537, allocations: 11.12 MB / 0.6152 GB, free: 106.2 MB / 478.1 MB Notification: Performance of sort global known variables: time 6.61e-07/0.9538, allocations: 4 kB / 0.6152 GB, free: 106.2 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.005167/0.9589, allocations: 1.076 MB / 0.6162 GB, free: 105.1 MB / 478.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.01398/0.9729, allocations: 7.98 MB / 0.624 GB, free: 97.12 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.007601/0.9806, allocations: 4.833 MB / 0.6287 GB, free: 92.17 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.612e-06/0.9806, allocations: 0 / 0.6287 GB, free: 92.17 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004821/0.9855, allocations: 3.291 MB / 0.6319 GB, free: 88.77 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00361/0.9891, allocations: 0.5578 MB / 0.6325 GB, free: 88.21 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08337/1.073, allocations: 55.91 MB / 0.6871 GB, free: 31.86 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003423/1.076, allocations: 4.009 MB / 0.691 GB, free: 27.8 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.00169/1.078, allocations: 312.9 kB / 0.6913 GB, free: 27.5 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002879/1.081, allocations: 3.221 MB / 0.6944 GB, free: 24.28 MB / 478.1 MB Notification: Performance of SimCode: time 6.91e-07/1.081, allocations: 0 / 0.6944 GB, free: 24.28 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5224/1.603, allocations: 142.2 MB / 0.8333 GB, free: 78.51 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 87.57/89.18, allocations: 4 kB / 0.8333 GB, free: 78.51 MB / 494.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonPullInStroke_fmu --startTime=0 --stopTime=0.05 --timeout=50 --tolerance=1e-07 Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonPullInStroke.fmu > Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe 2>&1)