Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.Rotational.ForUsersGuide.Directions2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_Directions2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.Directions2,fileNamePrefix="ModelicaTest_trunk_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 trunk/package.mo): time 0.001461/0.001461, allocations: 204.2 kB / 8.534 MB, free: 464 kB / 6.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.542/1.542, allocations: 225.5 MB / 234.4 MB, free: 9.465 MB / 194.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009928/0.0009928, allocations: 96.17 kB / 286.3 MB, free: 5.832 MB / 226.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2213/0.2213, allocations: 45.14 MB / 383.3 MB, free: 4.867 MB / 322.8 MB Notification: Performance of FrontEnd - loaded program: time 0.204/0.4254, allocations: 69.37 MB / 452.7 MB, free: 48.2 MB / 322.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1094/0.5348, allocations: 63.24 MB / 0.5039 GB, free: 0.8945 MB / 338.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3295/0.8644, allocations: 88.3 MB / 0.5901 GB, free: 15.41 MB / 418.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002094/0.8646, allocations: 71.97 kB / 0.5902 GB, free: 15.34 MB / 418.8 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.01795/0.8826, allocations: 6.576 MB / 0.5966 GB, free: 8.707 MB / 418.8 MB Notification: Performance of prepare preOptimizeDAE: time 3.659e-05/0.8826, allocations: 8 kB / 0.5966 GB, free: 8.699 MB / 418.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002614/0.8829, allocations: 71.5 kB / 0.5967 GB, free: 8.629 MB / 418.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003112/0.8832, allocations: 255.3 kB / 0.5969 GB, free: 8.336 MB / 418.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.871e-05/0.8833, allocations: 12 kB / 0.5969 GB, free: 8.324 MB / 418.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.9e-05/0.8833, allocations: 31.89 kB / 0.5969 GB, free: 8.293 MB / 418.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00033/0.8837, allocations: 165.5 kB / 0.5971 GB, free: 8.133 MB / 418.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004938/0.8842, allocations: 325.7 kB / 0.5974 GB, free: 7.781 MB / 418.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.244e-05/0.8842, allocations: 0 / 0.5974 GB, free: 7.781 MB / 418.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.766e-05/0.8842, allocations: 7.906 kB / 0.5974 GB, free: 7.773 MB / 418.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.321e-05/0.8843, allocations: 8 kB / 0.5974 GB, free: 7.766 MB / 418.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002329/0.8866, allocations: 1.649 MB / 0.599 GB, free: 6.02 MB / 418.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003148/0.8869, allocations: 199 kB / 0.5992 GB, free: 5.773 MB / 418.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001232/0.8871, allocations: 78.12 kB / 0.5993 GB, free: 5.676 MB / 418.8 MB Notification: Performance of preOpt evalFunc (simulation): time 2.512e-05/0.8871, allocations: 10.62 kB / 0.5993 GB, free: 5.668 MB / 418.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.039e-05/0.8871, allocations: 42.5 kB / 0.5993 GB, free: 5.617 MB / 418.8 MB Notification: Performance of pre-optimization done (n=26): time 1.733e-06/0.8871, allocations: 0 / 0.5993 GB, free: 5.617 MB / 418.8 MB Notification: Performance of matching and sorting (n=26): time 0.0004895/0.8876, allocations: 169.1 kB / 0.5995 GB, free: 5.445 MB / 418.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001177/0.8878, allocations: 209.7 kB / 0.5997 GB, free: 5.191 MB / 418.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002273/0.888, allocations: 212.9 kB / 0.5999 GB, free: 4.969 MB / 418.8 MB Notification: Performance of collectPreVariables (initialization): time 2.281e-05/0.888, allocations: 25.7 kB / 0.5999 GB, free: 4.938 MB / 418.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001765/0.8882, allocations: 227.2 kB / 0.6002 GB, free: 4.711 MB / 418.8 MB Notification: Performance of collectInitialBindings (initialization): time 8.302e-05/0.8883, allocations: 118.3 kB / 0.6003 GB, free: 4.594 MB / 418.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.292e-05/0.8883, allocations: 0 / 0.6003 GB, free: 4.594 MB / 418.8 MB Notification: Performance of setup shared object (initialization): time 0.0001677/0.8885, allocations: 342.8 kB / 0.6006 GB, free: 4.25 MB / 418.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001344/0.8886, allocations: 69.31 kB / 0.6007 GB, free: 4.184 MB / 418.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004068/0.889, allocations: 399.6 kB / 0.601 GB, free: 3.637 MB / 418.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002238/0.8893, allocations: 147.9 kB / 0.6012 GB, free: 3.492 MB / 418.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.781e-06/0.8893, allocations: 4 kB / 0.6012 GB, free: 3.488 MB / 418.8 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.000701/0.89, allocations: 429.5 kB / 0.6016 GB, free: 3.062 MB / 418.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.733e-05/0.89, allocations: 4 kB / 0.6016 GB, free: 3.059 MB / 418.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.476e-05/0.89, allocations: 12.12 kB / 0.6016 GB, free: 3.047 MB / 418.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.935e-05/0.8901, allocations: 20 kB / 0.6016 GB, free: 3.027 MB / 418.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005012/0.8906, allocations: 151.7 kB / 0.6018 GB, free: 2.879 MB / 418.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.615e-05/0.8906, allocations: 19.94 kB / 0.6018 GB, free: 2.859 MB / 418.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002859/0.8909, allocations: 59.58 kB / 0.6018 GB, free: 2.801 MB / 418.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.66e-05/0.891, allocations: 32 kB / 0.6019 GB, free: 2.77 MB / 418.8 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.0001113/0.8911, allocations: 132.1 kB / 0.602 GB, free: 2.637 MB / 418.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001623/0.8912, allocations: 35.56 kB / 0.602 GB, free: 2.602 MB / 418.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.119e-05/0.8913, allocations: 29.7 kB / 0.6021 GB, free: 2.57 MB / 418.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.412e-06/0.8913, allocations: 8 kB / 0.6021 GB, free: 2.562 MB / 418.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.778e-06/0.8913, allocations: 0 / 0.6021 GB, free: 2.562 MB / 418.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.024e-05/0.8914, allocations: 11.92 kB / 0.6021 GB, free: 2.551 MB / 418.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001126/0.8925, allocations: 0.5779 MB / 0.6027 GB, free: 1.918 MB / 418.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.448e-06/0.8925, allocations: 4 kB / 0.6027 GB, free: 1.914 MB / 418.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004817/0.893, allocations: 91.88 kB / 0.6027 GB, free: 1.82 MB / 418.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.901e-06/0.893, allocations: 4.062 kB / 0.6027 GB, free: 1.816 MB / 418.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.456e-05/0.893, allocations: 12 kB / 0.6028 GB, free: 1.805 MB / 418.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.891e-06/0.8931, allocations: 11.92 kB / 0.6028 GB, free: 1.793 MB / 418.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.158e-06/0.8931, allocations: 3.906 kB / 0.6028 GB, free: 1.789 MB / 418.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006631/0.8937, allocations: 0.8716 MB / 0.6036 GB, free: 0.8398 MB / 418.8 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0009605/0.8947, allocations: 1.304 MB / 0.6049 GB, free: 15.46 MB / 434.8 MB Notification: Performance of postOpt removeConstants (simulation): time 8.961e-05/0.8948, allocations: 100.8 kB / 0.605 GB, free: 15.34 MB / 434.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.883e-05/0.8949, allocations: 4 kB / 0.605 GB, free: 15.34 MB / 434.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003634/0.8952, allocations: 12.11 kB / 0.605 GB, free: 15.32 MB / 434.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.322e-05/0.8953, allocations: 27.88 kB / 0.605 GB, free: 15.3 MB / 434.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.595e-05/0.8953, allocations: 12 kB / 0.605 GB, free: 15.29 MB / 434.8 MB Notification: Performance of sort global known variables: time 0.0001496/0.8955, allocations: 153.2 kB / 0.6052 GB, free: 15.13 MB / 434.8 MB Notification: Performance of remove unused functions: time 0.001402/0.8969, allocations: 99.69 kB / 0.6053 GB, free: 15.03 MB / 434.8 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.0001875/0.8971, allocations: 107.2 kB / 0.6054 GB, free: 14.92 MB / 434.8 MB Notification: Performance of simCode: created initialization part: time 0.0004265/0.8975, allocations: 237.4 kB / 0.6056 GB, free: 14.69 MB / 434.8 MB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.8975, allocations: 0 / 0.6056 GB, free: 14.69 MB / 434.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0001108/0.8977, allocations: 72.05 kB / 0.6057 GB, free: 14.62 MB / 434.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006707/0.8983, allocations: 61.03 kB / 0.6057 GB, free: 14.56 MB / 434.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002569/0.9009, allocations: 1.468 MB / 0.6072 GB, free: 13.05 MB / 434.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005678/0.9015, allocations: 0.8552 MB / 0.608 GB, free: 12.16 MB / 434.8 MB Notification: Performance of SimCode: time 8.92e-07/0.9015, allocations: 3.938 kB / 0.608 GB, free: 12.16 MB / 434.8 MB (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_Directions2_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_Directions2.fmu > ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.mat does not exist to compare? outputFormat=mat