Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.conf.json 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 4.0.0+maint.om/package.mo", uses=false) 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/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) Running command: "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.Directions2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_Directions2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.Directions2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_Directions2",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 4.0.0+maint.om/package.mo): time 0.001161/0.001161, allocations: 170.6 kB / 8.513 MB, free: 1.848 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.349/1.349, allocations: 221.4 MB / 230.3 MB, free: 7.758 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008864/0.0008864, allocations: 88.72 kB / 281.2 MB, free: 5.512 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2283/0.2283, allocations: 44.14 MB / 376.1 MB, free: 3.238 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2978/0.5261, allocations: 68.03 MB / 444.1 MB, free: 15.54 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1346/0.6607, allocations: 61.91 MB / 0.4942 GB, free: 1.555 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3828/1.044, allocations: 87.24 MB / 0.5794 GB, free: 9.488 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003091/1.044, allocations: 70.77 kB / 0.5794 GB, free: 9.441 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 93 * Number of variables: 93 Notification: Performance of Generate backend data structure: time 0.01824/1.062, allocations: 6.493 MB / 0.5858 GB, free: 2.898 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.674e-05/1.062, allocations: 11.94 kB / 0.5858 GB, free: 2.887 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001202/1.062, allocations: 39.53 kB / 0.5858 GB, free: 2.848 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003508/1.063, allocations: 263.2 kB / 0.5861 GB, free: 2.547 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.203e-05/1.063, allocations: 12 kB / 0.5861 GB, free: 2.535 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.243e-05/1.063, allocations: 28.75 kB / 0.5861 GB, free: 2.508 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003624/1.063, allocations: 165.4 kB / 0.5863 GB, free: 2.348 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005441/1.064, allocations: 317.8 kB / 0.5866 GB, free: 2.004 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.4e-05/1.064, allocations: 4 kB / 0.5866 GB, free: 2 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.878e-05/1.064, allocations: 0 / 0.5866 GB, free: 2 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.332e-05/1.064, allocations: 15.89 kB / 0.5866 GB, free: 1.984 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002204/1.066, allocations: 1.641 MB / 0.5882 GB, free: 256 kB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003182/1.066, allocations: 206.9 kB / 0.5884 GB, free: 16 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001055/1.067, allocations: 78.14 kB / 0.5885 GB, free: 15.9 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.501e-05/1.067, allocations: 3.938 kB / 0.5885 GB, free: 15.89 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.67e-05/1.067, allocations: 46.55 kB / 0.5885 GB, free: 15.84 MB / 410.7 MB Notification: Performance of pre-optimization done (n=26): time 1.553e-06/1.067, allocations: 0 / 0.5885 GB, free: 15.84 MB / 410.7 MB Notification: Performance of matching and sorting (n=26): time 0.0004498/1.067, allocations: 169.1 kB / 0.5887 GB, free: 15.67 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.376e-05/1.067, allocations: 213.6 kB / 0.5889 GB, free: 15.41 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001849/1.067, allocations: 213 kB / 0.5891 GB, free: 15.2 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.976e-05/1.067, allocations: 25.7 kB / 0.5891 GB, free: 15.16 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001124/1.068, allocations: 230 kB / 0.5893 GB, free: 14.94 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.806e-05/1.068, allocations: 114.5 kB / 0.5894 GB, free: 14.82 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.227e-05/1.068, allocations: 0 / 0.5894 GB, free: 14.82 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001184/1.068, allocations: 338.8 kB / 0.5898 GB, free: 14.48 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001402/1.068, allocations: 73.31 kB / 0.5898 GB, free: 14.41 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003216/1.068, allocations: 399.6 kB / 0.5902 GB, free: 13.86 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002214/1.068, allocations: 143.8 kB / 0.5904 GB, free: 13.71 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.873e-06/1.069, allocations: 4 kB / 0.5904 GB, free: 13.71 MB / 410.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0007063/1.069, allocations: 421.6 kB / 0.5908 GB, free: 13.29 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.592e-05/1.069, allocations: 12.2 kB / 0.5908 GB, free: 13.28 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.503e-05/1.069, allocations: 12 kB / 0.5908 GB, free: 13.27 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.725e-05/1.069, allocations: 20 kB / 0.5908 GB, free: 13.25 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004586/1.07, allocations: 147.8 kB / 0.5909 GB, free: 13.11 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.098e-05/1.07, allocations: 23.86 kB / 0.591 GB, free: 13.08 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003125/1.07, allocations: 55.66 kB / 0.591 GB, free: 13.03 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.588e-05/1.07, allocations: 39.98 kB / 0.5911 GB, free: 12.99 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (71): * Single equations (assignments): 71 * 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.0001112/1.07, allocations: 132.7 kB / 0.5912 GB, free: 12.85 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001802/1.07, allocations: 31.62 kB / 0.5912 GB, free: 12.82 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.607e-05/1.071, allocations: 33.81 kB / 0.5912 GB, free: 12.79 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.41e-06/1.071, allocations: 4 kB / 0.5912 GB, free: 12.79 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.023e-05/1.071, allocations: 4 kB / 0.5912 GB, free: 12.78 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.045e-06/1.071, allocations: 4 kB / 0.5913 GB, free: 12.78 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001209/1.072, allocations: 0.5857 MB / 0.5918 GB, free: 12.14 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.678e-06/1.072, allocations: 0 / 0.5918 GB, free: 12.14 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004981/1.072, allocations: 95.88 kB / 0.5919 GB, free: 12.05 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.193e-05/1.072, allocations: 4 kB / 0.5919 GB, free: 12.04 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.157e-05/1.072, allocations: 11.83 kB / 0.5919 GB, free: 12.04 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.907e-06/1.072, allocations: 7.938 kB / 0.5919 GB, free: 12.03 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.527e-06/1.072, allocations: 4.062 kB / 0.5919 GB, free: 12.02 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006918/1.073, allocations: 0.8785 MB / 0.5928 GB, free: 11.06 MB / 410.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0007156/1.074, allocations: 1.289 MB / 0.5941 GB, free: 9.695 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.75e-05/1.074, allocations: 108.7 kB / 0.5942 GB, free: 9.57 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.036e-05/1.074, allocations: 4 kB / 0.5942 GB, free: 9.566 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003763/1.074, allocations: 11.94 kB / 0.5942 GB, free: 9.555 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.871e-05/1.074, allocations: 27.81 kB / 0.5942 GB, free: 9.527 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.688e-05/1.075, allocations: 11.98 kB / 0.5942 GB, free: 9.516 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.0001638/1.075, allocations: 157.2 kB / 0.5944 GB, free: 9.363 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001413/1.076, allocations: 95.69 kB / 0.5945 GB, free: 9.266 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 18 (inertia5.phi,inertia5.w,inertia6.phi,inertia6.w,inertia3.phi,inertia3.w,inertia4.phi,inertia4.w,inertia2.phi,inertia2.w,inertia1.phi,inertia1.w,J6.phi,J6.w,J4.phi,J4.w,J2.phi,J2.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 26 * 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.0002145/1.076, allocations: 104 kB / 0.5946 GB, free: 9.156 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.000494/1.077, allocations: 230.4 kB / 0.5948 GB, free: 8.934 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/1.077, allocations: 0 / 0.5948 GB, free: 8.934 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001167/1.077, allocations: 75.86 kB / 0.5948 GB, free: 8.859 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00067/1.078, allocations: 54.67 kB / 0.5949 GB, free: 8.805 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002214/1.08, allocations: 1.465 MB / 0.5963 GB, free: 7.297 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005823/1.08, allocations: 0.8669 MB / 0.5972 GB, free: 6.398 MB / 410.7 MB Notification: Performance of SimCode: time 2.71e-07/1.08, allocations: 0 / 0.5972 GB, free: 6.398 MB / 410.7 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_Directions2_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_Directions2.fmu > ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.mat does not exist to compare? outputFormat=mat