Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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 trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_trunk_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonPullInStroke",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke,fileNamePrefix="Modelica_trunk_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.001784/0.001784, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001979/0.001979, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.384/1.384, allocations: 227.4 MB / 246.8 MB, free: 10.63 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001305/0.001306, allocations: 61.19 kB / 307.1 MB, free: 0.5586 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1039/0.1053, allocations: 50.54 MB / 357.6 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.01302/0.1183, allocations: 11.38 MB / 369 MB, free: 2.578 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1846/0.3029, allocations: 3.866 MB / 372.8 MB, free: 8.672 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001767/0.3047, allocations: 36.81 kB / 372.9 MB, free: 8.672 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007927/0.3127, allocations: 8.149 MB / 381 MB, free: 8.051 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005898/0.3187, allocations: 4.705 MB / 385.7 MB, free: 6.301 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002444/0.3211, allocations: 0.9234 MB / 386.6 MB, free: 6.039 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006387/0.3275, allocations: 5.394 MB / 392 MB, free: 4.562 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001281/0.3288, allocations: 0.9013 MB / 392.9 MB, free: 4.086 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004005/0.3329, allocations: 2.898 MB / 395.8 MB, free: 1.969 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004795/0.3377, allocations: 5.166 MB / 401 MB, free: 12.92 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000633/0.3383, allocations: 356 kB / 401.4 MB, free: 12.57 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008485/0.3392, allocations: 406.6 kB / 401.7 MB, free: 12.18 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001155/0.3403, allocations: 1.881 MB / 403.6 MB, free: 10.29 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002151/0.3425, allocations: 2.849 MB / 406.5 MB, free: 7.43 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005337/0.3479, allocations: 7.293 MB / 413.8 MB, free: 372 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.179e-06/0.3479, allocations: 0 / 413.8 MB, free: 372 kB / 318.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.3479, allocations: 0 / 413.8 MB, free: 372 kB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001144/0.348, allocations: 0 / 413.8 MB, free: 372 kB / 318.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.01092/0.3589, allocations: 7.734 MB / 421.5 MB, free: 8.527 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.121e-05/0.359, allocations: 8.031 kB / 421.5 MB, free: 8.52 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003335/0.3593, allocations: 287.7 kB / 421.8 MB, free: 8.227 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001463/0.3608, allocations: 0.8999 MB / 422.7 MB, free: 7.316 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003669/0.3645, allocations: 3.221 MB / 425.9 MB, free: 4.215 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001139/0.3646, allocations: 156.2 kB / 426.1 MB, free: 4.059 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000272/0.3649, allocations: 204 kB / 426.3 MB, free: 3.859 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00337/0.3683, allocations: 2.1 MB / 428.4 MB, free: 1.691 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.547e-05/0.3683, allocations: 3.906 kB / 428.4 MB, free: 1.688 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001704/0.3685, allocations: 88 kB / 428.5 MB, free: 1.602 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.638e-05/0.3686, allocations: 48 kB / 428.5 MB, free: 1.555 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003245/0.3718, allocations: 1.847 MB / 430.3 MB, free: 15.7 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01282/0.3846, allocations: 9.023 MB / 439.4 MB, free: 6.566 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003573/0.3882, allocations: 2.322 MB / 441.7 MB, free: 4.188 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002298/0.3906, allocations: 1.356 MB / 443.1 MB, free: 2.824 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001143/0.3907, allocations: 35.84 kB / 443.1 MB, free: 2.793 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001737/0.3924, allocations: 1.136 MB / 444.2 MB, free: 1.621 MB / 350.1 MB Notification: Performance of pre-optimization done (n=246): time 4.178e-06/0.3925, allocations: 0 / 444.2 MB, free: 1.621 MB / 350.1 MB Notification: Performance of matching and sorting (n=371): time 0.05592/0.4484, allocations: 22.45 MB / 466.7 MB, free: 10.89 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.02674/0.4751, allocations: 13.72 MB / 480.4 MB, free: 12.81 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01416/0.4893, allocations: 15.03 MB / 495.4 MB, free: 13.78 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003053/0.4896, allocations: 81.7 kB / 495.5 MB, free: 13.7 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002861/0.4925, allocations: 3.78 MB / 499.3 MB, free: 9.91 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008659/0.4934, allocations: 1.226 MB / 0.4888 GB, free: 8.695 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008019/0.4942, allocations: 0.5195 MB / 0.4893 GB, free: 8.168 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 7.352e-05/0.4943, allocations: 305.2 kB / 0.4896 GB, free: 7.867 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002082/0.4964, allocations: 1.237 MB / 0.4908 GB, free: 6.629 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002282/0.4987, allocations: 1.595 MB / 0.4923 GB, free: 4.953 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004452/0.5031, allocations: 2.969 MB / 0.4952 GB, free: 1.922 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.833e-06/0.5031, allocations: 4 kB / 0.4953 GB, free: 1.918 MB / 414.1 MB Notification: Performance of matching and sorting (n=435) (initialization): time 0.009611/0.5128, allocations: 5.203 MB / 0.5003 GB, free: 12.67 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.031e-05/0.5128, allocations: 11.28 kB / 0.5003 GB, free: 12.66 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.239e-05/0.5128, allocations: 4 kB / 0.5003 GB, free: 12.66 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005025/0.5178, allocations: 1.427 MB / 0.5017 GB, free: 11.2 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002282/0.5201, allocations: 0.5266 MB / 0.5023 GB, free: 10.68 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0253/0.5454, allocations: 24.05 MB / 0.5257 GB, free: 1.391 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002144/0.5476, allocations: 112 kB / 0.5259 GB, free: 1.281 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002065/0.5478, allocations: 119.9 kB / 0.526 GB, free: 1.164 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.1444/0.6922, allocations: 2.187 MB / 0.5281 GB, free: 135.8 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001738/0.6939, allocations: 0.8277 MB / 0.5289 GB, free: 135.8 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01237/0.7063, allocations: 5.205 MB / 0.534 GB, free: 135.5 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.357e-05/0.7064, allocations: 36.95 kB / 0.534 GB, free: 135.5 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.83e-05/0.7064, allocations: 7.75 kB / 0.534 GB, free: 135.5 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.389e-05/0.7065, allocations: 23.61 kB / 0.5341 GB, free: 135.5 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01902/0.7256, allocations: 11.11 MB / 0.5449 GB, free: 133.2 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.678e-05/0.7256, allocations: 5.094 kB / 0.5449 GB, free: 133.2 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002191/0.7278, allocations: 455.6 kB / 0.5453 GB, free: 133.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005119/0.7329, allocations: 1.361 MB / 0.5467 GB, free: 132.8 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003004/0.7333, allocations: 74.52 kB / 0.5467 GB, free: 132.8 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02247/0.7557, allocations: 21.92 MB / 0.5682 GB, free: 115.4 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.02233/0.7781, allocations: 12.02 MB / 0.5799 GB, free: 107.2 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0126/0.7908, allocations: 6.898 MB / 0.5866 GB, free: 100.5 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001295/0.7921, allocations: 0.7705 MB / 0.5874 GB, free: 99.66 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007631/0.7929, allocations: 67.91 kB / 0.5874 GB, free: 99.59 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002169/0.7951, allocations: 99.84 kB / 0.5875 GB, free: 99.5 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006918/0.7958, allocations: 275.4 kB / 0.5878 GB, free: 99.23 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001761/0.796, allocations: 91.98 kB / 0.5879 GB, free: 99.14 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.009693/0.8057, allocations: 11.22 MB / 0.5989 GB, free: 87.94 MB / 446.1 MB Notification: Performance of sort global known variables: time 5.71e-07/0.8057, allocations: 0 / 0.5989 GB, free: 87.94 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003824/0.8095, allocations: 1.095 MB / 0.5999 GB, free: 86.84 MB / 446.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.012/0.8215, allocations: 7.869 MB / 0.6076 GB, free: 79.04 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01085/0.8324, allocations: 4.874 MB / 0.6124 GB, free: 74.08 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 9.318e-06/0.8325, allocations: 7.938 kB / 0.6124 GB, free: 74.07 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004437/0.8369, allocations: 3.258 MB / 0.6156 GB, free: 70.71 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003434/0.8404, allocations: 0.573 MB / 0.6161 GB, free: 70.14 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2323/1.073, allocations: 89.6 MB / 0.7036 GB, free: 139.1 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00436/1.077, allocations: 4.045 MB / 0.7076 GB, free: 138.3 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00183/1.079, allocations: 314.1 kB / 0.7079 GB, free: 138.3 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002636/1.082, allocations: 3.28 MB / 0.7111 GB, free: 137.6 MB / 462.1 MB Notification: Performance of SimCode: time 9.22e-07/1.082, allocations: 0 / 0.7111 GB, free: 137.6 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.722/1.804, allocations: 141.6 MB / 0.8494 GB, free: 13.97 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 22.29/24.09, allocations: 16.31 kB / 0.8494 GB, free: 13.96 MB / 462.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonPullInStroke_fmu --startTime=0 --stopTime=0.05 --timeout=50 --tolerance=1e-07 Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonPullInStroke.fmu > Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe 2>&1)