Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008332/0.0008331, allocations: 170.7 kB / 16.72 MB, free: 5.055 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.177/1.177, allocations: 205.4 MB / 222.9 MB, free: 9.012 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000664/0.000664, allocations: 85.42 kB / 271.2 MB, free: 8.242 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002839/0.0002841, allocations: 8 kB / 327.6 MB, free: 15.79 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1979/0.1982, allocations: 47.58 MB / 375.2 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.00379/0.202, allocations: 4.657 MB / 379.8 MB, free: 41.77 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002528/0.2046, allocations: 1.965 MB / 381.8 MB, free: 40.17 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006592/0.2053, allocations: 36.09 kB / 381.8 MB, free: 40.15 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003042/0.2056, allocations: 140.3 kB / 382 MB, free: 40.04 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002983/0.2059, allocations: 148.1 kB / 382.1 MB, free: 39.91 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000611/0.2065, allocations: 246 kB / 382.4 MB, free: 39.72 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007111/0.2072, allocations: 0.9309 MB / 383.3 MB, free: 39.16 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006476/0.2079, allocations: 0.533 MB / 383.8 MB, free: 38.82 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002773/0.2082, allocations: 232.2 kB / 384.1 MB, free: 38.7 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002359/0.2084, allocations: 259.4 kB / 384.3 MB, free: 38.53 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.866e-05/0.2085, allocations: 31.34 kB / 384.3 MB, free: 38.53 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000197/0.2087, allocations: 92.19 kB / 384.4 MB, free: 38.5 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.917e-05/0.2088, allocations: 125.5 kB / 384.6 MB, free: 38.41 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002313/0.2091, allocations: 354.5 kB / 384.9 MB, free: 38.16 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005633/0.2096, allocations: 0.8808 MB / 385.8 MB, free: 37.48 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.2096, allocations: 0 / 385.8 MB, free: 37.48 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.2096, allocations: 4.938 kB / 385.8 MB, free: 37.47 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.276e-05/0.2097, allocations: 0 / 385.8 MB, free: 37.47 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 214 * Number of variables: 214 Notification: Performance of Generate backend data structure: time 0.0009809/0.2106, allocations: 0.8816 MB / 386.7 MB, free: 36.73 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.548e-05/0.2107, allocations: 10.19 kB / 386.7 MB, free: 36.73 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001109/0.2108, allocations: 131.1 kB / 386.8 MB, free: 36.62 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000117/0.2109, allocations: 91.25 kB / 386.9 MB, free: 36.58 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005259/0.2115, allocations: 0.4973 MB / 387.4 MB, free: 36.13 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.022e-05/0.2115, allocations: 68.09 kB / 387.5 MB, free: 36.1 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000113/0.2116, allocations: 88.97 kB / 387.5 MB, free: 36.07 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001156/0.2128, allocations: 0.8005 MB / 388.3 MB, free: 35.34 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.901e-05/0.2128, allocations: 4 kB / 388.4 MB, free: 35.34 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.841e-05/0.2129, allocations: 36 kB / 388.4 MB, free: 35.3 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.248e-05/0.2129, allocations: 20 kB / 388.4 MB, free: 35.28 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007661/0.2137, allocations: 0.4957 MB / 388.9 MB, free: 34.79 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002297/0.216, allocations: 2.903 MB / 391.8 MB, free: 31.75 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004359/0.2164, allocations: 223.2 kB / 392 MB, free: 31.53 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001435/0.2166, allocations: 100.8 kB / 392.1 MB, free: 31.43 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001921/0.2168, allocations: 255.3 kB / 392.4 MB, free: 31.12 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.745e-05/0.2168, allocations: 30.56 kB / 392.4 MB, free: 31.08 MB / 298.7 MB Notification: Performance of pre-optimization done (n=30): time 2.134e-06/0.2168, allocations: 0 / 392.4 MB, free: 31.08 MB / 298.7 MB Notification: Performance of matching and sorting (n=35): time 0.001865/0.2187, allocations: 1.27 MB / 393.7 MB, free: 29.72 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.095e-05/0.2187, allocations: 55.41 kB / 393.7 MB, free: 29.65 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002216/0.219, allocations: 304.5 kB / 394 MB, free: 29.34 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.502e-05/0.219, allocations: 29.7 kB / 394.1 MB, free: 29.31 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001288/0.2191, allocations: 402.6 kB / 394.4 MB, free: 28.91 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.619e-05/0.2192, allocations: 130.1 kB / 394.6 MB, free: 28.78 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.45e-05/0.2192, allocations: 11.94 kB / 394.6 MB, free: 28.77 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.171e-05/0.2193, allocations: 354.7 kB / 394.9 MB, free: 28.41 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001626/0.2194, allocations: 109.1 kB / 395 MB, free: 28.31 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000202/0.2197, allocations: 254.5 kB / 395.3 MB, free: 28 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003826/0.22, allocations: 388.6 kB / 395.7 MB, free: 27.55 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.2201, allocations: 0 / 395.7 MB, free: 27.55 MB / 298.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0005438/0.2206, allocations: 464.9 kB / 396.1 MB, free: 27.09 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.528e-05/0.2206, allocations: 8 kB / 396.1 MB, free: 27.08 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.963e-06/0.2206, allocations: 4 kB / 396.1 MB, free: 27.08 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001612/0.2208, allocations: 37.44 kB / 396.2 MB, free: 27.04 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002925/0.2211, allocations: 119.8 kB / 396.3 MB, free: 26.92 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002392/0.2214, allocations: 0.5639 MB / 396.8 MB, free: 26.33 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001628/0.2215, allocations: 16 kB / 396.9 MB, free: 26.32 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.392e-05/0.2216, allocations: 24 kB / 396.9 MB, free: 26.29 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * 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 (60): * Single equations (assignments): 59 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0002214/0.2218, allocations: 222.6 kB / 397.1 MB, free: 26.07 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.615e-05/0.2219, allocations: 39.47 kB / 397.1 MB, free: 26.03 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004773/0.2223, allocations: 322.1 kB / 397.5 MB, free: 25.7 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.138e-06/0.2224, allocations: 4 kB / 397.5 MB, free: 25.7 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.028e-06/0.2224, allocations: 0 / 397.5 MB, free: 25.7 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.4e-06/0.2224, allocations: 7.984 kB / 397.5 MB, free: 25.69 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001028/0.2234, allocations: 1.022 MB / 398.5 MB, free: 24.59 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/0.2234, allocations: 0 / 398.5 MB, free: 24.59 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003155/0.2237, allocations: 79.91 kB / 398.6 MB, free: 24.52 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001036/0.2239, allocations: 36.81 kB / 398.6 MB, free: 24.48 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.196e-05/0.2239, allocations: 15.92 kB / 398.6 MB, free: 24.46 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001919/0.2241, allocations: 0.5485 MB / 399.2 MB, free: 23.89 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.2241, allocations: 160 / 399.2 MB, free: 23.89 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005654/0.2247, allocations: 0.5562 MB / 399.7 MB, free: 23.29 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.239e-05/0.2247, allocations: 104.7 kB / 399.8 MB, free: 23.17 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.149e-05/0.2248, allocations: 8 kB / 399.8 MB, free: 23.16 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001372/0.2249, allocations: 8 kB / 399.8 MB, free: 23.16 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.335e-05/0.225, allocations: 31.94 kB / 399.9 MB, free: 23.12 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.803e-05/0.225, allocations: 8 kB / 399.9 MB, free: 23.12 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001422/0.2252, allocations: 215.1 kB / 400.1 MB, free: 22.91 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2252, allocations: 0 / 400.1 MB, free: 22.91 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004341/0.2256, allocations: 124 kB / 400.2 MB, free: 22.79 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 10 (directInertia.inertia.w,directInertia.torqueToAngle.phi,inertia2a.w,torqueToAngle2a.phi,inertia2b.w,torqueToAngle2b.phi,inertia3a.phi,inertia3a.w,inertia3b.phi,inertia3b.w) * 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 (33): * Single equations (assignments): 32 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007795/0.2264, allocations: 1.105 MB / 401.3 MB, free: 21.64 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004773/0.2269, allocations: 303.7 kB / 401.6 MB, free: 21.34 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.2269, allocations: 192 / 401.6 MB, free: 21.34 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000207/0.2271, allocations: 145.2 kB / 401.8 MB, free: 21.2 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004887/0.2276, allocations: 69.28 kB / 401.8 MB, free: 21.14 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003488/0.2311, allocations: 3.448 MB / 405.3 MB, free: 17.55 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002836/0.2314, allocations: 0.9171 MB / 406.2 MB, free: 16.61 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002163/0.2316, allocations: 251.3 kB / 406.4 MB, free: 16.36 MB / 298.7 MB Notification: Performance of SimCode: time 4.81e-07/0.2316, allocations: 0 / 406.4 MB, free: 16.36 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.215/3.446, allocations: 12.06 MB / 418.5 MB, free: 4.297 MB / 298.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches