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.0009126/0.0009126, allocations: 96.56 kB / 17.3 MB, free: 6.344 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.001121/0.001121, allocations: 178.5 kB / 18.21 MB, free: 5.531 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.186/1.186, allocations: 205.4 MB / 224.4 MB, free: 13.06 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.0003858/0.0003859, allocations: 12.22 kB / 281.5 MB, free: 3.316 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06711/0.0675, allocations: 47.57 MB / 329.1 MB, free: 3.668 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.SolenoidActuator.ComparisonPullInStroke): time 0.008945/0.07648, allocations: 10.32 MB / 339.4 MB, free: 9.301 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.005321/0.08182, allocations: 3.473 MB / 342.8 MB, free: 5.812 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001316/0.08316, allocations: 35.88 kB / 342.9 MB, free: 5.777 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006431/0.08962, allocations: 8.141 MB / 351 MB, free: 13.62 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004789/0.09442, allocations: 4.555 MB / 355.6 MB, free: 9.055 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001464/0.0959, allocations: 0.8273 MB / 356.4 MB, free: 8.227 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003954/0.09986, allocations: 5.089 MB / 361.5 MB, free: 3.129 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008567/0.1007, allocations: 0.761 MB / 362.2 MB, free: 2.34 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001977/0.1027, allocations: 2.544 MB / 364.8 MB, free: 15.79 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003777/0.1065, allocations: 4.881 MB / 369.7 MB, free: 10.89 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002866/0.1068, allocations: 140 kB / 369.8 MB, free: 10.75 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004028/0.1072, allocations: 176 kB / 370 MB, free: 10.58 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001022/0.1082, allocations: 1.736 MB / 371.7 MB, free: 8.832 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001522/0.1098, allocations: 2.582 MB / 374.3 MB, free: 6.223 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1353/0.2451, allocations: 6.798 MB / 381.1 MB, free: 30.05 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.04e-06/0.2451, allocations: 4.109 kB / 381.1 MB, free: 30.05 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.575e-06/0.2451, allocations: 0 / 381.1 MB, free: 30.05 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002069/0.2453, allocations: 0 / 381.1 MB, free: 30.05 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.01022/0.2556, allocations: 6.609 MB / 387.7 MB, free: 26.47 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.961e-05/0.2556, allocations: 17.47 kB / 387.7 MB, free: 26.46 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006116/0.2562, allocations: 289.2 kB / 388 MB, free: 26.41 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008199/0.2571, allocations: 0.8443 MB / 388.9 MB, free: 25.95 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003278/0.2603, allocations: 3.151 MB / 392 MB, free: 24.43 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001058/0.2605, allocations: 161.7 kB / 392.2 MB, free: 24.41 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002772/0.2607, allocations: 207.8 kB / 392.4 MB, free: 24.41 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003782/0.2645, allocations: 2.136 MB / 394.5 MB, free: 24.23 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.144e-05/0.2646, allocations: 5.938 kB / 394.5 MB, free: 24.23 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001711/0.2648, allocations: 82.62 kB / 394.6 MB, free: 24.23 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.083e-05/0.2648, allocations: 49.69 kB / 394.6 MB, free: 24.23 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003383/0.2682, allocations: 1.957 MB / 396.6 MB, free: 24.2 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01119/0.2794, allocations: 8.979 MB / 405.6 MB, free: 20.67 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002856/0.2823, allocations: 2.346 MB / 407.9 MB, free: 19.3 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00208/0.2844, allocations: 1.383 MB / 409.3 MB, free: 18.67 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001059/0.2845, allocations: 43.36 kB / 409.3 MB, free: 18.65 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001691/0.2862, allocations: 1.181 MB / 410.5 MB, free: 17.92 MB / 318.1 MB Notification: Performance of pre-optimization done (n=242): time 3.647e-06/0.2862, allocations: 3.094 kB / 410.5 MB, free: 17.92 MB / 318.1 MB Notification: Performance of matching and sorting (n=367): time 0.05447/0.3407, allocations: 23.09 MB / 433.6 MB, free: 12.5 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.02737/0.3681, allocations: 13.23 MB / 446.8 MB, free: 15.02 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01335/0.3815, allocations: 14.9 MB / 461.7 MB, free: 184 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004675/0.3819, allocations: 85.7 kB / 461.8 MB, free: 92 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002807/0.3848, allocations: 3.72 MB / 465.5 MB, free: 12.36 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009389/0.3857, allocations: 1.215 MB / 466.8 MB, free: 11.16 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003331/0.386, allocations: 259 kB / 467 MB, free: 10.9 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 7.135e-05/0.3861, allocations: 301.1 kB / 467.3 MB, free: 10.61 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002353/0.3885, allocations: 1.28 MB / 468.6 MB, free: 9.324 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002503/0.391, allocations: 1.645 MB / 470.2 MB, free: 7.602 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004884/0.3959, allocations: 3.031 MB / 473.3 MB, free: 4.523 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.165e-06/0.3959, allocations: 7.984 kB / 473.3 MB, free: 4.516 MB / 366.1 MB Notification: Performance of matching and sorting (n=431) (initialization): time 0.01004/0.406, allocations: 5.241 MB / 478.5 MB, free: 15.32 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.066e-05/0.406, allocations: 8 kB / 478.5 MB, free: 15.31 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.285e-05/0.406, allocations: 4 kB / 478.5 MB, free: 15.31 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00493/0.4109, allocations: 1.399 MB / 479.9 MB, free: 13.88 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002375/0.4133, allocations: 0.5539 MB / 480.5 MB, free: 13.36 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02352/0.4369, allocations: 21.95 MB / 0.4906 GB, free: 6.305 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002845/0.4397, allocations: 151.9 kB / 0.4908 GB, free: 6.156 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001996/0.4399, allocations: 114.3 kB / 0.4909 GB, free: 6.047 MB / 398.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 (309): * Single equations (assignments): 300 * 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,4,100.0%), (1,3,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.002656/0.4426, allocations: 2.18 MB / 0.493 GB, free: 3.887 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007332/0.4433, allocations: 0.8175 MB / 0.4938 GB, free: 3.059 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01003/0.4534, allocations: 5.268 MB / 0.499 GB, free: 13.8 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.698e-05/0.4534, allocations: 36 kB / 0.499 GB, free: 13.76 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.089e-05/0.4534, allocations: 8 kB / 0.499 GB, free: 13.75 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.758e-05/0.4535, allocations: 19.94 kB / 0.499 GB, free: 13.73 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01628/0.4698, allocations: 11.13 MB / 0.5099 GB, free: 2.641 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.816e-06/0.4698, allocations: 0 / 0.5099 GB, free: 2.641 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002164/0.472, allocations: 480.6 kB / 0.5104 GB, free: 2.195 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004834/0.4768, allocations: 1.341 MB / 0.5117 GB, free: 0.832 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002035/0.477, allocations: 75.98 kB / 0.5117 GB, free: 0.7578 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1499/0.6269, allocations: 20.03 MB / 0.5313 GB, free: 140.9 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.02258/0.6495, allocations: 11.58 MB / 0.5426 GB, free: 137.4 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01151/0.6611, allocations: 7.017 MB / 0.5495 GB, free: 134.6 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007797/0.6619, allocations: 0.7569 MB / 0.5502 GB, free: 134.5 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004559/0.6623, allocations: 76.94 kB / 0.5503 GB, free: 134.4 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00185/0.6642, allocations: 127.4 kB / 0.5504 GB, free: 134.4 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005288/0.6647, allocations: 261.7 kB / 0.5507 GB, free: 134.4 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001557/0.6649, allocations: 100.2 kB / 0.5507 GB, free: 134.3 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.007438/0.6723, allocations: 11.13 MB / 0.5616 GB, free: 128 MB / 430.1 MB Notification: Performance of sort global known variables: time 2e-07/0.6723, allocations: 0 / 0.5616 GB, free: 128 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002343/0.6747, allocations: 1.081 MB / 0.5627 GB, free: 126.9 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 (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.01138/0.6861, allocations: 7.989 MB / 0.5705 GB, free: 119.6 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.00567/0.6917, allocations: 4.837 MB / 0.5752 GB, free: 114.8 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.6918, allocations: 7.719 kB / 0.5752 GB, free: 114.8 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003451/0.6952, allocations: 3.297 MB / 0.5784 GB, free: 111.4 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00363/0.6989, allocations: 0.526 MB / 0.5789 GB, free: 110.9 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0752/0.7741, allocations: 90.22 MB / 0.667 GB, free: 14.53 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002832/0.7769, allocations: 4.013 MB / 0.671 GB, free: 10.48 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001658/0.7786, allocations: 315.1 kB / 0.6713 GB, free: 10.17 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00239/0.781, allocations: 3.217 MB / 0.6744 GB, free: 6.949 MB / 430.1 MB Notification: Performance of SimCode: time 5.01e-07/0.781, allocations: 0 / 0.6744 GB, free: 6.949 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.959/2.74, allocations: 134.3 MB / 0.8055 GB, free: 59.07 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002212/2.74, allocations: 307.2 kB / 0.8058 GB, free: 58.68 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.959/9.699, allocations: 4 kB / 0.8058 GB, free: 58.68 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/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)