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.000972/0.0009721, allocations: 100.5 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001308/0.001309, allocations: 191.8 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.342/1.342, allocations: 227.4 MB / 246 MB, free: 11.99 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002586/0.0002587, allocations: 8 kB / 306.8 MB, free: 1.465 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1013/0.1015, allocations: 51.49 MB / 358.3 MB, free: 13.97 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.009937/0.1115, allocations: 9.919 MB / 368.2 MB, free: 4.02 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00713/0.1187, allocations: 3.713 MB / 371.9 MB, free: 300 kB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001805/0.1205, allocations: 39.88 kB / 372 MB, free: 260 kB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.279/0.3995, allocations: 8.107 MB / 380.1 MB, free: 8.465 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008159/0.4078, allocations: 4.597 MB / 384.7 MB, free: 6.691 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002668/0.4105, allocations: 0.569 MB / 385.3 MB, free: 6.531 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.008556/0.419, allocations: 4.501 MB / 389.8 MB, free: 5.309 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001578/0.4206, allocations: 0.69 MB / 390.4 MB, free: 5.074 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006265/0.4269, allocations: 2.535 MB / 393 MB, free: 4.141 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006993/0.434, allocations: 4.161 MB / 397.1 MB, free: 0.7812 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001066/0.4351, allocations: 144 kB / 397.3 MB, free: 0.6406 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001303/0.4364, allocations: 193.8 kB / 397.5 MB, free: 472 kB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001395/0.4378, allocations: 1.735 MB / 399.2 MB, free: 15.02 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001472/0.4393, allocations: 1.09 MB / 400.3 MB, free: 14.36 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005753/0.445, allocations: 5.532 MB / 405.8 MB, free: 9.578 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.015e-05/0.4451, allocations: 4 kB / 405.8 MB, free: 9.574 MB / 318.1 MB Notification: Performance of FrontEnd: time 4.067e-06/0.4451, allocations: 0 / 405.8 MB, free: 9.574 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002428/0.4453, allocations: 3.828 kB / 405.8 MB, free: 9.574 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: 528 * Number of variables: 528 Notification: Performance of Generate backend data structure: time 0.01268/0.458, allocations: 6.773 MB / 412.6 MB, free: 3.145 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.793e-05/0.4581, allocations: 16.02 kB / 412.6 MB, free: 3.129 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00109/0.4592, allocations: 285 kB / 412.9 MB, free: 2.969 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002163/0.4613, allocations: 0.9095 MB / 413.8 MB, free: 2.051 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004682/0.466, allocations: 2.818 MB / 416.6 MB, free: 15.7 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001598/0.4662, allocations: 157.1 kB / 416.8 MB, free: 15.61 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003309/0.4666, allocations: 202.8 kB / 417 MB, free: 15.48 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00453/0.4711, allocations: 2.136 MB / 419.1 MB, free: 13.61 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.627e-05/0.4712, allocations: 0 / 419.1 MB, free: 13.61 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002008/0.4714, allocations: 92 kB / 419.2 MB, free: 13.52 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.474e-05/0.4714, allocations: 48.75 kB / 419.3 MB, free: 13.47 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004281/0.4757, allocations: 1.954 MB / 421.2 MB, free: 11.52 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01677/0.4925, allocations: 9.049 MB / 430.3 MB, free: 2.355 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004253/0.4968, allocations: 2.333 MB / 432.6 MB, free: 15.96 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002733/0.4996, allocations: 1.386 MB / 434 MB, free: 14.57 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001518/0.4998, allocations: 41.97 kB / 434 MB, free: 14.54 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002462/0.5023, allocations: 1.171 MB / 435.2 MB, free: 13.33 MB / 350.1 MB Notification: Performance of pre-optimization done (n=242): time 4.909e-06/0.5023, allocations: 3.562 kB / 435.2 MB, free: 13.33 MB / 350.1 MB Notification: Performance of matching and sorting (n=367): time 0.06924/0.5715, allocations: 23.14 MB / 458.3 MB, free: 5.91 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.03038/0.602, allocations: 13.26 MB / 471.6 MB, free: 8.289 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0236/0.6256, allocations: 15.03 MB / 486.6 MB, free: 9.332 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007256/0.6264, allocations: 81.7 kB / 486.7 MB, free: 9.246 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004106/0.6305, allocations: 3.78 MB / 490.5 MB, free: 5.461 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001738/0.6323, allocations: 1.21 MB / 491.7 MB, free: 4.262 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002599/0.6325, allocations: 68 kB / 491.8 MB, free: 4.195 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002668/0.6328, allocations: 433.1 kB / 492.2 MB, free: 3.766 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002837/0.6357, allocations: 1.276 MB / 493.5 MB, free: 2.488 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002952/0.6386, allocations: 1.642 MB / 495.1 MB, free: 0.7656 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002949/0.6416, allocations: 1.471 MB / 496.6 MB, free: 15.3 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.497e-06/0.6416, allocations: 4 kB / 496.6 MB, free: 15.29 MB / 414.1 MB Notification: Performance of matching and sorting (n=431) (initialization): time 0.01222/0.6538, allocations: 5.25 MB / 0.4901 GB, free: 10 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.781e-05/0.6539, allocations: 10.41 kB / 0.4901 GB, free: 9.996 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.293e-05/0.654, allocations: 4 kB / 0.4901 GB, free: 9.992 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005562/0.6595, allocations: 1.413 MB / 0.4915 GB, free: 8.559 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00301/0.6626, allocations: 0.5539 MB / 0.492 GB, free: 8.004 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02939/0.692, allocations: 21.97 MB / 0.5135 GB, free: 0.8398 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003784/0.6958, allocations: 144 kB / 0.5136 GB, free: 0.6992 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006082/0.6965, allocations: 116 kB / 0.5137 GB, free: 0.5859 MB / 430.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 ($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 (309): * Single equations (assignments): 300 * Array equations: 0 * 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%) 3,(1,100.0%) 4,(1,100.0%) 5,(1,100.0%) 4} * Non-linear torn systems: 2 {2 43,3 50} Notification: Performance of prepare postOptimizeDAE: time 0.004647/0.7011, allocations: 2.188 MB / 0.5158 GB, free: 14.39 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001503/0.7026, allocations: 0.8291 MB / 0.5166 GB, free: 13.55 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01285/0.7155, allocations: 5.26 MB / 0.5218 GB, free: 8.234 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.936e-05/0.7156, allocations: 39.98 kB / 0.5218 GB, free: 8.195 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.521e-05/0.7156, allocations: 4 kB / 0.5218 GB, free: 8.191 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.143e-05/0.7157, allocations: 15.94 kB / 0.5218 GB, free: 8.176 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2566/0.9723, allocations: 11.18 MB / 0.5328 GB, free: 136.8 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.163e-05/0.9724, allocations: 4.906 kB / 0.5328 GB, free: 136.8 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002549/0.9749, allocations: 470.8 kB / 0.5332 GB, free: 136.8 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00587/0.9808, allocations: 1.354 MB / 0.5345 GB, free: 136.7 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005711/0.9814, allocations: 75.17 kB / 0.5346 GB, free: 136.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02488/1.006, allocations: 20.05 MB / 0.5542 GB, free: 122.9 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.02433/1.031, allocations: 11.64 MB / 0.5656 GB, free: 116.2 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01375/1.044, allocations: 7.002 MB / 0.5724 GB, free: 113.3 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001618/1.046, allocations: 0.7676 MB / 0.5731 GB, free: 112.7 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009316/1.047, allocations: 70.97 kB / 0.5732 GB, free: 112.6 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002279/1.049, allocations: 128.5 kB / 0.5733 GB, free: 112.6 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008921/1.05, allocations: 267.1 kB / 0.5736 GB, free: 112.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000208/1.05, allocations: 97.19 kB / 0.5737 GB, free: 112.5 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.01367/1.064, allocations: 11.22 MB / 0.5846 GB, free: 105.4 MB / 446.1 MB Notification: Performance of sort global known variables: time 5.71e-07/1.064, allocations: 0 / 0.5846 GB, free: 105.4 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005314/1.07, allocations: 1.094 MB / 0.5857 GB, free: 104.4 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 (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%) 2,(1,100.0%) 2,(1,100.0%) 4,(1,100.0%) 5,(1,100.0%) 3,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 2 {3 49,4 42} Notification: Performance of Backend phase and start with SimCode phase: time 0.01503/1.085, allocations: 7.99 MB / 0.5935 GB, free: 96.47 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007723/1.092, allocations: 4.829 MB / 0.5982 GB, free: 91.51 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.425e-06/1.092, allocations: 0 / 0.5982 GB, free: 91.51 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004917/1.097, allocations: 3.299 MB / 0.6014 GB, free: 88.11 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003463/1.101, allocations: 0.5283 MB / 0.602 GB, free: 87.58 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1086/1.209, allocations: 79.82 MB / 0.6799 GB, free: 2.625 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004032/1.213, allocations: 4.044 MB / 0.6839 GB, free: 14.54 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002148/1.216, allocations: 301.2 kB / 0.6841 GB, free: 14.24 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004078/1.22, allocations: 3.252 MB / 0.6873 GB, free: 10.98 MB / 462.1 MB Notification: Performance of SimCode: time 8.42e-07/1.22, allocations: 0 / 0.6873 GB, free: 10.98 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4181/1.638, allocations: 134.2 MB / 0.8184 GB, free: 42.97 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002464/1.638, allocations: 288.3 kB / 0.8186 GB, free: 42.62 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.861/9.499, allocations: 0 / 0.8186 GB, free: 42.62 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/linux/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)