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: translateModel(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|directInertia.inertia.phi|directInertia.inertia.w|inertia2a.phi|inertia2a.w|inertia2b.phi|inertia2b.w|inertia3a.phi|inertia3a.w|inertia3b.phi|inertia3b.w",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs") translateModel(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|directInertia.inertia.phi|directInertia.inertia.w|inertia2a.phi|inertia2a.w|inertia2b.phi|inertia2b.w|inertia3a.phi|inertia3a.w|inertia3b.phi|inertia3b.w",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009552/0.0009552, allocations: 180 kB / 16.41 MB, free: 5.707 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.405/1.405, allocations: 205.4 MB / 222.6 MB, free: 9.102 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.0006763/0.0006763, allocations: 86.31 kB / 270.9 MB, free: 8.355 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002749/0.0002749, allocations: 8 kB / 327 MB, free: 204 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2075/0.2078, allocations: 47.58 MB / 374.6 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.004189/0.212, allocations: 4.66 MB / 379.2 MB, free: 41.79 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002861/0.2149, allocations: 1.955 MB / 381.2 MB, free: 40.2 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004839/0.2154, allocations: 33.19 kB / 381.2 MB, free: 40.18 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002964/0.2157, allocations: 141.9 kB / 381.3 MB, free: 40.07 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002615/0.216, allocations: 144.7 kB / 381.5 MB, free: 39.94 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005528/0.2166, allocations: 249.7 kB / 381.7 MB, free: 39.75 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006969/0.2173, allocations: 0.8923 MB / 382.6 MB, free: 39.21 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005254/0.2178, allocations: 420.3 kB / 383 MB, free: 38.96 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002679/0.2181, allocations: 228.5 kB / 383.3 MB, free: 38.84 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002806/0.2184, allocations: 267.3 kB / 383.5 MB, free: 38.66 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.919e-05/0.2185, allocations: 30.5 kB / 383.5 MB, free: 38.66 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001832/0.2186, allocations: 82.97 kB / 383.6 MB, free: 38.64 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.825e-05/0.2187, allocations: 123.3 kB / 383.7 MB, free: 38.55 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001183/0.2189, allocations: 168.6 kB / 383.9 MB, free: 38.44 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005879/0.2195, allocations: 0.884 MB / 384.8 MB, free: 37.75 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.2195, allocations: 0 / 384.8 MB, free: 37.75 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.004e-06/0.2195, allocations: 1.031 kB / 384.8 MB, free: 37.75 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.778e-05/0.2195, allocations: 0 / 384.8 MB, free: 37.75 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.001076/0.2206, allocations: 0.8918 MB / 385.7 MB, free: 37.01 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.842e-05/0.2206, allocations: 9.312 kB / 385.7 MB, free: 37.01 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001289/0.2208, allocations: 86.66 kB / 385.8 MB, free: 36.97 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005849/0.2214, allocations: 499.8 kB / 386.3 MB, free: 36.53 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.858e-05/0.2214, allocations: 63.38 kB / 386.3 MB, free: 36.5 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001085/0.2215, allocations: 86.97 kB / 386.4 MB, free: 36.47 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001297/0.2228, allocations: 0.7982 MB / 387.2 MB, free: 35.95 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.614e-05/0.2229, allocations: 14.83 kB / 387.2 MB, free: 35.94 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.816e-05/0.223, allocations: 35.28 kB / 387.3 MB, free: 35.91 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.428e-05/0.223, allocations: 20.91 kB / 387.3 MB, free: 35.91 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007906/0.2238, allocations: 0.4928 MB / 387.8 MB, free: 35.45 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002307/0.2261, allocations: 2.901 MB / 390.7 MB, free: 32.42 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00044/0.2265, allocations: 223.3 kB / 390.9 MB, free: 32.19 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001451/0.2267, allocations: 100.8 kB / 391 MB, free: 32.09 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001682/0.2269, allocations: 247.3 kB / 391.2 MB, free: 31.79 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.616e-05/0.2269, allocations: 34.55 kB / 391.3 MB, free: 31.75 MB / 298.7 MB Notification: Performance of pre-optimization done (n=30): time 1.543e-06/0.2269, allocations: 0 / 391.3 MB, free: 31.75 MB / 298.7 MB Notification: Performance of matching and sorting (n=35): time 0.001833/0.2288, allocations: 1.278 MB / 392.5 MB, free: 30.38 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.211e-05/0.2288, allocations: 59.41 kB / 392.6 MB, free: 30.31 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002179/0.229, allocations: 300.5 kB / 392.9 MB, free: 30.01 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.661e-05/0.229, allocations: 29.7 kB / 392.9 MB, free: 29.97 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001411/0.2292, allocations: 406.5 kB / 393.3 MB, free: 29.57 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.982e-05/0.2293, allocations: 130.1 kB / 393.4 MB, free: 29.44 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.436e-05/0.2293, allocations: 8 kB / 393.5 MB, free: 29.43 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.462e-05/0.2294, allocations: 350.7 kB / 393.8 MB, free: 29.08 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001733/0.2295, allocations: 113.1 kB / 393.9 MB, free: 28.97 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002094/0.2297, allocations: 254.5 kB / 394.2 MB, free: 28.66 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002116/0.23, allocations: 151.7 kB / 394.3 MB, free: 28.52 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.23, allocations: 4 kB / 394.3 MB, free: 28.51 MB / 298.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.000563/0.2305, allocations: 461.6 kB / 394.8 MB, free: 28.05 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.646e-05/0.2306, allocations: 12.06 kB / 394.8 MB, free: 28.04 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.975e-06/0.2306, allocations: 4 kB / 394.8 MB, free: 28.04 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001562/0.2308, allocations: 40.78 kB / 394.8 MB, free: 27.99 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003142/0.2311, allocations: 111.8 kB / 394.9 MB, free: 27.88 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002496/0.2313, allocations: 0.5485 MB / 395.5 MB, free: 27.31 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001632/0.2315, allocations: 16 kB / 395.5 MB, free: 27.29 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.184e-05/0.2315, allocations: 28.05 kB / 395.5 MB, free: 27.27 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.0002075/0.2318, allocations: 221.5 kB / 395.7 MB, free: 27.04 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.082e-05/0.2318, allocations: 43.52 kB / 395.8 MB, free: 27 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004986/0.2323, allocations: 326.1 kB / 396.1 MB, free: 26.67 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.176e-06/0.2323, allocations: 4 kB / 396.1 MB, free: 26.66 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.229e-06/0.2324, allocations: 4 kB / 396.1 MB, free: 26.66 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.219e-06/0.2324, allocations: 0 / 396.1 MB, free: 26.66 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001063/0.2334, allocations: 1.026 MB / 397.1 MB, free: 25.56 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.015e-06/0.2334, allocations: 0 / 397.1 MB, free: 25.56 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003222/0.2338, allocations: 83.89 kB / 397.2 MB, free: 25.48 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.881e-05/0.2339, allocations: 28.84 kB / 397.2 MB, free: 25.45 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.998e-05/0.2339, allocations: 8 kB / 397.2 MB, free: 25.44 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000188/0.2341, allocations: 0.5524 MB / 397.8 MB, free: 24.86 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.926e-06/0.2341, allocations: 4.031 kB / 397.8 MB, free: 24.86 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005726/0.2347, allocations: 0.5488 MB / 398.4 MB, free: 24.27 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.351e-05/0.2347, allocations: 112.6 kB / 398.5 MB, free: 24.14 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.816e-05/0.2348, allocations: 8 kB / 398.5 MB, free: 24.13 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001455/0.2349, allocations: 8 kB / 398.5 MB, free: 24.12 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.859e-05/0.235, allocations: 35.91 kB / 398.5 MB, free: 24.09 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.745e-05/0.235, allocations: 8.094 kB / 398.5 MB, free: 24.08 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001399/0.2352, allocations: 211 kB / 398.7 MB, free: 23.88 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2352, allocations: 0 / 398.7 MB, free: 23.88 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004021/0.2356, allocations: 124 kB / 398.8 MB, free: 23.75 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.0001459/0.2357, allocations: 111.2 kB / 399 MB, free: 23.64 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004987/0.2362, allocations: 311.6 kB / 399.3 MB, free: 23.33 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.2363, allocations: 0 / 399.3 MB, free: 23.33 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002203/0.2365, allocations: 142.6 kB / 399.4 MB, free: 23.2 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005734/0.2371, allocations: 65.53 kB / 399.5 MB, free: 23.13 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0021/0.2392, allocations: 2.064 MB / 401.5 MB, free: 21.02 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000325/0.2395, allocations: 0.921 MB / 402.4 MB, free: 20.07 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.856e-05/0.2396, allocations: 31.44 kB / 402.5 MB, free: 20.04 MB / 298.7 MB Notification: Performance of SimCode: time 4.61e-07/0.2396, allocations: 4 kB / 402.5 MB, free: 20.04 MB / 298.7 MB Notification: Performance of Templates: time 0.009376/0.249, allocations: 9.607 MB / 412.1 MB, free: 10.43 MB / 298.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.makefile (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 & ./Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs --alarm=480 -emit_protected > 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/jenkins/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