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.001335/0.001335, allocations: 110.9 kB / 17.06 MB, free: 5.984 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.001454/0.001454, allocations: 196 kB / 18 MB, free: 5.074 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.41/1.41, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001596/0.001596, allocations: 51.92 kB / 350.8 MB, free: 3.727 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2794/0.281, allocations: 49.44 MB / 400.2 MB, free: 8.391 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.01312/0.2941, allocations: 11.09 MB / 411.3 MB, free: 13.68 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007719/0.3019, allocations: 3.654 MB / 415 MB, free: 10.01 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00197/0.3039, allocations: 39.88 kB / 415 MB, free: 9.969 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007853/0.3118, allocations: 8.128 MB / 423.1 MB, free: 1.824 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006377/0.3183, allocations: 4.628 MB / 427.8 MB, free: 13.18 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002351/0.3206, allocations: 0.9516 MB / 428.7 MB, free: 12.23 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006793/0.3274, allocations: 5.314 MB / 434 MB, free: 6.902 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001515/0.329, allocations: 0.8826 MB / 434.9 MB, free: 5.984 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004536/0.3335, allocations: 2.856 MB / 437.8 MB, free: 3.121 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00656/0.3401, allocations: 5.116 MB / 442.9 MB, free: 13.99 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009989/0.3412, allocations: 352 kB / 443.2 MB, free: 13.64 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001099/0.3423, allocations: 396 kB / 443.6 MB, free: 13.26 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001539/0.3438, allocations: 1.869 MB / 445.5 MB, free: 11.38 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002872/0.3467, allocations: 2.788 MB / 448.3 MB, free: 8.566 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007987/0.3547, allocations: 7.29 MB / 455.6 MB, free: 1.246 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.123e-06/0.3548, allocations: 0 / 455.6 MB, free: 1.246 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.983e-06/0.3548, allocations: 0 / 455.6 MB, free: 1.246 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002149/0.355, allocations: 3.938 kB / 455.6 MB, free: 1.242 MB / 366.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.01317/0.3682, allocations: 7.942 MB / 463.5 MB, free: 9.188 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.776e-05/0.3682, allocations: 12.03 kB / 463.5 MB, free: 9.176 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003826/0.3686, allocations: 291.6 kB / 463.8 MB, free: 8.879 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001095/0.3697, allocations: 0.8934 MB / 464.7 MB, free: 7.98 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004381/0.3741, allocations: 3.25 MB / 468 MB, free: 4.664 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001472/0.3743, allocations: 156.5 kB / 468.1 MB, free: 4.508 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003528/0.3746, allocations: 207.9 kB / 468.3 MB, free: 4.305 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00397/0.3786, allocations: 2.112 MB / 470.4 MB, free: 2.125 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.549e-05/0.3787, allocations: 4 kB / 470.4 MB, free: 2.121 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001846/0.3789, allocations: 91.88 kB / 470.5 MB, free: 2.031 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.142e-05/0.3789, allocations: 48 kB / 470.6 MB, free: 1.984 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003977/0.3829, allocations: 1.895 MB / 472.5 MB, free: 88 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01603/0.399, allocations: 8.897 MB / 481.4 MB, free: 6.984 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004306/0.4033, allocations: 2.337 MB / 483.7 MB, free: 4.582 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002968/0.4063, allocations: 1.408 MB / 485.1 MB, free: 3.16 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001473/0.4065, allocations: 50.27 kB / 485.2 MB, free: 3.113 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002211/0.4087, allocations: 1.156 MB / 486.3 MB, free: 1.918 MB / 398.1 MB Notification: Performance of pre-optimization done (n=242): time 4.298e-06/0.4087, allocations: 0 / 486.3 MB, free: 1.918 MB / 398.1 MB Notification: Performance of matching and sorting (n=367): time 0.06808/0.4768, allocations: 23.23 MB / 0.4976 GB, free: 10.39 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.03049/0.5073, allocations: 13.61 MB / 0.5109 GB, free: 12.39 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01741/0.5248, allocations: 14.89 MB / 0.5254 GB, free: 13.57 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005999/0.5254, allocations: 85.7 kB / 0.5255 GB, free: 13.48 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00383/0.5293, allocations: 3.747 MB / 0.5292 GB, free: 9.723 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001507/0.5308, allocations: 1.278 MB / 0.5304 GB, free: 8.434 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001026/0.5318, allocations: 0.5197 MB / 0.5309 GB, free: 7.906 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001171/0.532, allocations: 301.1 kB / 0.5312 GB, free: 7.609 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002639/0.5346, allocations: 1.252 MB / 0.5324 GB, free: 6.355 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002891/0.5375, allocations: 1.622 MB / 0.534 GB, free: 4.652 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005597/0.5431, allocations: 2.996 MB / 0.5369 GB, free: 1.586 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.015e-06/0.5432, allocations: 0 / 0.5369 GB, free: 1.586 MB / 462.1 MB Notification: Performance of matching and sorting (n=431) (initialization): time 0.2362/0.7794, allocations: 5.25 MB / 0.5421 GB, free: 126.5 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.112e-05/0.7795, allocations: 7.875 kB / 0.5421 GB, free: 126.5 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.141e-05/0.7795, allocations: 3.906 kB / 0.5421 GB, free: 126.5 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005122/0.7846, allocations: 1.385 MB / 0.5434 GB, free: 126.4 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002792/0.7874, allocations: 0.5463 MB / 0.544 GB, free: 126.4 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02387/0.8113, allocations: 23.97 MB / 0.5674 GB, free: 109.8 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00341/0.8148, allocations: 131.7 kB / 0.5675 GB, free: 109.6 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005259/0.8153, allocations: 116.9 kB / 0.5676 GB, free: 109.5 MB / 462.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.003607/0.819, allocations: 2.179 MB / 0.5697 GB, free: 107.6 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001035/0.82, allocations: 0.8672 MB / 0.5706 GB, free: 107.1 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01057/0.8306, allocations: 5.22 MB / 0.5757 GB, free: 101.8 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.937e-05/0.8306, allocations: 36 kB / 0.5757 GB, free: 101.8 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.931e-05/0.8307, allocations: 4 kB / 0.5757 GB, free: 101.8 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.88e-05/0.8307, allocations: 19.94 kB / 0.5757 GB, free: 101.8 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01863/0.8494, allocations: 11.05 MB / 0.5865 GB, free: 90.72 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.942e-05/0.8494, allocations: 3.984 kB / 0.5865 GB, free: 90.71 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002259/0.8517, allocations: 463.3 kB / 0.587 GB, free: 90.26 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004997/0.8567, allocations: 1.338 MB / 0.5883 GB, free: 88.9 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004069/0.8571, allocations: 75.91 kB / 0.5884 GB, free: 88.82 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0198/0.8769, allocations: 21.88 MB / 0.6097 GB, free: 65.71 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.02164/0.8986, allocations: 11.94 MB / 0.6214 GB, free: 53.5 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01268/0.9113, allocations: 6.998 MB / 0.6282 GB, free: 46.4 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001395/0.9128, allocations: 0.7941 MB / 0.629 GB, free: 45.59 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009178/0.9137, allocations: 68 kB / 0.629 GB, free: 45.52 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002275/0.916, allocations: 115.9 kB / 0.6292 GB, free: 45.41 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006926/0.9167, allocations: 267.3 kB / 0.6294 GB, free: 45.14 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001823/0.9169, allocations: 95.97 kB / 0.6295 GB, free: 45.05 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.009553/0.9265, allocations: 11.12 MB / 0.6404 GB, free: 33.98 MB / 462.1 MB Notification: Performance of sort global known variables: time 4.31e-07/0.9265, allocations: 0 / 0.6404 GB, free: 33.98 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004156/0.9306, allocations: 1.08 MB / 0.6414 GB, free: 32.9 MB / 462.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.01499/0.9457, allocations: 7.981 MB / 0.6492 GB, free: 25 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.009079/0.9548, allocations: 4.82 MB / 0.6539 GB, free: 20.06 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.304e-06/0.9548, allocations: 0 / 0.6539 GB, free: 20.06 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004376/0.9592, allocations: 3.304 MB / 0.6571 GB, free: 16.64 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003282/0.9625, allocations: 0.5567 MB / 0.6577 GB, free: 16.09 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1019/1.064, allocations: 55.92 MB / 0.7123 GB, free: 7.75 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005429/1.07, allocations: 4.01 MB / 0.7162 GB, free: 3.691 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001928/1.072, allocations: 308.9 kB / 0.7165 GB, free: 3.387 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004382/1.076, allocations: 3.217 MB / 0.7197 GB, free: 172 kB / 0.4981 GB Notification: Performance of SimCode: time 8.52e-07/1.076, allocations: 0 / 0.7197 GB, free: 172 kB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5225/1.599, allocations: 142.2 MB / 0.8585 GB, free: 69.16 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 86.94/88.54, allocations: 3.859 kB / 0.8585 GB, free: 69.16 MB / 0.5137 GB (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)