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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001086/0.001086, allocations: 179.8 kB / 8.477 MB, free: 0.5156 MB / 6.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.046/1.046, allocations: 205.2 MB / 214.1 MB, free: 8.496 MB / 178.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008433/0.0008433, allocations: 91.92 kB / 262.1 MB, free: 5.109 MB / 210.8 MB Notification: Performance of FrontEnd - loaded program: time 0.08454/0.08541, allocations: 52.99 MB / 315.1 MB, free: 1.895 MB / 258.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07232/0.1577, allocations: 47.58 MB / 362.6 MB, free: 2.195 MB / 306.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2014/0.3592, allocations: 91.64 MB / 454.3 MB, free: 12.04 MB / 338.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002456/0.3595, allocations: 88.48 kB / 454.4 MB, free: 12 MB / 338.8 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.3321/0.6916, allocations: 82.3 MB / 0.5241 GB, free: 69.29 MB / 402.8 MB Notification: Performance of prepare preOptimizeDAE: time 3.282e-05/0.6916, allocations: 9.25 kB / 0.5241 GB, free: 69.29 MB / 402.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001268/0.6929, allocations: 0.8499 MB / 0.5249 GB, free: 68.82 MB / 402.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006284/0.6992, allocations: 3.553 MB / 0.5284 GB, free: 67.72 MB / 402.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.727e-05/0.6993, allocations: 66.88 kB / 0.5285 GB, free: 67.72 MB / 402.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002351/0.6995, allocations: 128.1 kB / 0.5286 GB, free: 67.72 MB / 402.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002819/0.7024, allocations: 1.674 MB / 0.5302 GB, free: 67.7 MB / 402.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002635/0.705, allocations: 1.724 MB / 0.5319 GB, free: 67.55 MB / 402.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.127e-05/0.7051, allocations: 3.906 kB / 0.5319 GB, free: 67.55 MB / 402.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001528/0.7052, allocations: 0 / 0.5319 GB, free: 67.55 MB / 402.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.912e-05/0.7053, allocations: 50.38 kB / 0.532 GB, free: 67.55 MB / 402.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01443/0.7197, allocations: 9.767 MB / 0.5415 GB, free: 65.91 MB / 402.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001918/0.7216, allocations: 1.316 MB / 0.5428 GB, free: 65.83 MB / 402.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001665/0.7233, allocations: 1.175 MB / 0.5439 GB, free: 65.79 MB / 402.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001249/0.7235, allocations: 44.11 kB / 0.544 GB, free: 65.79 MB / 402.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001399/0.7249, allocations: 1.029 MB / 0.545 GB, free: 65.65 MB / 402.8 MB Notification: Performance of pre-optimization done (n=246): time 4.779e-06/0.7249, allocations: 1.031 kB / 0.545 GB, free: 65.65 MB / 402.8 MB Notification: Performance of matching and sorting (n=382): time 0.03467/0.7596, allocations: 16.15 MB / 0.5607 GB, free: 60.98 MB / 402.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.464e-05/0.7597, allocations: 271.1 kB / 0.561 GB, free: 60.7 MB / 402.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1303/0.89, allocations: 12.88 MB / 0.5736 GB, free: 58.49 MB / 402.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0005328/0.8905, allocations: 31.17 kB / 0.5736 GB, free: 58.45 MB / 402.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.001365/0.8919, allocations: 1.439 MB / 0.575 GB, free: 57.7 MB / 402.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009937/0.8929, allocations: 1.21 MB / 0.5762 GB, free: 56.73 MB / 402.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002057/0.8931, allocations: 3.312 kB / 0.5762 GB, free: 56.73 MB / 402.8 MB Notification: Performance of setup shared object (initialization): time 0.00014/0.8933, allocations: 434.3 kB / 0.5766 GB, free: 56.36 MB / 402.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002014/0.8953, allocations: 1.171 MB / 0.5778 GB, free: 55.8 MB / 402.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002193/0.8975, allocations: 1.492 MB / 0.5792 GB, free: 54.99 MB / 402.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002209/0.8997, allocations: 1.367 MB / 0.5806 GB, free: 54.35 MB / 402.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.724e-06/0.8997, allocations: 3.5 kB / 0.5806 GB, free: 54.35 MB / 402.8 MB Notification: Performance of matching and sorting (n=443) (initialization): time 0.01048/0.9102, allocations: 4.909 MB / 0.5854 GB, free: 52.34 MB / 402.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.753e-05/0.9103, allocations: 6.094 kB / 0.5854 GB, free: 52.34 MB / 402.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.906e-05/0.9103, allocations: 2.906 kB / 0.5854 GB, free: 52.34 MB / 402.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005764/0.916, allocations: 1.432 MB / 0.5868 GB, free: 51.94 MB / 402.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003201/0.9193, allocations: 0.5752 MB / 0.5873 GB, free: 51.91 MB / 402.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02265/0.9419, allocations: 21.25 MB / 0.6081 GB, free: 32.38 MB / 402.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003989/0.946, allocations: 90.23 kB / 0.6082 GB, free: 32.31 MB / 402.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005545/0.9465, allocations: 117.8 kB / 0.6083 GB, free: 32.2 MB / 402.8 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: simpleSolenoid.g_mAirPar.V_m:DUMMY_STATE(unit = "A" ) "Magnetic potential difference of ports" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * 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 () * 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 (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%) 4,(1,100.0%) 4,(1,100.0%) 7,(1,100.0%) 4} * Non-linear torn systems: 2 {3 42,3 55} Notification: Performance of prepare postOptimizeDAE: time 0.0007273/0.9473, allocations: 161.1 kB / 0.6084 GB, free: 32.07 MB / 402.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001917/0.9492, allocations: 0.8098 MB / 0.6092 GB, free: 31.25 MB / 402.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01066/0.9599, allocations: 4.946 MB / 0.614 GB, free: 26.99 MB / 402.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.367e-05/0.9599, allocations: 43.91 kB / 0.6141 GB, free: 26.95 MB / 402.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.869e-05/0.9599, allocations: 11.47 kB / 0.6141 GB, free: 26.94 MB / 402.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.803e-05/0.96, allocations: 20.44 kB / 0.6141 GB, free: 26.94 MB / 402.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02201/0.982, allocations: 12.92 MB / 0.6267 GB, free: 16.67 MB / 402.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.235e-05/0.982, allocations: 4 kB / 0.6267 GB, free: 16.66 MB / 402.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002668/0.9847, allocations: 0.5103 MB / 0.6272 GB, free: 16.27 MB / 402.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005006/0.9897, allocations: 1.307 MB / 0.6285 GB, free: 15.18 MB / 402.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000238/0.99, allocations: 31.53 kB / 0.6285 GB, free: 15.16 MB / 402.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02023/1.01, allocations: 19.03 MB / 0.6471 GB, free: 12.22 MB / 418.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.02741/1.038, allocations: 11.69 MB / 0.6586 GB, free: 1.617 MB / 418.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01601/1.054, allocations: 7.511 MB / 0.6659 GB, free: 11.02 MB / 434.8 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01626/1.07, allocations: 9.733 MB / 0.6754 GB, free: 1.605 MB / 434.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003019/1.073, allocations: 1.588 MB / 0.6769 GB, free: 104 kB / 434.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001039/1.074, allocations: 10.39 kB / 0.677 GB, free: 96 kB / 434.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002529/1.077, allocations: 90.22 kB / 0.677 GB, free: 28 kB / 434.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.1021/1.179, allocations: 205.7 kB / 0.6772 GB, free: 148.4 MB / 434.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003535/1.179, allocations: 108.2 kB / 0.6773 GB, free: 148.4 MB / 434.8 MB Notification: Performance of sort global known variables: time 0.01106/1.19, allocations: 10.28 MB / 0.6874 GB, free: 148.2 MB / 434.8 MB Notification: Performance of remove unused functions: time 0.004749/1.195, allocations: 1.443 MB / 0.6888 GB, free: 148.2 MB / 434.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 9 (advancedSolenoid.x,advancedSolenoid.coil1.i,advancedSolenoid.armature.stopper_xMin.v_rel,advancedSolenoid.c_par1.v,advancedSolenoid.c_par2.v,advancedSolenoid.g_mLeakWork.Phi,$STATESET140686174300567.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.nextTimeEvent,comparisonWithFEA.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (270): * Single equations (assignments): 259 * 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%) 4,(1,100.0%) 2,(1,100.0%) 4,(1,100.0%) 6,(1,100.0%) 3,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 2 {3 47,3 43} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008334/1.196, allocations: 359.4 kB / 0.6891 GB, free: 148.1 MB / 434.8 MB Notification: Performance of simCode: created initialization part: time 0.005798/1.202, allocations: 4.281 MB / 0.6933 GB, free: 147.1 MB / 434.8 MB Notification: Performance of simCode: created event and clocks part: time 3.487e-06/1.202, allocations: 0 / 0.6933 GB, free: 147.1 MB / 434.8 MB Notification: Performance of simCode: created simulation system equations: time 0.003628/1.205, allocations: 2.885 MB / 0.6961 GB, free: 146.2 MB / 434.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002696/1.208, allocations: 406.4 kB / 0.6965 GB, free: 146.2 MB / 434.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02384/1.232, allocations: 16.71 MB / 0.7128 GB, free: 143.5 MB / 434.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005562/1.237, allocations: 4.54 MB / 0.7173 GB, free: 142.6 MB / 434.8 MB Notification: Performance of SimCode: time 6.71e-07/1.237, allocations: 3.281 kB / 0.7173 GB, free: 142.6 MB / 434.8 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)