Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.Examples.PreLoad.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.PreLoad,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_PreLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.PreLoad,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_PreLoad",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.001161/0.001161, allocations: 207.9 kB / 8.541 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.188/1.188, allocations: 225.5 MB / 234.4 MB, free: 3.359 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008684/0.0008684, allocations: 98.53 kB / 286.3 MB, free: 5.23 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09996/0.1009, allocations: 56.9 MB / 343.2 MB, free: 8.605 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08972/0.1906, allocations: 51.47 MB / 394.7 MB, free: 5.086 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2289/0.4195, allocations: 79.1 MB / 473.8 MB, free: 12.74 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001585/0.4197, allocations: 69.89 kB / 473.9 MB, free: 12.71 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: 116 * Number of variables: 116 Notification: Performance of Generate backend data structure: time 0.02362/0.4434, allocations: 10.04 MB / 483.9 MB, free: 5.605 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.631e-05/0.4434, allocations: 8 kB / 483.9 MB, free: 5.598 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002067/0.4436, allocations: 72.39 kB / 484 MB, free: 5.527 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000337/0.444, allocations: 308 kB / 484.3 MB, free: 5.219 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.486e-05/0.444, allocations: 12 kB / 484.3 MB, free: 5.207 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.301e-05/0.4441, allocations: 42.97 kB / 484.3 MB, free: 5.168 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005465/0.4446, allocations: 345.7 kB / 484.7 MB, free: 4.941 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004998/0.4451, allocations: 334.2 kB / 485 MB, free: 4.695 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.207e-05/0.4452, allocations: 3.75 kB / 485 MB, free: 4.695 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.665e-05/0.4452, allocations: 0 / 485 MB, free: 4.695 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.074e-05/0.4452, allocations: 12 kB / 485 MB, free: 4.684 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001968/0.4472, allocations: 1.315 MB / 486.3 MB, free: 3.66 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000391/0.4476, allocations: 302.2 kB / 486.6 MB, free: 3.457 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004744/0.4481, allocations: 311.6 kB / 486.9 MB, free: 3.238 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.006e-05/0.4482, allocations: 16.59 kB / 487 MB, free: 3.227 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.482e-05/0.4482, allocations: 40.34 kB / 487 MB, free: 3.18 MB / 346.7 MB Notification: Performance of pre-optimization done (n=67): time 1.823e-06/0.4482, allocations: 0 / 487 MB, free: 3.18 MB / 346.7 MB Notification: Performance of matching and sorting (n=103): time 0.003203/0.4514, allocations: 2.193 MB / 489.2 MB, free: 1.359 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.783e-05/0.4514, allocations: 64.41 kB / 489.3 MB, free: 1.285 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001425/0.4516, allocations: 202.4 kB / 489.5 MB, free: 1.109 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.283e-05/0.4516, allocations: 25.7 kB / 489.5 MB, free: 1.078 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.111e-05/0.4517, allocations: 162.8 kB / 489.6 MB, free: 0.9258 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001464/0.4518, allocations: 343.4 kB / 490 MB, free: 0.625 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.75e-05/0.4519, allocations: 4 kB / 490 MB, free: 0.6211 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.999e-05/0.4519, allocations: 356.3 kB / 490.3 MB, free: 292 kB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002977/0.4522, allocations: 208.1 kB / 490.5 MB, free: 172 kB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003601/0.4526, allocations: 276.1 kB / 490.8 MB, free: 15.99 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003717/0.453, allocations: 239.8 kB / 491 MB, free: 15.84 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.453, allocations: 0 / 491 MB, free: 15.84 MB / 362.7 MB Notification: Performance of matching and sorting (n=113) (initialization): time 0.0009541/0.4539, allocations: 0.6231 MB / 491.7 MB, free: 15.38 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.354e-05/0.454, allocations: 9.969 kB / 491.7 MB, free: 15.37 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.704e-06/0.454, allocations: 4 kB / 491.7 MB, free: 15.37 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.621e-05/0.454, allocations: 4 kB / 491.7 MB, free: 15.36 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009034/0.4549, allocations: 227.2 kB / 491.9 MB, free: 15.15 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.506e-05/0.4549, allocations: 4 kB / 491.9 MB, free: 15.14 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003978/0.4553, allocations: 47.97 kB / 491.9 MB, free: 15.1 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.784e-05/0.4554, allocations: 31.05 kB / 492 MB, free: 15.07 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 4 (innerContactA.contact,innerContactB.contact,outerContactA.contact,outerContactB.contact) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (113): * Single equations (assignments): 113 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001433/0.4556, allocations: 123.1 kB / 492.1 MB, free: 14.95 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.811e-05/0.4557, allocations: 47.44 kB / 492.1 MB, free: 14.9 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001477/0.4558, allocations: 60.55 kB / 492.2 MB, free: 14.88 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.16e-05/0.4558, allocations: 13.03 kB / 492.2 MB, free: 14.87 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.107e-05/0.4559, allocations: 1.375 kB / 492.2 MB, free: 14.87 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.953e-05/0.4559, allocations: 11.89 kB / 492.2 MB, free: 14.86 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002536/0.4584, allocations: 1.736 MB / 494 MB, free: 13.43 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.082e-06/0.4584, allocations: 4 kB / 494 MB, free: 13.42 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009328/0.4594, allocations: 223.2 kB / 494.2 MB, free: 13.21 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.755e-05/0.4594, allocations: 12 kB / 494.2 MB, free: 13.2 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.14e-05/0.4595, allocations: 12.94 kB / 494.2 MB, free: 13.19 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.16e-05/0.4595, allocations: 15.92 kB / 494.2 MB, free: 13.18 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.69e-06/0.4595, allocations: 4 kB / 494.2 MB, free: 13.17 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001738/0.4613, allocations: 1.384 MB / 495.6 MB, free: 11.91 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002136/0.4634, allocations: 2.09 MB / 497.7 MB, free: 10.11 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001153/0.4635, allocations: 123.8 kB / 497.8 MB, free: 9.973 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.451e-05/0.4636, allocations: 13.36 kB / 497.8 MB, free: 9.961 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004592/0.4641, allocations: 47.97 kB / 497.9 MB, free: 9.914 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001114/0.4642, allocations: 74.47 kB / 498 MB, free: 9.848 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.203e-05/0.4643, allocations: 26.81 kB / 498 MB, free: 9.828 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0001376/0.4644, allocations: 157 kB / 498.1 MB, free: 9.699 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001234/0.4657, allocations: 124 kB / 498.3 MB, free: 9.578 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 6 (outerContactA.s_rel,outerContactA.v_rel,outerContactB.s_rel,outerContactB.v_rel,friction.s_rel,friction.v_rel) * Number of discrete variables: 4 (innerContactA.contact,innerContactB.contact,outerContactA.contact,outerContactB.contact) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (103): * Single equations (assignments): 103 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001993/0.4659, allocations: 120.8 kB / 498.4 MB, free: 9.457 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0009611/0.4668, allocations: 0.5941 MB / 499 MB, free: 9.043 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.478e-06/0.4668, allocations: 4 kB / 499 MB, free: 9.039 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005605/0.4674, allocations: 379.6 kB / 499.3 MB, free: 8.777 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005817/0.468, allocations: 72.19 kB / 499.4 MB, free: 8.723 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002161/0.4702, allocations: 1.215 MB / 0.4889 GB, free: 7.559 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006253/0.4708, allocations: 0.9493 MB / 0.4898 GB, free: 6.586 MB / 362.7 MB Notification: Performance of SimCode: time 5.11e-07/0.4708, allocations: 4 kB / 0.4898 GB, free: 6.582 MB / 362.7 MB (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.PreLoad.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.PreLoad.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.PreLoad.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.PreLoad.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Translational.Examples.PreLoad_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Translational_Examples_PreLoad_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Translational_Examples_PreLoad.fmu > Modelica_trunk_Modelica.Mechanics.Translational.Examples.PreLoad.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.Translational.Examples.PreLoad_res.mat does not exist to compare? outputFormat=mat