Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions3.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.Directions3,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Rotational_ForUsersGuide_Directions3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.Directions3,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Rotational_ForUsersGuide_Directions3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001155/0.001155, allocations: 198.1 kB / 16.1 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.279/1.279, allocations: 226.5 MB / 243.4 MB, free: 8.25 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008221/0.0008223, allocations: 99.89 kB / 295.5 MB, free: 6.887 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3047/0.3047, allocations: 44.83 MB / 392.3 MB, free: 35.68 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002708/0.0002709, allocations: 8 kB / 465.4 MB, free: 12.54 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3009/0.3012, allocations: 62.96 MB / 0.516 GB, free: 37.02 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions3): time 0.001342/0.3025, allocations: 1.348 MB / 0.5173 GB, free: 36.03 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002018/0.3028, allocations: 112.5 kB / 0.5174 GB, free: 35.95 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.92e-05/0.3028, allocations: 2.969 kB / 0.5174 GB, free: 35.95 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 2.562e-05/0.3029, allocations: 7.219 kB / 0.5174 GB, free: 35.95 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 8.657e-05/0.303, allocations: 33.02 kB / 0.5174 GB, free: 35.92 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001023/0.3031, allocations: 18.42 kB / 0.5174 GB, free: 35.91 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001064/0.3032, allocations: 113.3 kB / 0.5175 GB, free: 35.86 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001204/0.3033, allocations: 32.09 kB / 0.5176 GB, free: 35.84 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.757e-05/0.3034, allocations: 48.62 kB / 0.5176 GB, free: 35.82 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.505e-05/0.3034, allocations: 41.42 kB / 0.5177 GB, free: 35.8 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.815e-05/0.3035, allocations: 5.969 kB / 0.5177 GB, free: 35.8 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.952e-05/0.3035, allocations: 5.906 kB / 0.5177 GB, free: 35.8 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 1.645e-05/0.3035, allocations: 18.06 kB / 0.5177 GB, free: 35.79 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 5.403e-05/0.3036, allocations: 76.92 kB / 0.5178 GB, free: 35.73 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 9.092e-05/0.3037, allocations: 101.5 kB / 0.5179 GB, free: 35.7 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.001e-06/0.3037, allocations: 0 / 0.5179 GB, free: 35.7 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.783e-06/0.3037, allocations: 0 / 0.5179 GB, free: 35.7 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.809e-06/0.3037, allocations: 0 / 0.5179 GB, free: 35.7 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0003776/0.3041, allocations: 379 kB / 0.5182 GB, free: 35.31 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.863e-05/0.3041, allocations: 13.03 kB / 0.5182 GB, free: 35.31 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.237e-05/0.3042, allocations: 41.62 kB / 0.5183 GB, free: 35.26 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.841e-05/0.3042, allocations: 10.69 kB / 0.5183 GB, free: 35.26 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001234/0.3043, allocations: 201.6 kB / 0.5185 GB, free: 35.04 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.135e-06/0.3043, allocations: 11.52 kB / 0.5185 GB, free: 35.04 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.706e-05/0.3044, allocations: 12.94 kB / 0.5185 GB, free: 35.03 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001807/0.3046, allocations: 127 kB / 0.5186 GB, free: 34.95 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.356e-05/0.3046, allocations: 3.938 kB / 0.5186 GB, free: 34.95 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.22e-05/0.3046, allocations: 7.031 kB / 0.5186 GB, free: 34.95 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.5e-06/0.3046, allocations: 2.812 kB / 0.5186 GB, free: 34.95 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.768e-05/0.3047, allocations: 58.12 kB / 0.5187 GB, free: 34.93 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000559/0.3053, allocations: 0.553 MB / 0.5192 GB, free: 34.45 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001022/0.3054, allocations: 93.64 kB / 0.5193 GB, free: 34.38 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.403e-05/0.3054, allocations: 30.22 kB / 0.5193 GB, free: 34.35 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.209e-05/0.3055, allocations: 0 / 0.5193 GB, free: 34.35 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.622e-05/0.3055, allocations: 40.55 kB / 0.5194 GB, free: 34.3 MB / 378.7 MB Notification: Performance of pre-optimization done (n=8): time 8.72e-07/0.3055, allocations: 0 / 0.5194 GB, free: 34.3 MB / 378.7 MB Notification: Performance of matching and sorting (n=8): time 0.0004766/0.306, allocations: 298.7 kB / 0.5197 GB, free: 34.04 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.947e-05/0.306, allocations: 80.39 kB / 0.5197 GB, free: 33.95 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.913e-05/0.3061, allocations: 118.2 kB / 0.5199 GB, free: 33.84 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.566e-06/0.3061, allocations: 32.42 kB / 0.5199 GB, free: 33.8 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.862e-05/0.3061, allocations: 112.2 kB / 0.52 GB, free: 33.7 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.101e-05/0.3062, allocations: 37.39 kB / 0.52 GB, free: 33.67 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.529e-06/0.3062, allocations: 8 kB / 0.52 GB, free: 33.66 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.699e-05/0.3062, allocations: 325 kB / 0.5204 GB, free: 33.34 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.355e-05/0.3063, allocations: 26.3 kB / 0.5204 GB, free: 33.33 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.108e-05/0.3063, allocations: 86.88 kB / 0.5205 GB, free: 33.24 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.714e-05/0.3064, allocations: 123.7 kB / 0.5206 GB, free: 33.12 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.3064, allocations: 6.75 kB / 0.5206 GB, free: 33.12 MB / 378.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002207/0.3067, allocations: 167.9 kB / 0.5207 GB, free: 33.02 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.484e-05/0.3067, allocations: 9.938 kB / 0.5208 GB, free: 33.02 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.244e-06/0.3067, allocations: 6.906 kB / 0.5208 GB, free: 33.01 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001508/0.3068, allocations: 37.89 kB / 0.5208 GB, free: 32.99 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.641e-05/0.3069, allocations: 24.98 kB / 0.5208 GB, free: 32.98 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001175/0.3081, allocations: 2.538 MB / 0.5233 GB, free: 30.37 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.745e-05/0.3082, allocations: 10.97 kB / 0.5233 GB, free: 30.36 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.956e-06/0.3082, allocations: 8.953 kB / 0.5233 GB, free: 30.36 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 12 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.263e-05/0.3083, allocations: 123.7 kB / 0.5234 GB, free: 30.23 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.093e-05/0.3083, allocations: 9.688 kB / 0.5234 GB, free: 30.23 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.123e-05/0.3084, allocations: 7.906 kB / 0.5235 GB, free: 30.22 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.3084, allocations: 3 kB / 0.5235 GB, free: 30.22 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.135e-06/0.3084, allocations: 0 / 0.5235 GB, free: 30.22 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.977e-06/0.3084, allocations: 10.17 kB / 0.5235 GB, free: 30.21 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001878/0.3086, allocations: 200.5 kB / 0.5237 GB, free: 30 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.894e-06/0.3086, allocations: 0 / 0.5237 GB, free: 30 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.34e-05/0.3087, allocations: 15.34 kB / 0.5237 GB, free: 30 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.59e-05/0.3088, allocations: 31.73 kB / 0.5237 GB, free: 29.98 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.959e-06/0.3088, allocations: 7.031 kB / 0.5237 GB, free: 29.98 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001093/0.3099, allocations: 2.541 MB / 0.5262 GB, free: 27.35 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/0.3099, allocations: 3.188 kB / 0.5262 GB, free: 27.35 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002123/0.3101, allocations: 306.8 kB / 0.5265 GB, free: 27.09 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.096e-05/0.3101, allocations: 88.11 kB / 0.5266 GB, free: 26.99 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.194e-05/0.3102, allocations: 0 / 0.5266 GB, free: 26.99 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.515e-05/0.3103, allocations: 0 / 0.5266 GB, free: 26.99 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.021e-05/0.3103, allocations: 16.53 kB / 0.5266 GB, free: 26.98 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.43e-06/0.3103, allocations: 2.875 kB / 0.5266 GB, free: 26.98 MB / 378.7 MB Notification: Performance of sorting global known variables: time 3.211e-05/0.3103, allocations: 90.78 kB / 0.5267 GB, free: 26.9 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3103, allocations: 0 / 0.5267 GB, free: 26.9 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003257/0.3107, allocations: 39.06 kB / 0.5267 GB, free: 26.89 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (J1.w,J2.phi,J3.w,J4.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 4 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003576/0.311, allocations: 0.8317 MB / 0.5275 GB, free: 26.1 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0003336/0.3114, allocations: 305.1 kB / 0.5278 GB, free: 25.84 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.3114, allocations: 0 / 0.5278 GB, free: 25.84 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001863/0.3116, allocations: 251.8 kB / 0.5281 GB, free: 25.61 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004098/0.312, allocations: 21.66 kB / 0.5281 GB, free: 25.61 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001138/0.3132, allocations: 1.051 MB / 0.5291 GB, free: 24.77 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001438/0.3133, allocations: 0.7129 MB / 0.5298 GB, free: 24.06 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.098e-05/0.3134, allocations: 32.77 kB / 0.5298 GB, free: 24.04 MB / 378.7 MB Notification: Performance of SimCode: time 3.81e-07/0.3134, allocations: 3.938 kB / 0.5298 GB, free: 24.04 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.303/3.617, allocations: 2.821 MB / 0.5326 GB, free: 23.83 MB / 378.7 MB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions3_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_Rotational_ForUsersGuide_Directions3_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_Rotational_ForUsersGuide_Directions3.fmu > ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions3.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/Directions3/Directions3.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches