Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Friction,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_Friction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Friction,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_Friction",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 trunk/package.mo): time 0.001015/0.001015, allocations: 205.6 kB / 8.54 MB, free: 1.828 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.161/1.161, allocations: 225.5 MB / 234.4 MB, free: 3.301 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008687/0.0008688, allocations: 91.27 kB / 286.3 MB, free: 5.301 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09948/0.1004, allocations: 56.9 MB / 343.2 MB, free: 8.574 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08555/0.1859, allocations: 51.48 MB / 394.7 MB, free: 5.047 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2136/0.3996, allocations: 83.24 MB / 477.9 MB, free: 9.734 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001683/0.3998, allocations: 75.59 kB / 478 MB, free: 9.707 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.04349/0.4433, allocations: 16.33 MB / 494.4 MB, free: 11.7 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.292e-05/0.4434, allocations: 8 kB / 494.4 MB, free: 11.69 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004815/0.4439, allocations: 107 kB / 494.5 MB, free: 11.59 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005851/0.4444, allocations: 436.3 kB / 494.9 MB, free: 11.16 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.261e-05/0.4445, allocations: 12 kB / 494.9 MB, free: 11.15 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.902e-05/0.4446, allocations: 23.94 kB / 494.9 MB, free: 11.13 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00102/0.4456, allocations: 0.5388 MB / 495.5 MB, free: 10.78 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008319/0.4465, allocations: 0.5045 MB / 496 MB, free: 10.4 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.748e-05/0.4465, allocations: 0 / 496 MB, free: 10.4 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.581e-05/0.4466, allocations: 0 / 496 MB, free: 10.4 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.37e-05/0.4466, allocations: 12 kB / 496 MB, free: 10.39 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003532/0.4501, allocations: 1.737 MB / 497.7 MB, free: 8.906 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004437/0.4506, allocations: 290.8 kB / 498 MB, free: 8.719 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003275/0.4509, allocations: 219.3 kB / 498.2 MB, free: 8.594 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.165e-05/0.451, allocations: 4 kB / 498.2 MB, free: 8.59 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005655/0.4516, allocations: 405.2 kB / 498.6 MB, free: 8.289 MB / 362.7 MB Notification: Performance of pre-optimization done (n=48): time 1.453e-06/0.4516, allocations: 0 / 498.6 MB, free: 8.289 MB / 362.7 MB Notification: Performance of matching and sorting (n=50): time 0.002677/0.4542, allocations: 1.426 MB / 0.4883 GB, free: 7.008 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.604e-05/0.4543, allocations: 85.11 kB / 0.4884 GB, free: 6.906 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000978/0.4553, allocations: 0.7642 MB / 0.4892 GB, free: 6.32 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 9.243e-05/0.4554, allocations: 48.94 kB / 0.4892 GB, free: 6.273 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001112/0.4555, allocations: 205.7 kB / 0.4894 GB, free: 6.094 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001399/0.4557, allocations: 167 kB / 0.4896 GB, free: 5.957 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.635e-05/0.4557, allocations: 0 / 0.4896 GB, free: 5.957 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001539/0.4559, allocations: 383.6 kB / 0.4899 GB, free: 5.602 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000398/0.4563, allocations: 236.7 kB / 0.4901 GB, free: 5.473 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004547/0.4567, allocations: 326.3 kB / 0.4905 GB, free: 5.238 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003121/0.4571, allocations: 157.3 kB / 0.4906 GB, free: 5.145 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.335e-06/0.4571, allocations: 0 / 0.4906 GB, free: 5.145 MB / 362.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001846/0.4589, allocations: 0.8 MB / 0.4914 GB, free: 4.551 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.428e-05/0.4589, allocations: 6.156 kB / 0.4914 GB, free: 4.547 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.883e-06/0.459, allocations: 0 / 0.4914 GB, free: 4.547 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009477/0.4599, allocations: 0.5101 MB / 0.4919 GB, free: 4.172 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005561/0.4605, allocations: 128 kB / 0.492 GB, free: 4.051 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003526/0.464, allocations: 3.742 MB / 0.4957 GB, free: 464 kB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001546/0.4656, allocations: 324.4 kB / 0.496 GB, free: 144 kB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.884e-05/0.4657, allocations: 29.8 kB / 0.496 GB, free: 120 kB / 362.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: stop2.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic f = f(a_relfric)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: stop1.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic f = f(a_relfric)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: supportFriction.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic f = f(a_relfric)" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 28 (supportFriction.free,$whenCondition2,stop1.free,$PRE.stop1.startForward,stop1.startForward,$PRE.stop1.startBackward,stop1.startBackward,stop1.locked,$PRE.stop1.mode,stop1.mode,stop1.stopped,$PRE.supportFriction.startForward,supportFriction.startForward,$PRE.supportFriction.startBackward,supportFriction.startBackward,supportFriction.locked,$PRE.supportFriction.mode,supportFriction.mode,$whenCondition1,stop2.free,$PRE.stop2.startForward,stop2.startForward,$PRE.stop2.startBackward,stop2.startBackward,stop2.locked,$PRE.stop2.mode,stop2.mode,stop2.stopped) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 58 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 7,1 5,1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0002643/0.4659, allocations: 130.2 kB / 0.4961 GB, free: 15.99 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001442/0.4661, allocations: 67.16 kB / 0.4962 GB, free: 15.92 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001793/0.4663, allocations: 98.92 kB / 0.4963 GB, free: 15.87 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.352e-06/0.4663, allocations: 4 kB / 0.4963 GB, free: 15.87 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.4663, allocations: 0 / 0.4963 GB, free: 15.87 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.715e-06/0.4663, allocations: 11.89 kB / 0.4963 GB, free: 15.86 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002541/0.4689, allocations: 1.383 MB / 0.4977 GB, free: 14.73 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.1e-06/0.4689, allocations: 3.984 kB / 0.4977 GB, free: 14.72 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005525/0.4694, allocations: 99.31 kB / 0.4978 GB, free: 14.63 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009071/0.4704, allocations: 494.2 kB / 0.4982 GB, free: 14.27 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.658e-05/0.4704, allocations: 16.09 kB / 0.4982 GB, free: 14.25 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003563/0.474, allocations: 3.672 MB / 0.5018 GB, free: 10.61 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.999e-06/0.474, allocations: 4.234 kB / 0.5018 GB, free: 10.6 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002008/0.476, allocations: 1.054 MB / 0.5029 GB, free: 9.5 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002497/0.4786, allocations: 1.723 MB / 0.5045 GB, free: 7.723 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003778/0.479, allocations: 248.1 kB / 0.5048 GB, free: 7.461 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001512/0.4791, allocations: 8 kB / 0.5048 GB, free: 7.453 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001586/0.4807, allocations: 339.7 kB / 0.5051 GB, free: 7.121 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000416/0.4811, allocations: 207.5 kB / 0.5053 GB, free: 6.918 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001056/0.4812, allocations: 27.95 kB / 0.5053 GB, free: 6.891 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0006645/0.4819, allocations: 0.6085 MB / 0.5059 GB, free: 6.285 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00124/0.4832, allocations: 187.9 kB / 0.5061 GB, free: 6.102 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 6 (stop2.s,stop2.v,stop1.s,stop1.v,mass.s,mass.v) * Number of discrete variables: 18 ($whenCondition1,stop2.free,stop2.startForward,stop2.startBackward,stop2.locked,stop2.mode,stop2.stopped,$whenCondition2,stop1.free,stop1.startForward,stop1.startBackward,stop1.locked,stop1.mode,stop1.stopped,supportFriction.startForward,supportFriction.startBackward,supportFriction.locked,supportFriction.mode) * Number of discrete states: 9 (supportFriction.mode,supportFriction.startForward,supportFriction.startBackward,stop1.mode,stop1.startBackward,stop1.startForward,stop2.mode,stop2.startBackward,stop2.startForward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (34): * Single equations (assignments): 31 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 5,1 5,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.000636/0.4838, allocations: 305.1 kB / 0.5064 GB, free: 5.891 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001206/0.485, allocations: 0.7569 MB / 0.5071 GB, free: 5.117 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.485, allocations: 448 / 0.5071 GB, free: 5.117 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008218/0.4859, allocations: 0.5072 MB / 0.5076 GB, free: 4.59 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004492/0.4863, allocations: 57.2 kB / 0.5077 GB, free: 4.535 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003304/0.4896, allocations: 1.496 MB / 0.5091 GB, free: 3.004 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006757/0.4903, allocations: 0.9863 MB / 0.5101 GB, free: 1.992 MB / 378.7 MB Notification: Performance of SimCode: time 4.31e-07/0.4903, allocations: 0 / 0.5101 GB, free: 1.992 MB / 378.7 MB (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Translational_Examples_Friction_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Translational_Examples_Friction.fmu > Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.Translational.Examples.Friction_res.mat does not exist to compare? outputFormat=mat