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.001499/0.001499, allocations: 120 kB / 18.5 MB, free: 4.52 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.001799/0.001799, allocations: 213.6 kB / 21.46 MB, free: 1.566 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.543/1.543, allocations: 230.5 MB / 254.8 MB, free: 15.09 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.00199/0.00199, allocations: 71.83 kB / 373.7 MB, free: 10.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1139/0.1159, allocations: 53.33 MB / 427 MB, free: 4.793 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.2408/0.3567, allocations: 11.44 MB / 438.4 MB, free: 4.879 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008607/0.3653, allocations: 3.87 MB / 442.3 MB, free: 3.02 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003556/0.3689, allocations: 47.28 kB / 442.4 MB, free: 3.004 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01252/0.3814, allocations: 8.149 MB / 450.5 MB, free: 1.902 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008309/0.3897, allocations: 4.737 MB / 455.2 MB, free: 15.46 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003387/0.3931, allocations: 0.9199 MB / 456.2 MB, free: 14.63 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01133/0.4044, allocations: 5.407 MB / 461.6 MB, free: 11.75 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002243/0.4067, allocations: 0.6005 MB / 462.2 MB, free: 11.33 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008543/0.4152, allocations: 2.935 MB / 465.1 MB, free: 9.832 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01073/0.4259, allocations: 5.832 MB / 470.9 MB, free: 4.961 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001848/0.4278, allocations: 356 kB / 471.3 MB, free: 4.613 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003451/0.4312, allocations: 408 kB / 471.7 MB, free: 4.215 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003106/0.4343, allocations: 1.884 MB / 473.6 MB, free: 2.316 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005928/0.4403, allocations: 2.846 MB / 476.4 MB, free: 15.45 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01296/0.4532, allocations: 7.43 MB / 483.8 MB, free: 7.988 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.488e-06/0.4532, allocations: 0 / 483.8 MB, free: 7.988 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.256e-06/0.4532, allocations: 0 / 483.8 MB, free: 7.988 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003589/0.4536, allocations: 0 / 483.8 MB, free: 7.988 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.01938/0.473, allocations: 8.039 MB / 491.9 MB, free: 15.84 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.678e-05/0.473, allocations: 12.03 kB / 491.9 MB, free: 15.82 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001174/0.4742, allocations: 288.3 kB / 492.2 MB, free: 15.53 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002741/0.477, allocations: 0.9557 MB / 493.1 MB, free: 14.57 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007877/0.4848, allocations: 3.305 MB / 496.4 MB, free: 11.2 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000253/0.4851, allocations: 156.2 kB / 496.6 MB, free: 11.04 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008179/0.4859, allocations: 208 kB / 496.8 MB, free: 10.84 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006693/0.4926, allocations: 2.098 MB / 498.9 MB, free: 8.676 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.99e-05/0.4927, allocations: 7.953 kB / 498.9 MB, free: 8.668 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004144/0.4931, allocations: 80 kB / 499 MB, free: 8.59 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.851e-05/0.4932, allocations: 52 kB / 499 MB, free: 8.539 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004956/0.4981, allocations: 1.852 MB / 0.4891 GB, free: 6.68 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0229/0.521, allocations: 8.978 MB / 0.4979 GB, free: 13.51 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005332/0.5264, allocations: 2.173 MB / 0.5 GB, free: 11.29 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003406/0.5298, allocations: 1.275 MB / 0.5013 GB, free: 10 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002672/0.53, allocations: 46.27 kB / 0.5013 GB, free: 9.957 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002897/0.5329, allocations: 1.132 MB / 0.5024 GB, free: 8.785 MB / 414.1 MB Notification: Performance of pre-optimization done (n=246): time 7.875e-06/0.5329, allocations: 0 / 0.5024 GB, free: 8.785 MB / 414.1 MB Notification: Performance of matching and sorting (n=371): time 0.08332/0.6163, allocations: 22.8 MB / 0.5247 GB, free: 1.691 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.03695/0.6532, allocations: 13.67 MB / 0.538 GB, free: 3.648 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0308/0.684, allocations: 15.04 MB / 0.5527 GB, free: 4.609 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009179/0.6849, allocations: 85.7 kB / 0.5528 GB, free: 4.52 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.006948/0.6919, allocations: 3.794 MB / 0.5565 GB, free: 0.7188 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002105/0.694, allocations: 1.286 MB / 0.5578 GB, free: 15.42 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002251/0.6962, allocations: 0.5197 MB / 0.5583 GB, free: 14.89 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001511/0.6964, allocations: 301.1 kB / 0.5586 GB, free: 14.59 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003279/0.6997, allocations: 1.229 MB / 0.5598 GB, free: 13.36 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003612/0.7033, allocations: 1.607 MB / 0.5613 GB, free: 11.68 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006916/0.7102, allocations: 2.968 MB / 0.5642 GB, free: 8.645 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.075e-05/0.7102, allocations: 4 kB / 0.5642 GB, free: 8.641 MB / 478.1 MB Notification: Performance of matching and sorting (n=435) (initialization): time 0.01544/0.7257, allocations: 5.189 MB / 0.5693 GB, free: 3.414 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.597e-05/0.7257, allocations: 8 kB / 0.5693 GB, free: 3.406 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.941e-05/0.7257, allocations: 15.94 kB / 0.5693 GB, free: 3.391 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006526/0.7322, allocations: 1.405 MB / 0.5707 GB, free: 1.953 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003259/0.7355, allocations: 0.5305 MB / 0.5712 GB, free: 1.422 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03652/0.772, allocations: 24.06 MB / 0.5947 GB, free: 8.125 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003789/0.7758, allocations: 116 kB / 0.5948 GB, free: 8.012 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007948/0.7766, allocations: 119.9 kB / 0.5949 GB, free: 7.895 MB / 0.4981 GB 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.004859/0.7815, allocations: 2.191 MB / 0.5971 GB, free: 5.691 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001908/0.7834, allocations: 0.8809 MB / 0.5979 GB, free: 4.805 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01516/0.7985, allocations: 5.15 MB / 0.603 GB, free: 15.61 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.331e-05/0.7986, allocations: 40.14 kB / 0.603 GB, free: 15.57 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.482e-05/0.7986, allocations: 4 kB / 0.603 GB, free: 15.57 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.943e-05/0.7987, allocations: 27.91 kB / 0.603 GB, free: 15.54 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02864/0.8273, allocations: 11.04 MB / 0.6138 GB, free: 4.348 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.29e-05/0.8274, allocations: 3.938 kB / 0.6138 GB, free: 4.344 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002789/0.8302, allocations: 447.4 kB / 0.6142 GB, free: 3.906 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006317/0.8365, allocations: 1.346 MB / 0.6156 GB, free: 2.531 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006808/0.8372, allocations: 75.97 kB / 0.6156 GB, free: 2.457 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.278/1.115, allocations: 21.93 MB / 0.6371 GB, free: 146.4 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.02978/1.145, allocations: 11.99 MB / 0.6488 GB, free: 139.6 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0201/1.165, allocations: 6.894 MB / 0.6555 GB, free: 136.7 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002475/1.168, allocations: 0.8074 MB / 0.6563 GB, free: 136.4 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001795/1.169, allocations: 77.7 kB / 0.6564 GB, free: 136.4 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003579/1.173, allocations: 94.14 kB / 0.6564 GB, free: 136.3 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001401/1.174, allocations: 272.3 kB / 0.6567 GB, free: 136.3 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005532/1.175, allocations: 91.03 kB / 0.6568 GB, free: 136.3 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.02081/1.196, allocations: 11.23 MB / 0.6678 GB, free: 132.5 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2e-07/1.196, allocations: 0 / 0.6678 GB, free: 132.5 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.005573/1.201, allocations: 1.098 MB / 0.6688 GB, free: 132.3 MB / 0.5137 GB 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.01643/1.218, allocations: 7.881 MB / 0.6765 GB, free: 126.8 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.008257/1.226, allocations: 4.591 MB / 0.681 GB, free: 122.4 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 7.474e-06/1.226, allocations: 0 / 0.681 GB, free: 122.4 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.005259/1.231, allocations: 3.121 MB / 0.6841 GB, free: 119.4 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005874/1.237, allocations: 0.571 MB / 0.6846 GB, free: 118.9 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1222/1.359, allocations: 56.31 MB / 0.7396 GB, free: 63.15 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007141/1.366, allocations: 4.046 MB / 0.7435 GB, free: 59.06 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.002755/1.369, allocations: 317.5 kB / 0.7438 GB, free: 58.74 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004598/1.374, allocations: 3.276 MB / 0.747 GB, free: 55.46 MB / 0.5137 GB Notification: Performance of SimCode: time 1.703e-06/1.374, allocations: 0 / 0.747 GB, free: 55.46 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5266/1.9, allocations: 145.2 MB / 0.8889 GB, free: 121.9 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 90.88/92.78, allocations: 2.234 kB / 0.8889 GB, free: 121.9 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.71962398476899] 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.03587667504326 93.047578309 92.59174386 Calling exit ...