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.0007696/0.0007696, allocations: 95.41 kB / 17.35 MB, free: 6.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008709/0.000871, allocations: 202.5 kB / 18.28 MB, free: 5.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.225/1.225, allocations: 227.8 MB / 246.8 MB, free: 11.29 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002311/0.0002311, allocations: 4 kB / 307.8 MB, free: 0.707 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07967/0.07992, allocations: 51.53 MB / 359.4 MB, free: 13.18 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.009471/0.08942, allocations: 10.7 MB / 370.1 MB, free: 2.418 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1604/0.2498, allocations: 3.785 MB / 373.9 MB, free: 8.465 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001754/0.2516, allocations: 37.06 kB / 373.9 MB, free: 8.465 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008491/0.2601, allocations: 8.148 MB / 382 MB, free: 7.562 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00588/0.266, allocations: 4.637 MB / 386.7 MB, free: 5.746 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002116/0.2682, allocations: 0.8033 MB / 387.5 MB, free: 5.578 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005947/0.2741, allocations: 5.191 MB / 392.7 MB, free: 4.074 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001295/0.2754, allocations: 0.7626 MB / 393.4 MB, free: 3.809 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003709/0.2792, allocations: 2.576 MB / 396 MB, free: 2.148 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005323/0.2845, allocations: 4.927 MB / 400.9 MB, free: 13.34 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006484/0.2852, allocations: 144 kB / 401.1 MB, free: 13.2 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009564/0.2861, allocations: 186.4 kB / 401.3 MB, free: 13.02 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001496/0.2876, allocations: 1.748 MB / 403 MB, free: 11.27 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002899/0.2905, allocations: 2.638 MB / 405.6 MB, free: 8.605 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005813/0.2964, allocations: 6.94 MB / 412.6 MB, free: 1.891 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.2964, allocations: 0 / 412.6 MB, free: 1.891 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.2964, allocations: 1.688 kB / 412.6 MB, free: 1.891 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002522/0.2966, allocations: 0 / 412.6 MB, free: 1.891 MB / 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.01107/0.3077, allocations: 6.649 MB / 419.2 MB, free: 11.15 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.146e-05/0.3078, allocations: 12.03 kB / 419.2 MB, free: 11.14 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007192/0.3085, allocations: 291.7 kB / 419.5 MB, free: 10.84 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001997/0.3105, allocations: 0.9077 MB / 420.4 MB, free: 9.926 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004477/0.315, allocations: 3.209 MB / 423.7 MB, free: 6.836 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001495/0.3152, allocations: 160.2 kB / 423.8 MB, free: 6.676 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003976/0.3156, allocations: 203.9 kB / 424 MB, free: 6.477 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00438/0.32, allocations: 2.108 MB / 426.1 MB, free: 4.301 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.111e-05/0.32, allocations: 4 kB / 426.1 MB, free: 4.297 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002235/0.3203, allocations: 88 kB / 426.2 MB, free: 4.211 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.441e-05/0.3203, allocations: 52 kB / 426.3 MB, free: 4.16 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003874/0.3242, allocations: 1.872 MB / 428.1 MB, free: 2.281 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01602/0.3402, allocations: 9.059 MB / 437.2 MB, free: 9.113 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003719/0.344, allocations: 2.325 MB / 439.5 MB, free: 6.727 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002597/0.3466, allocations: 1.345 MB / 440.9 MB, free: 5.371 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001392/0.3467, allocations: 36.55 kB / 440.9 MB, free: 5.34 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001975/0.3487, allocations: 1.139 MB / 442 MB, free: 4.168 MB / 350.1 MB Notification: Performance of pre-optimization done (n=246): time 5.891e-06/0.3487, allocations: 0 / 442 MB, free: 4.168 MB / 350.1 MB Notification: Performance of matching and sorting (n=371): time 0.06272/0.4115, allocations: 22.61 MB / 464.6 MB, free: 13.26 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0305/0.442, allocations: 13.31 MB / 477.9 MB, free: 15.61 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01873/0.4608, allocations: 15.04 MB / 493 MB, free: 0.5703 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005107/0.4613, allocations: 85.7 kB / 493.1 MB, free: 492 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003075/0.4644, allocations: 3.772 MB / 496.8 MB, free: 12.7 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001287/0.4657, allocations: 1.23 MB / 498.1 MB, free: 11.48 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00042/0.4662, allocations: 260.9 kB / 498.3 MB, free: 11.22 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 9.496e-05/0.4663, allocations: 301.1 kB / 498.6 MB, free: 10.93 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00234/0.4686, allocations: 1.229 MB / 499.9 MB, free: 9.695 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002426/0.471, allocations: 1.615 MB / 0.4897 GB, free: 8 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004696/0.4757, allocations: 2.978 MB / 0.4926 GB, free: 4.957 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.252e-06/0.4758, allocations: 0 / 0.4926 GB, free: 4.957 MB / 414.1 MB Notification: Performance of matching and sorting (n=435) (initialization): time 0.01031/0.4861, allocations: 5.214 MB / 0.4977 GB, free: 15.7 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.691e-05/0.4861, allocations: 7.984 kB / 0.4977 GB, free: 15.7 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.636e-05/0.4862, allocations: 8 kB / 0.4977 GB, free: 15.69 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005214/0.4914, allocations: 1.415 MB / 0.4991 GB, free: 14.25 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002435/0.4938, allocations: 0.5266 MB / 0.4996 GB, free: 13.72 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02771/0.5215, allocations: 22.01 MB / 0.5211 GB, free: 6.516 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003135/0.5247, allocations: 127.9 kB / 0.5212 GB, free: 6.391 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004466/0.5252, allocations: 116 kB / 0.5214 GB, free: 6.277 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.00344/0.5286, allocations: 2.199 MB / 0.5235 GB, free: 4.07 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001144/0.5298, allocations: 0.8291 MB / 0.5243 GB, free: 3.23 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1774/0.7072, allocations: 5.214 MB / 0.5294 GB, free: 137.9 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.577e-05/0.7073, allocations: 36.28 kB / 0.5294 GB, free: 137.9 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.524e-05/0.7073, allocations: 6.125 kB / 0.5294 GB, free: 137.9 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.407e-05/0.7074, allocations: 21.72 kB / 0.5295 GB, free: 137.9 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02062/0.728, allocations: 11.13 MB / 0.5403 GB, free: 135.3 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.598e-05/0.7281, allocations: 1.188 kB / 0.5403 GB, free: 135.3 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002134/0.7302, allocations: 455.5 kB / 0.5408 GB, free: 135.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005184/0.7354, allocations: 1.354 MB / 0.5421 GB, free: 134.9 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002683/0.7357, allocations: 73.5 kB / 0.5422 GB, free: 134.9 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02021/0.7559, allocations: 20.1 MB / 0.5618 GB, free: 119 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.02332/0.7793, allocations: 11.66 MB / 0.5732 GB, free: 112.1 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01305/0.7924, allocations: 6.916 MB / 0.5799 GB, free: 107.8 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001731/0.7941, allocations: 0.7823 MB / 0.5807 GB, free: 107.2 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001142/0.7953, allocations: 66.53 kB / 0.5808 GB, free: 107.1 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002449/0.7978, allocations: 99.95 kB / 0.5809 GB, free: 107 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006789/0.7985, allocations: 267.4 kB / 0.5811 GB, free: 106.8 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002327/0.7987, allocations: 99.97 kB / 0.5812 GB, free: 106.7 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.01247/0.8112, allocations: 11.22 MB / 0.5922 GB, free: 95.48 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.91e-07/0.8112, allocations: 0 / 0.5922 GB, free: 95.48 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004475/0.8157, allocations: 1.101 MB / 0.5932 GB, free: 94.38 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.01283/0.8286, allocations: 7.909 MB / 0.601 GB, free: 86.54 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006075/0.8347, allocations: 4.754 MB / 0.6056 GB, free: 81.67 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.489e-06/0.8347, allocations: 8.562 kB / 0.6056 GB, free: 81.66 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003652/0.8383, allocations: 3.26 MB / 0.6088 GB, free: 78.29 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003949/0.8423, allocations: 0.5433 MB / 0.6093 GB, free: 77.75 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2515/1.094, allocations: 91.66 MB / 0.6988 GB, free: 138 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004212/1.098, allocations: 4.048 MB / 0.7028 GB, free: 137.2 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001895/1.1, allocations: 317 kB / 0.7031 GB, free: 137.2 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002753/1.103, allocations: 3.279 MB / 0.7063 GB, free: 137.2 MB / 462.1 MB Notification: Performance of SimCode: time 7.71e-07/1.103, allocations: 0 / 0.7063 GB, free: 137.2 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1551/1.258, allocations: 136.4 MB / 0.8395 GB, free: 22.63 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001831/1.258, allocations: 302.3 kB / 0.8398 GB, free: 22.26 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.179/7.437, allocations: 7.797 kB / 0.8398 GB, free: 22.25 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)