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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001569/0.001569, allocations: 106.5 kB / 21.23 MB, free: 0.6562 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002147/0.002147, allocations: 213.2 kB / 24.54 MB, free: 4.016 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.525/1.525, allocations: 230.6 MB / 258.3 MB, free: 8.059 MB / 206.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "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.002809/0.002809, allocations: 64.77 kB / 378.6 MB, free: 3.168 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3317/0.3345, allocations: 53.36 MB / 431.9 MB, free: 6.891 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.01438/0.3489, allocations: 11.48 MB / 443.4 MB, free: 11.36 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009393/0.3583, allocations: 3.893 MB / 447.3 MB, free: 7.461 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003108/0.3614, allocations: 51.75 kB / 447.3 MB, free: 7.41 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009133/0.3705, allocations: 8.144 MB / 455.5 MB, free: 15.25 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007837/0.3784, allocations: 4.734 MB / 460.2 MB, free: 10.5 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003087/0.3815, allocations: 0.9322 MB / 461.1 MB, free: 9.57 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.00923/0.3907, allocations: 5.397 MB / 466.5 MB, free: 4.156 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001648/0.3923, allocations: 0.6097 MB / 467.2 MB, free: 3.52 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005748/0.3981, allocations: 2.934 MB / 470.1 MB, free: 0.5781 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008503/0.4066, allocations: 5.836 MB / 475.9 MB, free: 10.72 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001125/0.4077, allocations: 356 kB / 476.3 MB, free: 10.37 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00114/0.4088, allocations: 403.9 kB / 476.7 MB, free: 9.98 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001675/0.4105, allocations: 1.888 MB / 478.6 MB, free: 8.078 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003342/0.4139, allocations: 2.842 MB / 481.4 MB, free: 5.215 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009141/0.423, allocations: 7.427 MB / 488.8 MB, free: 13.75 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.154e-06/0.423, allocations: 0 / 488.8 MB, free: 13.75 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.893e-06/0.423, allocations: 4 kB / 488.8 MB, free: 13.75 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002335/0.4233, allocations: 0 / 488.8 MB, free: 13.75 MB / 398.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.01547/0.4387, allocations: 7.96 MB / 496.8 MB, free: 5.699 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.804e-05/0.4388, allocations: 12.03 kB / 496.8 MB, free: 5.688 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004564/0.4392, allocations: 291.7 kB / 497.1 MB, free: 5.391 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002043/0.4413, allocations: 0.9519 MB / 498 MB, free: 4.434 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006135/0.4474, allocations: 3.229 MB / 0.4895 GB, free: 1.152 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001663/0.4476, allocations: 160.1 kB / 0.4897 GB, free: 0.9922 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004175/0.448, allocations: 211.9 kB / 0.4899 GB, free: 0.7852 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004534/0.4525, allocations: 2.085 MB / 0.4919 GB, free: 14.63 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.846e-05/0.4526, allocations: 19.94 kB / 0.4919 GB, free: 14.61 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001877/0.4528, allocations: 80 kB / 0.492 GB, free: 14.53 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.848e-05/0.4528, allocations: 52 kB / 0.492 GB, free: 14.48 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003963/0.4568, allocations: 1.844 MB / 0.4938 GB, free: 12.63 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01854/0.4753, allocations: 8.88 MB / 0.5025 GB, free: 3.551 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004091/0.4794, allocations: 2.018 MB / 0.5045 GB, free: 1.512 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002793/0.4822, allocations: 1.273 MB / 0.5057 GB, free: 236 kB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001574/0.4824, allocations: 46.27 kB / 0.5058 GB, free: 188 kB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002193/0.4846, allocations: 1.125 MB / 0.5069 GB, free: 15.02 MB / 430.1 MB Notification: Performance of pre-optimization done (n=246): time 4.488e-06/0.4846, allocations: 8 kB / 0.5069 GB, free: 15.01 MB / 430.1 MB Notification: Performance of matching and sorting (n=371): time 0.06818/0.5527, allocations: 22.2 MB / 0.5286 GB, free: 8.66 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.2935/0.8463, allocations: 13.46 MB / 0.5417 GB, free: 93.96 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01944/0.8657, allocations: 15.04 MB / 0.5564 GB, free: 88.14 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007068/0.8664, allocations: 82.52 kB / 0.5565 GB, free: 88.05 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002811/0.8692, allocations: 3.798 MB / 0.5602 GB, free: 84.84 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001367/0.8706, allocations: 1.289 MB / 0.5614 GB, free: 84.53 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009026/0.8715, allocations: 0.5193 MB / 0.562 GB, free: 84.07 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 6.26e-05/0.8715, allocations: 301.9 kB / 0.5622 GB, free: 83.77 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002089/0.8736, allocations: 1.231 MB / 0.5634 GB, free: 82.65 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002195/0.8758, allocations: 1.599 MB / 0.565 GB, free: 81.12 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004167/0.88, allocations: 2.966 MB / 0.5679 GB, free: 78.2 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.398e-06/0.88, allocations: 7.75 kB / 0.5679 GB, free: 78.19 MB / 446.1 MB Notification: Performance of matching and sorting (n=435) (initialization): time 0.00976/0.8898, allocations: 5.2 MB / 0.573 GB, free: 73.08 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.746e-05/0.8898, allocations: 8 kB / 0.573 GB, free: 73.07 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.742e-05/0.8898, allocations: 4 kB / 0.573 GB, free: 73.07 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005353/0.8952, allocations: 1.413 MB / 0.5744 GB, free: 71.68 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0028/0.898, allocations: 0.5227 MB / 0.5749 GB, free: 71.16 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02357/0.9215, allocations: 23.14 MB / 0.5975 GB, free: 47.14 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003853/0.9254, allocations: 110.5 kB / 0.5976 GB, free: 47.03 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004597/0.9258, allocations: 119.9 kB / 0.5977 GB, free: 46.91 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 (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.003219/0.9291, allocations: 2.194 MB / 0.5998 GB, free: 44.71 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001018/0.9301, allocations: 0.873 MB / 0.6007 GB, free: 43.83 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01034/0.9404, allocations: 5.228 MB / 0.6058 GB, free: 38.56 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.313e-05/0.9404, allocations: 41.97 kB / 0.6058 GB, free: 38.52 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.46e-05/0.9405, allocations: 4 kB / 0.6058 GB, free: 38.52 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.244e-05/0.9405, allocations: 19.92 kB / 0.6059 GB, free: 38.5 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01924/0.9598, allocations: 10.94 MB / 0.6165 GB, free: 27.52 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.592e-05/0.9598, allocations: 10.19 kB / 0.6166 GB, free: 27.51 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002391/0.9622, allocations: 447.4 kB / 0.617 GB, free: 27.07 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005283/0.9675, allocations: 1.35 MB / 0.6183 GB, free: 25.69 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005126/0.968, allocations: 75.97 kB / 0.6184 GB, free: 25.62 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02289/0.9909, allocations: 21.01 MB / 0.6389 GB, free: 3.59 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.02805/1.019, allocations: 11.77 MB / 0.6504 GB, free: 7.582 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01756/1.036, allocations: 6.894 MB / 0.6571 GB, free: 0.582 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001792/1.038, allocations: 0.7334 MB / 0.6578 GB, free: 15.84 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001251/1.04, allocations: 75.67 kB / 0.6579 GB, free: 15.77 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002924/1.042, allocations: 95.95 kB / 0.658 GB, free: 15.68 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009607/1.043, allocations: 287 kB / 0.6583 GB, free: 15.4 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003747/1.044, allocations: 95.97 kB / 0.6584 GB, free: 15.3 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.01826/1.062, allocations: 11.22 MB / 0.6693 GB, free: 4.105 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.81e-07/1.062, allocations: 0 / 0.6693 GB, free: 4.105 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.005822/1.068, allocations: 1.104 MB / 0.6704 GB, free: 3.004 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.nextTimeEvent,comparisonWithFEA.nextTimeEventScaled) * 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.01941/1.087, allocations: 7.88 MB / 0.6781 GB, free: 11.2 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01026/1.098, allocations: 4.591 MB / 0.6826 GB, free: 6.488 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 9.478e-06/1.098, allocations: 0 / 0.6826 GB, free: 6.488 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00626/1.104, allocations: 3.125 MB / 0.6856 GB, free: 3.258 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00498/1.109, allocations: 0.5692 MB / 0.6862 GB, free: 2.688 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3971/1.506, allocations: 56.3 MB / 0.7412 GB, free: 169.1 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004202/1.51, allocations: 4.05 MB / 0.7451 GB, free: 168.2 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.001847/1.512, allocations: 318.7 kB / 0.7454 GB, free: 168.2 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003079/1.515, allocations: 3.28 MB / 0.7486 GB, free: 168.2 MB / 0.5294 GB Notification: Performance of SimCode: time 1.784e-06/1.515, allocations: 0 / 0.7486 GB, free: 168.2 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2703/1.785, allocations: 148.1 MB / 0.8932 GB, free: 34.57 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 91.34/93.12, allocations: 8 kB / 0.8932 GB, free: 34.57 MB / 0.5294 GB " [Timeout remaining time 567] (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 9.01713e-06 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) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 95.97082934575155] Failed to read output from testmodel.py, exit status != 0: ['time', 'advancedSolenoid.armature.stopper_xMax.v_rel', 'advancedSolenoid.c_par1.v', 'advancedSolenoid.c_par2.v', 'advancedSolenoid.coil1.Phi', 'advancedSolenoid.coil2.Phi', 'advancedSolenoid.x', 'simpleSolenoid.armature.stopper_xMax.v_rel', 'simpleSolenoid.coil.Phi', 'simpleSolenoid.x'] 93.39880075585097 93.417252576 92.989869922 Calling exit ...