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.001193/0.001194, allocations: 91.73 kB / 16.3 MB, free: 6.453 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.001569/0.001569, allocations: 185.4 kB / 17.2 MB, free: 6.34 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.387/1.387, allocations: 223.2 MB / 241.1 MB, free: 5.473 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002715/0.0002715, allocations: 6.812 kB / 300.8 MB, free: 5.957 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1101/0.1104, allocations: 50.42 MB / 351.2 MB, free: 11.67 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.01528/0.1258, allocations: 8.899 MB / 360.1 MB, free: 2.746 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.007991/0.1338, allocations: 3.621 MB / 363.8 MB, free: 15.11 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001989/0.1358, allocations: 35.88 kB / 363.8 MB, free: 15.08 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008057/0.1439, allocations: 7.961 MB / 371.7 MB, free: 7.102 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006722/0.1507, allocations: 4.624 MB / 376.4 MB, free: 2.469 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002193/0.1529, allocations: 0.5771 MB / 376.9 MB, free: 1.891 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005796/0.1587, allocations: 3.464 MB / 380.4 MB, free: 14.42 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001087/0.1598, allocations: 0.6761 MB / 381.1 MB, free: 13.72 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003456/0.1633, allocations: 2.494 MB / 383.6 MB, free: 11.22 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004976/0.1683, allocations: 3.762 MB / 387.3 MB, free: 7.449 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006721/0.169, allocations: 140 kB / 387.5 MB, free: 7.312 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008147/0.1698, allocations: 159.9 kB / 387.6 MB, free: 7.156 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001501/0.1713, allocations: 1.717 MB / 389.4 MB, free: 5.434 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001259/0.1726, allocations: 1.075 MB / 390.4 MB, free: 4.348 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00515/0.1777, allocations: 5.39 MB / 395.8 MB, free: 14.95 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.1777, allocations: 0 / 395.8 MB, free: 14.95 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.687e-06/0.1778, allocations: 0 / 395.8 MB, free: 14.95 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001698/0.1779, allocations: 3.938 kB / 395.8 MB, free: 14.94 MB / 334.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.0108/0.1887, allocations: 6.687 MB / 402.5 MB, free: 8.156 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.167e-05/0.1888, allocations: 8.031 kB / 402.5 MB, free: 8.148 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006276/0.1894, allocations: 291.4 kB / 402.8 MB, free: 7.852 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009407/0.1904, allocations: 0.8445 MB / 403.6 MB, free: 6.996 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004922/0.1953, allocations: 2.894 MB / 406.5 MB, free: 4.035 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001359/0.1955, allocations: 156.1 kB / 406.7 MB, free: 3.879 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003206/0.1958, allocations: 211.9 kB / 406.9 MB, free: 3.672 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003963/0.1998, allocations: 2.069 MB / 409 MB, free: 1.535 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.6e-05/0.1998, allocations: 11.86 kB / 409 MB, free: 1.523 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001818/0.2, allocations: 84 kB / 409.1 MB, free: 1.441 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.91e-05/0.2001, allocations: 52 kB / 409.1 MB, free: 1.391 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003875/0.2039, allocations: 1.868 MB / 411 MB, free: 15.52 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01423/0.2182, allocations: 8.759 MB / 419.7 MB, free: 6.551 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003878/0.2221, allocations: 2.263 MB / 422 MB, free: 4.219 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001311/0.2222, allocations: 38.41 kB / 422 MB, free: 4.184 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00211/0.2244, allocations: 1.127 MB / 423.2 MB, free: 3.027 MB / 350.1 MB Notification: Performance of pre-optimization done (n=242): time 4.398e-06/0.2244, allocations: 0 / 423.2 MB, free: 3.027 MB / 350.1 MB Notification: Performance of matching and sorting (n=375): time 0.2235/0.4479, allocations: 21.42 MB / 444.6 MB, free: 55.51 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.09863/0.5465, allocations: 30.15 MB / 474.7 MB, free: 28.29 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01613/0.5627, allocations: 14.86 MB / 489.6 MB, free: 13.49 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007399/0.5635, allocations: 89.7 kB / 489.7 MB, free: 13.39 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002911/0.5664, allocations: 3.724 MB / 493.4 MB, free: 9.664 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001502/0.5679, allocations: 1.241 MB / 494.6 MB, free: 8.434 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002247/0.5681, allocations: 72 kB / 494.7 MB, free: 8.363 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001553/0.5683, allocations: 437.2 kB / 495.1 MB, free: 7.93 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002238/0.5705, allocations: 1.202 MB / 496.3 MB, free: 6.727 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002228/0.5728, allocations: 1.565 MB / 497.9 MB, free: 5.086 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002327/0.5751, allocations: 1.41 MB / 499.3 MB, free: 3.68 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.275e-06/0.5751, allocations: 4 kB / 499.3 MB, free: 3.676 MB / 350.1 MB Notification: Performance of matching and sorting (n=441) (initialization): time 0.009943/0.5851, allocations: 5.089 MB / 0.4926 GB, free: 14.55 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.102e-05/0.5852, allocations: 8 kB / 0.4926 GB, free: 14.54 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.458e-05/0.5852, allocations: 4 kB / 0.4926 GB, free: 14.54 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005051/0.5903, allocations: 1.356 MB / 0.4939 GB, free: 13.16 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002763/0.593, allocations: 0.5539 MB / 0.4945 GB, free: 12.61 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02701/0.6201, allocations: 21.24 MB / 0.5152 GB, free: 6.184 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003747/0.6238, allocations: 168.6 kB / 0.5154 GB, free: 6.02 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005655/0.6244, allocations: 123.9 kB / 0.5155 GB, free: 5.898 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,$PRE.comparisonWithFEA.nextTimeEvent,comparisonWithFEA.nextTimeEvent,$PRE.comparisonWithFEA.nextTimeEventScaled,comparisonWithFEA.nextTimeEventScaled,simpleSolenoid.armature.stopper_xMax.contact,simpleSolenoid.armature.stopper_xMin.contact,advancedSolenoid.armature.stopper_xMax.contact,advancedSolenoid.armature.stopper_xMin.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): 302 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 4,(1,100.0%) 4,(1,100.0%) 3,(1,100.0%) 5,(1,100.0%) 4} * Non-linear torn systems: 2 {2 43,3 54} Notification: Performance of prepare postOptimizeDAE: time 0.003818/0.6283, allocations: 2.189 MB / 0.5176 GB, free: 3.699 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001182/0.6294, allocations: 0.8175 MB / 0.5184 GB, free: 2.871 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01123/0.6407, allocations: 5.157 MB / 0.5235 GB, free: 13.67 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005358/0.6461, allocations: 2.285 MB / 0.5257 GB, free: 11.36 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.833e-05/0.6462, allocations: 7.953 kB / 0.5257 GB, free: 11.36 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.838e-05/0.6463, allocations: 15.94 kB / 0.5257 GB, free: 11.34 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02353/0.6698, allocations: 10.77 MB / 0.5362 GB, free: 0.5312 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.706e-05/0.6699, allocations: 0 / 0.5362 GB, free: 0.5312 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002552/0.6724, allocations: 479.4 kB / 0.5367 GB, free: 64 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005464/0.6779, allocations: 1.38 MB / 0.538 GB, free: 14.65 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006591/0.6786, allocations: 79.91 kB / 0.5381 GB, free: 14.57 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02401/0.7026, allocations: 19.69 MB / 0.5574 GB, free: 9.684 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.312/1.015, allocations: 26.79 MB / 0.5835 GB, free: 132.5 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02224/1.037, allocations: 6.968 MB / 0.5903 GB, free: 131.8 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002821/1.04, allocations: 0.751 MB / 0.5911 GB, free: 131.6 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001746/1.042, allocations: 66.66 kB / 0.5911 GB, free: 131.6 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004641/1.046, allocations: 139.7 kB / 0.5913 GB, free: 131.6 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001388/1.048, allocations: 277.7 kB / 0.5915 GB, free: 131.6 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004309/1.048, allocations: 97.7 kB / 0.5916 GB, free: 131.6 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.02495/1.073, allocations: 11.11 MB / 0.6025 GB, free: 131.4 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.092e-06/1.073, allocations: 0 / 0.6025 GB, free: 131.4 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.008143/1.081, allocations: 1.1 MB / 0.6035 GB, free: 131.4 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 9 ($STATESET2.x[2],$STATESET2.x[1],advancedSolenoid.x,advancedSolenoid.armature.stopper_xMin.v_rel,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 (linear and non-linear blocks): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 4,(1,100.0%) 2,(1,100.0%) 5,(1,100.0%) 2,(1,100.0%) 3,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 2 {5 55,4 42} Notification: Performance of Backend phase and start with SimCode phase: time 0.02108/1.102, allocations: 8.081 MB / 0.6114 GB, free: 129.4 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01144/1.114, allocations: 4.741 MB / 0.6161 GB, free: 125.4 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.354e-06/1.114, allocations: 0 / 0.6161 GB, free: 125.4 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.007102/1.121, allocations: 3.323 MB / 0.6193 GB, free: 122.2 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004898/1.126, allocations: 474.1 kB / 0.6198 GB, free: 121.8 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1036/1.23, allocations: 80.43 MB / 0.6983 GB, free: 38.44 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003308/1.233, allocations: 4.198 MB / 0.7024 GB, free: 34.2 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002216/1.235, allocations: 350.2 kB / 0.7027 GB, free: 33.85 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002743/1.238, allocations: 3.249 MB / 0.7059 GB, free: 30.61 MB / 446.1 MB Notification: Performance of SimCode: time 1.293e-06/1.238, allocations: 3.938 kB / 0.7059 GB, free: 30.6 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3823/1.62, allocations: 135.5 MB / 0.8382 GB, free: 75.45 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001713/1.621, allocations: 281.9 kB / 0.8385 GB, free: 75.1 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.587/9.208, allocations: 4.062 kB / 0.8385 GB, free: 75.1 MB / 462.1 MB (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/linux/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)