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.001064/0.001064, allocations: 102 kB / 17.2 MB, free: 6.293 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00121/0.00121, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.279/1.279, allocations: 227.4 MB / 246.3 MB, free: 9.055 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00112/0.00112, allocations: 67.97 kB / 306.4 MB, free: 0.7461 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08903/0.09017, allocations: 50.54 MB / 356.9 MB, free: 14.21 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.01042/0.1006, allocations: 11.3 MB / 368.2 MB, free: 2.848 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1621/0.2628, allocations: 3.805 MB / 372 MB, free: 8.977 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002058/0.2649, allocations: 38.88 kB / 372 MB, free: 8.977 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008679/0.2736, allocations: 8.142 MB / 380.2 MB, free: 8.297 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00672/0.2804, allocations: 4.637 MB / 384.8 MB, free: 6.512 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002324/0.2827, allocations: 0.8053 MB / 385.6 MB, free: 6.355 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.008042/0.2908, allocations: 5.19 MB / 390.8 MB, free: 5.086 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001306/0.2921, allocations: 0.7773 MB / 391.6 MB, free: 4.734 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004424/0.2966, allocations: 2.628 MB / 394.2 MB, free: 3.234 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004967/0.3015, allocations: 4.986 MB / 399.2 MB, free: 14.37 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005522/0.3021, allocations: 172 kB / 399.4 MB, free: 14.2 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008085/0.3029, allocations: 227 kB / 399.6 MB, free: 13.98 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001213/0.3041, allocations: 1.785 MB / 401.4 MB, free: 12.19 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002091/0.3062, allocations: 2.66 MB / 404 MB, free: 9.516 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004946/0.3112, allocations: 7.069 MB / 411.1 MB, free: 2.672 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.3112, allocations: 0 / 411.1 MB, free: 2.672 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.3112, allocations: 7.938 kB / 411.1 MB, free: 2.664 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.000165/0.3114, allocations: 0 / 411.1 MB, free: 2.664 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.0116/0.323, allocations: 7.732 MB / 418.8 MB, free: 10.84 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.327e-05/0.3231, allocations: 8.031 kB / 418.9 MB, free: 10.83 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003467/0.3234, allocations: 291.6 kB / 419.1 MB, free: 10.53 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001503/0.3249, allocations: 0.8999 MB / 420 MB, free: 9.621 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003776/0.3287, allocations: 3.212 MB / 423.3 MB, free: 6.527 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001143/0.3288, allocations: 156.2 kB / 423.4 MB, free: 6.371 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000286/0.3291, allocations: 211.8 kB / 423.6 MB, free: 6.164 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00365/0.3328, allocations: 2.096 MB / 425.7 MB, free: 4 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.729e-05/0.3329, allocations: 7.906 kB / 425.7 MB, free: 3.992 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001762/0.333, allocations: 84 kB / 425.8 MB, free: 3.91 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.406e-05/0.3331, allocations: 52 kB / 425.9 MB, free: 3.859 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003413/0.3365, allocations: 1.852 MB / 427.7 MB, free: 2 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01366/0.3502, allocations: 9.007 MB / 436.7 MB, free: 8.883 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003615/0.3538, allocations: 2.332 MB / 439 MB, free: 6.496 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002396/0.3562, allocations: 1.349 MB / 440.4 MB, free: 5.145 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001299/0.3564, allocations: 39.53 kB / 440.4 MB, free: 5.109 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002006/0.3584, allocations: 1.132 MB / 441.6 MB, free: 3.941 MB / 350.1 MB Notification: Performance of pre-optimization done (n=246): time 4.148e-06/0.3584, allocations: 3.938 kB / 441.6 MB, free: 3.938 MB / 350.1 MB Notification: Performance of matching and sorting (n=371): time 0.06214/0.4206, allocations: 22.44 MB / 464 MB, free: 13.21 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.02874/0.4493, allocations: 13.11 MB / 477.1 MB, free: 15.75 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01575/0.4651, allocations: 15.04 MB / 492.2 MB, free: 0.7109 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006213/0.4658, allocations: 81.7 kB / 492.2 MB, free: 0.625 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003223/0.469, allocations: 3.772 MB / 496 MB, free: 12.85 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001369/0.4704, allocations: 1.231 MB / 497.2 MB, free: 11.63 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009471/0.4714, allocations: 0.5157 MB / 497.8 MB, free: 11.11 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 8.897e-05/0.4715, allocations: 305.1 kB / 498.1 MB, free: 10.8 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002345/0.4738, allocations: 1.229 MB / 499.3 MB, free: 9.574 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002503/0.4763, allocations: 1.604 MB / 0.4891 GB, free: 7.891 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004848/0.4812, allocations: 2.968 MB / 0.492 GB, free: 4.855 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.514e-06/0.4812, allocations: 0 / 0.492 GB, free: 4.855 MB / 414.1 MB Notification: Performance of matching and sorting (n=435) (initialization): time 0.01122/0.4924, allocations: 5.198 MB / 0.4971 GB, free: 15.62 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.334e-05/0.4925, allocations: 7.984 kB / 0.4971 GB, free: 15.61 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.056e-05/0.4925, allocations: 11.94 kB / 0.4971 GB, free: 15.6 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005726/0.4982, allocations: 1.405 MB / 0.4985 GB, free: 14.16 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002686/0.501, allocations: 0.5338 MB / 0.499 GB, free: 13.63 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02614/0.5271, allocations: 21.98 MB / 0.5205 GB, free: 6.469 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003138/0.5303, allocations: 115.9 kB / 0.5206 GB, free: 6.355 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002831/0.5306, allocations: 116 kB / 0.5207 GB, free: 6.242 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.003133/0.5337, allocations: 2.192 MB / 0.5229 GB, free: 4.039 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009884/0.5347, allocations: 0.8368 MB / 0.5237 GB, free: 3.191 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1934/0.7281, allocations: 5.199 MB / 0.5288 GB, free: 139 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.61e-05/0.7282, allocations: 36.34 kB / 0.5288 GB, free: 139 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.725e-05/0.7282, allocations: 7.312 kB / 0.5288 GB, free: 139 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.069e-05/0.7283, allocations: 18.45 kB / 0.5288 GB, free: 139 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02016/0.7485, allocations: 11.13 MB / 0.5397 GB, free: 135.8 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-05/0.7485, allocations: 4.031 kB / 0.5397 GB, free: 135.8 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00224/0.7508, allocations: 447.3 kB / 0.5401 GB, free: 135.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005341/0.7561, allocations: 1.347 MB / 0.5414 GB, free: 135.4 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002566/0.7564, allocations: 73.55 kB / 0.5415 GB, free: 135.4 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02013/0.7765, allocations: 20.07 MB / 0.5611 GB, free: 119.5 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.02184/0.7984, allocations: 11.48 MB / 0.5723 GB, free: 112.7 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01195/0.8104, allocations: 6.891 MB / 0.579 GB, free: 108.8 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001495/0.8119, allocations: 0.7699 MB / 0.5798 GB, free: 108.3 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005436/0.8124, allocations: 75.58 kB / 0.5799 GB, free: 108.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001994/0.8144, allocations: 95.95 kB / 0.58 GB, free: 108.1 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006488/0.8151, allocations: 271.4 kB / 0.5802 GB, free: 107.8 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001748/0.8153, allocations: 95.97 kB / 0.5803 GB, free: 107.8 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.009034/0.8243, allocations: 11.22 MB / 0.5913 GB, free: 96.55 MB / 446.1 MB Notification: Performance of sort global known variables: time 5.41e-07/0.8244, allocations: 0 / 0.5913 GB, free: 96.55 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003549/0.8279, allocations: 1.101 MB / 0.5923 GB, free: 95.45 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.01213/0.8401, allocations: 7.884 MB / 0.6 GB, free: 87.65 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006389/0.8465, allocations: 4.746 MB / 0.6047 GB, free: 82.79 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.703e-06/0.8465, allocations: 0 / 0.6047 GB, free: 82.79 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003871/0.8504, allocations: 3.253 MB / 0.6078 GB, free: 79.43 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002982/0.8534, allocations: 0.5434 MB / 0.6084 GB, free: 78.88 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2597/1.113, allocations: 91.46 MB / 0.6977 GB, free: 141.3 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005839/1.119, allocations: 4.051 MB / 0.7016 GB, free: 140.5 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002335/1.121, allocations: 317.7 kB / 0.7019 GB, free: 140.5 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003435/1.125, allocations: 3.283 MB / 0.7052 GB, free: 140.5 MB / 462.1 MB Notification: Performance of SimCode: time 1.142e-06/1.125, allocations: 0 / 0.7052 GB, free: 140.5 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2308/1.356, allocations: 138.9 MB / 0.8408 GB, free: 23.44 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001472/1.356, allocations: 306.5 kB / 0.8411 GB, free: 23.07 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.535/7.891, allocations: 0 / 0.8411 GB, free: 23.07 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)