Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonPullInStroke",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke,fileNamePrefix="Modelica_4_1_0-beta_om_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 trunk/package.mo): time 0.001449/0.001449, allocations: 117.6 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001496/0.001496, allocations: 200.7 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.489/1.489, allocations: 227.7 MB / 247.2 MB, free: 10.16 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.00217/0.00217, allocations: 55.91 kB / 358.5 MB, free: 13.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3162/0.3184, allocations: 50.55 MB / 409.1 MB, free: 1.375 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.0151/0.3335, allocations: 11.39 MB / 420.5 MB, free: 5.934 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0086/0.3422, allocations: 3.865 MB / 424.3 MB, free: 2.059 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002512/0.3448, allocations: 35.88 kB / 424.4 MB, free: 2.023 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008827/0.3536, allocations: 8.147 MB / 432.5 MB, free: 9.859 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007739/0.3614, allocations: 4.71 MB / 437.2 MB, free: 5.137 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00283/0.3643, allocations: 0.9244 MB / 438.1 MB, free: 4.211 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00824/0.3725, allocations: 5.405 MB / 443.5 MB, free: 14.79 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001818/0.3744, allocations: 0.8946 MB / 444.4 MB, free: 13.86 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007051/0.3814, allocations: 2.899 MB / 447.3 MB, free: 10.95 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008811/0.3903, allocations: 5.166 MB / 452.5 MB, free: 5.77 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001355/0.3917, allocations: 360 kB / 452.9 MB, free: 5.418 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001317/0.3931, allocations: 407.9 kB / 453.3 MB, free: 5.02 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0017/0.3948, allocations: 1.884 MB / 455.1 MB, free: 3.121 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003508/0.3983, allocations: 2.838 MB / 458 MB, free: 268 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008901/0.4072, allocations: 7.43 MB / 465.4 MB, free: 8.797 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.216e-05/0.4073, allocations: 4 kB / 465.4 MB, free: 8.793 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.4073, allocations: 0 / 465.4 MB, free: 8.793 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002213/0.4075, allocations: 0 / 465.4 MB, free: 8.793 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 532 * Number of variables: 532 Notification: Performance of Generate backend data structure: time 0.01506/0.4226, allocations: 8.039 MB / 473.4 MB, free: 0.6445 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.954e-05/0.4226, allocations: 8.031 kB / 473.5 MB, free: 0.6367 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004481/0.4231, allocations: 295.7 kB / 473.7 MB, free: 344 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001906/0.425, allocations: 0.9519 MB / 474.7 MB, free: 15.38 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005446/0.4305, allocations: 3.309 MB / 478 MB, free: 12 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001532/0.4306, allocations: 156.2 kB / 478.2 MB, free: 11.85 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003497/0.431, allocations: 211.9 kB / 478.4 MB, free: 11.64 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004198/0.4352, allocations: 2.085 MB / 480.4 MB, free: 9.488 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.272e-05/0.4353, allocations: 7.953 kB / 480.5 MB, free: 9.48 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001971/0.4355, allocations: 87.92 kB / 480.5 MB, free: 9.395 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.863e-05/0.4356, allocations: 56 kB / 480.6 MB, free: 9.34 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003759/0.4393, allocations: 1.844 MB / 482.4 MB, free: 7.488 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01998/0.4593, allocations: 8.99 MB / 491.4 MB, free: 14.3 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004861/0.4642, allocations: 2.313 MB / 493.7 MB, free: 11.92 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003174/0.4674, allocations: 1.381 MB / 495.1 MB, free: 10.53 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000208/0.4677, allocations: 46.27 kB / 495.2 MB, free: 10.48 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002521/0.4702, allocations: 1.128 MB / 496.3 MB, free: 9.316 MB / 414.1 MB Notification: Performance of pre-optimization done (n=246): time 7.114e-06/0.4702, allocations: 0 / 496.3 MB, free: 9.316 MB / 414.1 MB Notification: Performance of matching and sorting (n=371): time 0.07609/0.5463, allocations: 22.86 MB / 0.507 GB, free: 2.156 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.03296/0.5793, allocations: 13.72 MB / 0.5204 GB, free: 4.059 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02644/0.6058, allocations: 15.03 MB / 0.5351 GB, free: 5.023 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007271/0.6066, allocations: 85.7 kB / 0.5351 GB, free: 4.934 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00527/0.6119, allocations: 3.798 MB / 0.5389 GB, free: 1.129 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.2405/0.8524, allocations: 1.278 MB / 0.5401 GB, free: 120.6 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00149/0.8539, allocations: 0.5233 MB / 0.5406 GB, free: 120.6 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.103e-05/0.854, allocations: 305.2 kB / 0.5409 GB, free: 120.3 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002882/0.8569, allocations: 1.236 MB / 0.5421 GB, free: 120.3 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002572/0.8595, allocations: 1.604 MB / 0.5437 GB, free: 120.1 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004312/0.8638, allocations: 2.966 MB / 0.5466 GB, free: 119.8 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.446e-06/0.8638, allocations: 0.7812 kB / 0.5466 GB, free: 119.8 MB / 462.1 MB Notification: Performance of matching and sorting (n=435) (initialization): time 0.01109/0.8749, allocations: 5.246 MB / 0.5517 GB, free: 118.4 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.806e-05/0.875, allocations: 7.375 kB / 0.5517 GB, free: 118.4 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.311e-05/0.875, allocations: 10.88 kB / 0.5517 GB, free: 118.4 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005325/0.8804, allocations: 1.403 MB / 0.5531 GB, free: 118 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002805/0.8832, allocations: 0.5291 MB / 0.5536 GB, free: 118 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02339/0.9066, allocations: 24.07 MB / 0.5771 GB, free: 95.28 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003545/0.9102, allocations: 115 kB / 0.5772 GB, free: 95.18 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005581/0.9108, allocations: 116 kB / 0.5773 GB, free: 95.07 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 (313): * Single equations (assignments): 304 * 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,3,100.0%), (1,4,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.003472/0.9143, allocations: 2.2 MB / 0.5795 GB, free: 92.86 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001213/0.9155, allocations: 0.8761 MB / 0.5803 GB, free: 92.3 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0103/0.9258, allocations: 5.199 MB / 0.5854 GB, free: 87.06 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.118e-05/0.9259, allocations: 36 kB / 0.5854 GB, free: 87.02 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.209e-05/0.9259, allocations: 8 kB / 0.5854 GB, free: 87.02 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.866e-05/0.926, allocations: 19.92 kB / 0.5855 GB, free: 87 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01921/0.9452, allocations: 11.09 MB / 0.5963 GB, free: 75.84 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.966e-05/0.9453, allocations: 4 kB / 0.5963 GB, free: 75.84 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00219/0.9475, allocations: 450.8 kB / 0.5967 GB, free: 75.4 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004939/0.9524, allocations: 1.338 MB / 0.598 GB, free: 74.04 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004762/0.9529, allocations: 75.91 kB / 0.5981 GB, free: 73.96 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02003/0.973, allocations: 21.94 MB / 0.6195 GB, free: 50.78 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.02183/0.9948, allocations: 12.03 MB / 0.6313 GB, free: 38.47 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01194/1.007, allocations: 6.952 MB / 0.6381 GB, free: 31.42 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002008/1.009, allocations: 0.8136 MB / 0.6389 GB, free: 30.59 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007626/1.01, allocations: 68 kB / 0.6389 GB, free: 30.52 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002029/1.012, allocations: 99.95 kB / 0.639 GB, free: 30.42 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007299/1.012, allocations: 263.5 kB / 0.6393 GB, free: 30.16 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001756/1.013, allocations: 99.91 kB / 0.6394 GB, free: 30.07 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.01242/1.025, allocations: 11.23 MB / 0.6503 GB, free: 18.86 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.1e-07/1.025, allocations: 4 kB / 0.6503 GB, free: 18.86 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.005592/1.031, allocations: 1.096 MB / 0.6514 GB, free: 17.76 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 (257): * Single equations (assignments): 246 * 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.01367/1.044, allocations: 7.919 MB / 0.6591 GB, free: 9.906 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006776/1.051, allocations: 4.77 MB / 0.6638 GB, free: 5.012 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.661e-06/1.051, allocations: 0 / 0.6638 GB, free: 5.012 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004083/1.055, allocations: 3.281 MB / 0.667 GB, free: 1.621 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003898/1.059, allocations: 0.5697 MB / 0.6676 GB, free: 1.051 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1177/1.177, allocations: 56.4 MB / 0.7226 GB, free: 8.242 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005412/1.182, allocations: 4.046 MB / 0.7266 GB, free: 4.145 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.001966/1.184, allocations: 313.5 kB / 0.7269 GB, free: 3.832 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004478/1.189, allocations: 3.28 MB / 0.7301 GB, free: 0.5508 MB / 0.5137 GB Notification: Performance of SimCode: time 8.92e-07/1.189, allocations: 4 kB / 0.7301 GB, free: 0.5469 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5672/1.756, allocations: 144.4 MB / 0.8712 GB, free: 76.57 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 91.9/93.66, allocations: 20.45 kB / 0.8712 GB, free: 76.57 MB / 0.5294 GB (rm -f Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke_res.csv --start-time 0 --stop-time 0.05 --timeout 50 --relative-tolerance 1e-07 --interface-type ModelExchange --solver CVode --output-interval 2e-05 Modelica_4_1_0-beta_om_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonPullInStroke.fmu > Modelica_4.1.0-beta.om_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe 2>&1)