Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Backlash.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.Rotational.Examples.Backlash,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_Backlash",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.Backlash,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_Backlash",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.001957/0.001957, allocations: 203.1 kB / 8.534 MB, free: 1.762 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.338/1.338, allocations: 225.5 MB / 234.4 MB, free: 3.445 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009568/0.0009568, allocations: 99.8 kB / 286.3 MB, free: 5.215 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1203/0.1213, allocations: 56.89 MB / 343.2 MB, free: 8.688 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1017/0.223, allocations: 51.48 MB / 394.7 MB, free: 5.152 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2585/0.4816, allocations: 78.93 MB / 473.6 MB, free: 13.02 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00018/0.4818, allocations: 64.52 kB / 473.7 MB, free: 13 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: 62 * Number of variables: 62 Notification: Performance of Generate backend data structure: time 0.02157/0.5034, allocations: 8.165 MB / 481.9 MB, free: 7.406 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.682e-05/0.5034, allocations: 8 kB / 481.9 MB, free: 7.398 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.117e-05/0.5035, allocations: 35.62 kB / 481.9 MB, free: 7.363 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002806/0.5038, allocations: 251.1 kB / 482.1 MB, free: 7.098 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000338/0.5042, allocations: 130.5 kB / 482.3 MB, free: 6.961 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.646e-05/0.5042, allocations: 12 kB / 482.3 MB, free: 6.949 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004552/0.5047, allocations: 256.5 kB / 482.5 MB, free: 6.789 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004112/0.5051, allocations: 276 kB / 482.8 MB, free: 6.574 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.003e-05/0.5051, allocations: 4.656 kB / 482.8 MB, free: 6.57 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.232e-05/0.5052, allocations: 5.438 kB / 482.8 MB, free: 6.566 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.885e-06/0.5052, allocations: 8 kB / 482.8 MB, free: 6.559 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001142/0.5064, allocations: 0.9142 MB / 483.7 MB, free: 5.777 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003923/0.5068, allocations: 272.2 kB / 484 MB, free: 5.582 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002222/0.507, allocations: 144.7 kB / 484.1 MB, free: 5.48 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.578e-05/0.507, allocations: 4 kB / 484.1 MB, free: 5.477 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.056e-05/0.5071, allocations: 46.36 kB / 484.2 MB, free: 5.426 MB / 346.7 MB Notification: Performance of pre-optimization done (n=32): time 1.793e-06/0.5071, allocations: 0 / 484.2 MB, free: 5.426 MB / 346.7 MB Notification: Performance of matching and sorting (n=38): time 0.001989/0.5091, allocations: 1.739 MB / 485.9 MB, free: 3.625 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.388e-05/0.5091, allocations: 120.6 kB / 486.1 MB, free: 3.484 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001315/0.5093, allocations: 151.3 kB / 486.2 MB, free: 3.348 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.638e-05/0.5093, allocations: 29.7 kB / 486.2 MB, free: 3.312 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.613e-05/0.5093, allocations: 136.6 kB / 486.4 MB, free: 3.184 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.548e-05/0.5094, allocations: 134.2 kB / 486.5 MB, free: 3.066 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.2e-05/0.5094, allocations: 0 / 486.5 MB, free: 3.066 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 7.677e-05/0.5095, allocations: 333.1 kB / 486.8 MB, free: 2.742 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001999/0.5097, allocations: 113.4 kB / 486.9 MB, free: 2.676 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002148/0.51, allocations: 172.3 kB / 487.1 MB, free: 2.543 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001839/0.5101, allocations: 108.7 kB / 487.2 MB, free: 2.477 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.5102, allocations: 0 / 487.2 MB, free: 2.477 MB / 346.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0005275/0.5107, allocations: 346.4 kB / 487.5 MB, free: 2.223 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.538e-05/0.5107, allocations: 7.906 kB / 487.5 MB, free: 2.215 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.364e-06/0.5107, allocations: 0 / 487.5 MB, free: 2.215 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.534e-05/0.5107, allocations: 4 kB / 487.6 MB, free: 2.211 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007335/0.5115, allocations: 175.9 kB / 487.7 MB, free: 2.039 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.325e-05/0.5115, allocations: 4 kB / 487.7 MB, free: 2.035 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002422/0.5118, allocations: 32.84 kB / 487.8 MB, free: 2.008 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.214e-05/0.5118, allocations: 11.94 kB / 487.8 MB, free: 1.996 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 47 * 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 9.583e-05/0.5119, allocations: 112.3 kB / 487.9 MB, free: 1.883 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001047/0.512, allocations: 25.88 kB / 487.9 MB, free: 1.859 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.166e-05/0.5121, allocations: 30.45 kB / 487.9 MB, free: 1.844 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.923e-06/0.5121, allocations: 7.906 kB / 487.9 MB, free: 1.836 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.035e-05/0.5121, allocations: 4 kB / 487.9 MB, free: 1.832 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.935e-06/0.5121, allocations: 0 / 487.9 MB, free: 1.832 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001352/0.5135, allocations: 1.136 MB / 489.1 MB, free: 0.8164 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.209e-06/0.5135, allocations: 4 kB / 489.1 MB, free: 0.8125 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009219/0.5144, allocations: 226.9 kB / 489.3 MB, free: 0.5938 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.012e-05/0.5144, allocations: 4 kB / 489.3 MB, free: 0.5898 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.957e-05/0.5145, allocations: 11.55 kB / 489.3 MB, free: 0.582 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.821e-06/0.5145, allocations: 5.375 kB / 489.3 MB, free: 0.5781 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.338e-06/0.5145, allocations: 2.891 kB / 489.3 MB, free: 0.5781 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008202/0.5153, allocations: 0.8112 MB / 490.1 MB, free: 15.82 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001185/0.5165, allocations: 1.321 MB / 491.5 MB, free: 14.62 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001487/0.5167, allocations: 127.7 kB / 491.6 MB, free: 14.5 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.728e-05/0.5168, allocations: 3.984 kB / 491.6 MB, free: 14.49 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004994/0.5173, allocations: 63.95 kB / 491.7 MB, free: 14.43 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000105/0.5174, allocations: 35.81 kB / 491.7 MB, free: 14.4 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.093e-05/0.5174, allocations: 15.81 kB / 491.7 MB, free: 14.39 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0001047/0.5175, allocations: 135 kB / 491.8 MB, free: 14.27 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001029/0.5186, allocations: 71.91 kB / 491.9 MB, free: 14.2 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 6 (elastoBacklash2.phi_rel,elastoBacklash2.w_rel,elastoBacklash.phi_rel,elastoBacklash.w_rel,springDamper.phi_rel,springDamper.w_rel) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 38 * 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.0001399/0.5187, allocations: 100.9 kB / 492 MB, free: 14.09 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004177/0.5191, allocations: 242.4 kB / 492.2 MB, free: 13.93 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.5192, allocations: 0 / 492.2 MB, free: 13.93 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002673/0.5194, allocations: 169.5 kB / 492.4 MB, free: 13.81 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000501/0.5199, allocations: 45.81 kB / 492.5 MB, free: 13.78 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004734/0.5247, allocations: 1.372 MB / 493.8 MB, free: 12.43 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005719/0.5253, allocations: 0.8215 MB / 494.6 MB, free: 11.58 MB / 362.7 MB Notification: Performance of SimCode: time 4.71e-07/0.5253, allocations: 0 / 494.6 MB, free: 11.58 MB / 362.7 MB (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Backlash.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Backlash.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Backlash.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Backlash.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Backlash_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Rotational_Examples_Backlash_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Rotational_Examples_Backlash.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Backlash.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Backlash_res.mat does not exist to compare? outputFormat=mat