Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001799/0.001799, allocations: 121 kB / 18.5 MB, free: 4.562 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00218/0.00218, allocations: 213.5 kB / 21.45 MB, free: 1.617 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.407/1.407, allocations: 230.6 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+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonPullInStroke",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonPullInStroke",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00151/0.00151, allocations: 51.92 kB / 373.7 MB, free: 10.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1069/0.1084, allocations: 53.32 MB / 427 MB, free: 4.785 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.2107/0.3191, allocations: 11.44 MB / 438.4 MB, free: 4.84 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006986/0.326, allocations: 3.869 MB / 442.3 MB, free: 2.984 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002487/0.3285, allocations: 46.97 kB / 442.4 MB, free: 2.969 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01008/0.3386, allocations: 8.148 MB / 450.5 MB, free: 1.871 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008788/0.3474, allocations: 4.735 MB / 455.2 MB, free: 15.43 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0032/0.3506, allocations: 0.9237 MB / 456.2 MB, free: 14.59 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01163/0.3622, allocations: 5.409 MB / 461.6 MB, free: 11.72 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001647/0.3639, allocations: 0.5975 MB / 462.2 MB, free: 11.3 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006263/0.3701, allocations: 2.941 MB / 465.1 MB, free: 9.793 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008381/0.3785, allocations: 5.831 MB / 471 MB, free: 4.914 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001348/0.3799, allocations: 364 kB / 471.3 MB, free: 4.559 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001736/0.3816, allocations: 400 kB / 471.7 MB, free: 4.168 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001814/0.3834, allocations: 1.888 MB / 473.6 MB, free: 2.266 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003755/0.3872, allocations: 2.842 MB / 476.4 MB, free: 15.4 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00956/0.3967, allocations: 7.423 MB / 483.8 MB, free: 7.945 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.275e-06/0.3967, allocations: 0 / 483.8 MB, free: 7.945 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.645e-06/0.3967, allocations: 11.88 kB / 483.9 MB, free: 7.934 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002991/0.397, allocations: 0 / 483.9 MB, free: 7.934 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.01501/0.4121, allocations: 8.029 MB / 491.9 MB, free: 15.79 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.181e-05/0.4121, allocations: 8.031 kB / 491.9 MB, free: 15.78 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 7.207e-05/0.4122, allocations: 60.3 kB / 492 MB, free: 15.72 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000483/0.4127, allocations: 300.2 kB / 492.3 MB, free: 15.41 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00186/0.4145, allocations: 0.9541 MB / 493.2 MB, free: 14.46 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004641/0.4192, allocations: 3.305 MB / 496.5 MB, free: 11.09 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001398/0.4193, allocations: 156.2 kB / 496.7 MB, free: 10.93 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003536/0.4197, allocations: 211.9 kB / 496.9 MB, free: 10.72 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004115/0.4238, allocations: 2.097 MB / 499 MB, free: 8.559 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.33e-05/0.4238, allocations: 3.984 kB / 499 MB, free: 8.555 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001987/0.424, allocations: 89.56 kB / 499.1 MB, free: 8.469 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.143e-05/0.4241, allocations: 48 kB / 499.1 MB, free: 8.422 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003791/0.4279, allocations: 1.848 MB / 0.4892 GB, free: 6.566 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01634/0.4442, allocations: 8.974 MB / 0.498 GB, free: 13.41 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004087/0.4483, allocations: 2.18 MB / 0.5001 GB, free: 11.18 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002757/0.451, allocations: 1.279 MB / 0.5014 GB, free: 9.887 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001451/0.4512, allocations: 42.28 kB / 0.5014 GB, free: 9.848 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002064/0.4532, allocations: 1.125 MB / 0.5025 GB, free: 8.684 MB / 414.1 MB Notification: Performance of pre-optimization done (n=246): time 4.349e-06/0.4533, allocations: 0 / 0.5025 GB, free: 8.684 MB / 414.1 MB Notification: Performance of matching and sorting (n=371): time 0.06625/0.5195, allocations: 22.79 MB / 0.5247 GB, free: 1.594 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.03084/0.5503, allocations: 13.67 MB / 0.5381 GB, free: 3.551 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01821/0.5686, allocations: 15.04 MB / 0.5528 GB, free: 4.516 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005681/0.5691, allocations: 85.7 kB / 0.5529 GB, free: 4.426 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003852/0.573, allocations: 3.798 MB / 0.5566 GB, free: 0.6211 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001579/0.5746, allocations: 1.29 MB / 0.5578 GB, free: 15.32 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001053/0.5756, allocations: 0.5197 MB / 0.5583 GB, free: 14.79 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001149/0.5757, allocations: 309.2 kB / 0.5586 GB, free: 14.48 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002445/0.5782, allocations: 1.229 MB / 0.5598 GB, free: 13.25 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002832/0.581, allocations: 1.599 MB / 0.5614 GB, free: 11.57 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005361/0.5864, allocations: 2.971 MB / 0.5643 GB, free: 8.543 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.051e-05/0.5864, allocations: 4 kB / 0.5643 GB, free: 8.539 MB / 478.1 MB Notification: Performance of matching and sorting (n=435) (initialization): time 0.01214/0.5985, allocations: 5.196 MB / 0.5694 GB, free: 3.305 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.948e-05/0.5986, allocations: 7.938 kB / 0.5694 GB, free: 3.297 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.207e-05/0.5986, allocations: 8 kB / 0.5694 GB, free: 3.289 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005736/0.6043, allocations: 1.397 MB / 0.5708 GB, free: 1.859 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002799/0.6071, allocations: 0.5305 MB / 0.5713 GB, free: 1.328 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0312/0.6383, allocations: 24.07 MB / 0.5948 GB, free: 8.02 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003298/0.6416, allocations: 119.9 kB / 0.5949 GB, free: 7.902 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004112/0.642, allocations: 116 kB / 0.595 GB, free: 7.789 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.003333/0.6454, allocations: 2.199 MB / 0.5971 GB, free: 5.578 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001188/0.6465, allocations: 0.873 MB / 0.598 GB, free: 4.699 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01146/0.658, allocations: 5.154 MB / 0.603 GB, free: 15.5 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.597e-05/0.658, allocations: 36 kB / 0.6031 GB, free: 15.46 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.274e-05/0.6581, allocations: 15.92 kB / 0.6031 GB, free: 15.45 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-05/0.6581, allocations: 19.88 kB / 0.6031 GB, free: 15.43 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02189/0.68, allocations: 11.03 MB / 0.6139 GB, free: 4.242 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.052e-05/0.68, allocations: 0 / 0.6139 GB, free: 4.242 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002498/0.6825, allocations: 459.5 kB / 0.6143 GB, free: 3.793 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00558/0.6881, allocations: 1.342 MB / 0.6156 GB, free: 2.422 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005104/0.6886, allocations: 71.98 kB / 0.6157 GB, free: 2.352 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2244/0.913, allocations: 21.94 MB / 0.6371 GB, free: 146.4 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.02466/0.9377, allocations: 11.98 MB / 0.6488 GB, free: 139.5 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0142/0.9519, allocations: 6.904 MB / 0.6556 GB, free: 136.7 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00137/0.9532, allocations: 0.8067 MB / 0.6563 GB, free: 136.4 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001229/0.9545, allocations: 77.28 kB / 0.6564 GB, free: 136.3 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002481/0.957, allocations: 93.64 kB / 0.6565 GB, free: 136.3 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001022/0.958, allocations: 268.2 kB / 0.6568 GB, free: 136.2 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002803/0.9583, allocations: 95.3 kB / 0.6569 GB, free: 136.2 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0143/0.9726, allocations: 11.22 MB / 0.6678 GB, free: 132.5 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.41e-07/0.9726, allocations: 0 / 0.6678 GB, free: 132.5 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.004571/0.9771, allocations: 1.1 MB / 0.6689 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.01391/0.991, allocations: 7.879 MB / 0.6766 GB, free: 126.8 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.007016/0.9981, allocations: 4.585 MB / 0.6811 GB, free: 122.4 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 7.264e-06/0.9981, allocations: 11.28 kB / 0.6811 GB, free: 122.4 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.004418/1.002, allocations: 3.125 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.003908/1.006, allocations: 0.5675 MB / 0.6847 GB, free: 118.9 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08706/1.093, allocations: 56.31 MB / 0.7397 GB, free: 63.13 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004126/1.098, allocations: 4.038 MB / 0.7436 GB, free: 59.04 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.001691/1.099, allocations: 317.5 kB / 0.7439 GB, free: 58.73 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003243/1.103, allocations: 3.284 MB / 0.7471 GB, free: 55.44 MB / 0.5137 GB Notification: Performance of SimCode: time 1.543e-06/1.103, allocations: 0 / 0.7471 GB, free: 55.44 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4333/1.536, allocations: 145.3 MB / 0.889 GB, free: 122 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 86.21/87.74, allocations: 6.25 kB / 0.889 GB, free: 122 MB / 0.5294 GB " [Timeout remaining time 572] (rm -f Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonPullInStroke_fmu --startTime=0 --stopTime=0.05 --stepSize=9.01713e-06 --timeout=50 --tolerance=1e-07 Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonPullInStroke.fmu > Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 91.10515530197881] 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'] 88.14618760999292 88.15479978 87.755583405 Calling exit ...