Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonPullInStroke",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke,fileNamePrefix="Modelica_3_2_3_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.0008776/0.0008777, allocations: 93.09 kB / 16.95 MB, free: 6.457 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.0008209/0.000821, allocations: 181.7 kB / 17.84 MB, free: 6.008 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.755/1.755, allocations: 205.4 MB / 224 MB, free: 13.15 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004995/0.0004996, allocations: 8.938 kB / 280.9 MB, free: 3.621 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1145/0.1151, allocations: 47.57 MB / 328.4 MB, free: 3.98 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.01168/0.1268, allocations: 9.633 MB / 338.1 MB, free: 10.31 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.009114/0.136, allocations: 3.411 MB / 341.5 MB, free: 6.883 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003307/0.1393, allocations: 35.88 kB / 341.5 MB, free: 6.848 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009918/0.1493, allocations: 8.118 MB / 349.6 MB, free: 14.71 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007827/0.1572, allocations: 4.528 MB / 354.2 MB, free: 10.17 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002674/0.1599, allocations: 0.5656 MB / 354.7 MB, free: 9.605 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.008187/0.1681, allocations: 4.44 MB / 359.2 MB, free: 5.156 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002156/0.1703, allocations: 0.6876 MB / 359.9 MB, free: 4.449 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005302/0.1756, allocations: 2.505 MB / 362.4 MB, free: 1.938 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007262/0.1829, allocations: 4.132 MB / 366.5 MB, free: 13.8 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001819/0.1848, allocations: 143.9 kB / 366.6 MB, free: 13.66 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001957/0.1867, allocations: 172 kB / 366.8 MB, free: 13.49 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002465/0.1892, allocations: 1.728 MB / 368.5 MB, free: 11.75 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002057/0.1913, allocations: 1.083 MB / 369.6 MB, free: 10.66 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006328/0.1977, allocations: 5.444 MB / 375.1 MB, free: 5.203 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.647e-06/0.1977, allocations: 0 / 375.1 MB, free: 5.203 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.1977, allocations: 4 kB / 375.1 MB, free: 5.199 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003317/0.1981, allocations: 0 / 375.1 MB, free: 5.199 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.2529/0.451, allocations: 6.69 MB / 381.8 MB, free: 46.68 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.112e-05/0.4511, allocations: 12.88 kB / 381.8 MB, free: 46.68 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001484/0.4526, allocations: 289.6 kB / 382.1 MB, free: 46.63 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002238/0.4548, allocations: 0.8441 MB / 382.9 MB, free: 46.17 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005935/0.4608, allocations: 2.782 MB / 385.7 MB, free: 44.99 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001697/0.461, allocations: 157.4 kB / 385.8 MB, free: 44.98 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004048/0.4614, allocations: 209.9 kB / 386 MB, free: 44.98 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005181/0.4666, allocations: 2.12 MB / 388.2 MB, free: 44.41 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.692e-05/0.4667, allocations: 2.625 kB / 388.2 MB, free: 44.41 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001823/0.4669, allocations: 83.11 kB / 388.2 MB, free: 44.35 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.668e-05/0.4669, allocations: 50.78 kB / 388.3 MB, free: 44.35 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004466/0.4714, allocations: 1.936 MB / 390.2 MB, free: 43.66 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0181/0.4895, allocations: 8.987 MB / 399.2 MB, free: 38.31 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003861/0.4935, allocations: 2.329 MB / 401.5 MB, free: 36.93 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002298/0.4958, allocations: 1.383 MB / 402.9 MB, free: 36.29 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001387/0.496, allocations: 41.17 kB / 403 MB, free: 36.27 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001856/0.4978, allocations: 1.171 MB / 404.1 MB, free: 35.39 MB / 318.1 MB Notification: Performance of pre-optimization done (n=242): time 5.47e-06/0.4978, allocations: 0 / 404.1 MB, free: 35.39 MB / 318.1 MB Notification: Performance of matching and sorting (n=367): time 0.06542/0.5633, allocations: 22.96 MB / 427.1 MB, free: 12.15 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.02782/0.5911, allocations: 13.17 MB / 440.3 MB, free: 14.63 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02719/0.6184, allocations: 14.91 MB / 455.2 MB, free: 15.79 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007633/0.6192, allocations: 85.7 kB / 455.3 MB, free: 15.7 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.005169/0.6244, allocations: 3.725 MB / 459 MB, free: 11.96 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002018/0.6265, allocations: 1.212 MB / 460.2 MB, free: 10.77 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006843/0.6272, allocations: 72 kB / 460.3 MB, free: 10.7 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0003396/0.6275, allocations: 437.2 kB / 460.7 MB, free: 10.26 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003551/0.6311, allocations: 1.26 MB / 462 MB, free: 9 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003518/0.6347, allocations: 1.634 MB / 463.6 MB, free: 7.285 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003604/0.6383, allocations: 1.461 MB / 465.1 MB, free: 5.824 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.519e-05/0.6383, allocations: 7.938 kB / 465.1 MB, free: 5.816 MB / 350.1 MB Notification: Performance of matching and sorting (n=431) (initialization): time 0.01436/0.6527, allocations: 5.212 MB / 470.3 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.289e-05/0.6528, allocations: 4 kB / 470.3 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.579e-05/0.6528, allocations: 8.562 kB / 470.3 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005829/0.6587, allocations: 1.398 MB / 471.7 MB, free: 15.13 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003148/0.6619, allocations: 0.55 MB / 472.2 MB, free: 14.58 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03127/0.6932, allocations: 21.89 MB / 494.1 MB, free: 7.496 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003934/0.6971, allocations: 147.9 kB / 494.3 MB, free: 7.352 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007333/0.6979, allocations: 108 kB / 494.4 MB, free: 7.246 MB / 382.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.006294/0.7042, allocations: 2.184 MB / 496.6 MB, free: 5.051 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00293/0.7072, allocations: 0.8137 MB / 497.4 MB, free: 4.227 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01779/0.725, allocations: 5.249 MB / 0.4908 GB, free: 14.93 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.968e-05/0.7252, allocations: 36 kB / 0.4909 GB, free: 14.89 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.013e-05/0.7252, allocations: 4 kB / 0.4909 GB, free: 14.89 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001374/0.7254, allocations: 23.92 kB / 0.4909 GB, free: 14.87 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04023/0.7656, allocations: 11.11 MB / 0.5018 GB, free: 3.711 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.7e-05/0.7657, allocations: 0 / 0.5018 GB, free: 3.711 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003784/0.7695, allocations: 475.4 kB / 0.5022 GB, free: 3.246 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007329/0.7769, allocations: 1.333 MB / 0.5035 GB, free: 1.887 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007003/0.7776, allocations: 79.97 kB / 0.5036 GB, free: 1.809 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03078/0.8084, allocations: 20 MB / 0.5231 GB, free: 12.62 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.02507/0.8336, allocations: 11.56 MB / 0.5344 GB, free: 0.7852 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2391/1.073, allocations: 6.965 MB / 0.5412 GB, free: 139.3 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002436/1.075, allocations: 0.754 MB / 0.5419 GB, free: 139.2 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002084/1.077, allocations: 66.7 kB / 0.542 GB, free: 139.2 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003977/1.081, allocations: 133.9 kB / 0.5421 GB, free: 139.2 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001243/1.083, allocations: 260.5 kB / 0.5424 GB, free: 139.2 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005199/1.083, allocations: 95.14 kB / 0.5425 GB, free: 139.2 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.02574/1.109, allocations: 11.14 MB / 0.5534 GB, free: 137.4 MB / 430.1 MB Notification: Performance of sort global known variables: time 5.81e-07/1.109, allocations: 3.844 kB / 0.5534 GB, free: 137.4 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.007079/1.116, allocations: 1.084 MB / 0.5544 GB, free: 137.3 MB / 430.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.01946/1.136, allocations: 7.954 MB / 0.5622 GB, free: 132.7 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.009251/1.145, allocations: 4.816 MB / 0.5669 GB, free: 128.2 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 9.107e-06/1.145, allocations: 0 / 0.5669 GB, free: 128.2 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005541/1.15, allocations: 3.295 MB / 0.5701 GB, free: 125.1 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006513/1.157, allocations: 0.5296 MB / 0.5706 GB, free: 124.6 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1182/1.275, allocations: 78.66 MB / 0.6474 GB, free: 42.7 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004048/1.279, allocations: 4.01 MB / 0.6513 GB, free: 38.64 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002329/1.282, allocations: 306.9 kB / 0.6516 GB, free: 38.34 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003663/1.285, allocations: 3.225 MB / 0.6548 GB, free: 35.12 MB / 430.1 MB Notification: Performance of SimCode: time 1.833e-06/1.285, allocations: 4 kB / 0.6548 GB, free: 35.12 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.455/1.74, allocations: 132.9 MB / 0.7846 GB, free: 85.93 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001944/1.741, allocations: 291.4 kB / 0.7849 GB, free: 85.57 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.015/10.76, allocations: 64 / 0.7849 GB, free: 85.57 MB / 446.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonPullInStroke_fmu --startTime=0 --stopTime=0.05 --timeout=50 --tolerance=1e-07 Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_SolenoidActuator_ComparisonPullInStroke.fmu > Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke.pipe 2>&1) Environment - environmentSimulation: