Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.conf.json 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/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 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) 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_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_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001153/0.001153, allocations: 107.9 kB / 18.36 MB, free: 4.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001118/0.001118, allocations: 188.5 kB / 19.3 MB, free: 3.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.404/1.404, allocations: 205.1 MB / 225.2 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001217/0.001217, allocations: 51.94 kB / 329.1 MB, free: 3.328 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09112/0.09234, allocations: 46.61 MB / 375.8 MB, free: 4.609 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.196/0.2884, allocations: 5.411 MB / 381.2 MB, free: 9.652 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003406/0.2918, allocations: 2.114 MB / 383.3 MB, free: 9.484 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006026/0.2924, allocations: 36.56 kB / 383.3 MB, free: 9.473 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004638/0.293, allocations: 208.2 kB / 383.5 MB, free: 9.367 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003741/0.2933, allocations: 170.9 kB / 383.7 MB, free: 9.281 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009111/0.2943, allocations: 394.9 kB / 384.1 MB, free: 9.223 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001204/0.2955, allocations: 1.008 MB / 385.1 MB, free: 8.711 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008249/0.2963, allocations: 0.6039 MB / 385.7 MB, free: 8.43 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00045/0.2968, allocations: 344.8 kB / 386 MB, free: 8.254 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004118/0.2972, allocations: 361.3 kB / 386.4 MB, free: 8.059 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001203/0.2973, allocations: 92.53 kB / 386.5 MB, free: 8.059 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002971/0.2976, allocations: 148.5 kB / 386.6 MB, free: 8.039 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000169/0.2978, allocations: 205.4 kB / 386.8 MB, free: 7.902 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003371/0.2981, allocations: 428 kB / 387.2 MB, free: 7.625 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001314/0.2995, allocations: 1.174 MB / 388.4 MB, free: 7.184 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.631e-06/0.2995, allocations: 0 / 388.4 MB, free: 7.184 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.2995, allocations: 0 / 388.4 MB, free: 7.184 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.792e-05/0.2995, allocations: 0.6094 kB / 388.4 MB, free: 7.184 MB / 318.1 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.001482/0.301, allocations: 1.032 MB / 389.4 MB, free: 6.438 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.295e-05/0.3011, allocations: 9.391 kB / 389.4 MB, free: 6.438 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001467/0.3012, allocations: 87.97 kB / 389.5 MB, free: 6.395 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007703/0.302, allocations: 0.5146 MB / 390 MB, free: 6.027 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.918e-05/0.302, allocations: 67.09 kB / 390.1 MB, free: 5.996 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001312/0.3022, allocations: 89.25 kB / 390.2 MB, free: 5.965 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00152/0.3037, allocations: 0.8082 MB / 391 MB, free: 5.566 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.858e-05/0.3038, allocations: 10.16 kB / 391 MB, free: 5.559 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.078e-05/0.3038, allocations: 31.59 kB / 391 MB, free: 5.535 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.499e-05/0.3039, allocations: 21.19 kB / 391.1 MB, free: 5.535 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009863/0.3049, allocations: 0.4951 MB / 391.6 MB, free: 5.359 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003031/0.3079, allocations: 2.854 MB / 394.4 MB, free: 3.383 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005546/0.3085, allocations: 221.7 kB / 394.6 MB, free: 3.293 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001742/0.3087, allocations: 110 kB / 394.7 MB, free: 3.242 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001611/0.3088, allocations: 246.2 kB / 395 MB, free: 2.961 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.869e-05/0.3089, allocations: 37.89 kB / 395 MB, free: 2.918 MB / 318.1 MB Notification: Performance of pre-optimization done (n=30): time 2.274e-06/0.3089, allocations: 0 / 395 MB, free: 2.918 MB / 318.1 MB Notification: Performance of matching and sorting (n=35): time 0.00233/0.3112, allocations: 1.268 MB / 396.3 MB, free: 2.051 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.794e-05/0.3112, allocations: 59.19 kB / 396.3 MB, free: 1.984 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003265/0.3116, allocations: 301.9 kB / 396.6 MB, free: 1.816 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.987e-05/0.3116, allocations: 31.23 kB / 396.7 MB, free: 1.781 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001992/0.3118, allocations: 402.3 kB / 397.1 MB, free: 1.473 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.084e-05/0.3119, allocations: 133 kB / 397.2 MB, free: 1.371 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001167/0.312, allocations: 88.39 kB / 397.3 MB, free: 1.316 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.041e-05/0.3121, allocations: 354.4 kB / 397.6 MB, free: 0.9805 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002039/0.3123, allocations: 106.8 kB / 397.7 MB, free: 0.9453 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002671/0.3126, allocations: 253.2 kB / 398 MB, free: 0.7305 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004712/0.3131, allocations: 389.1 kB / 398.4 MB, free: 444 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.3131, allocations: 1.062 kB / 398.4 MB, free: 444 kB / 318.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0006922/0.3138, allocations: 466.9 kB / 398.8 MB, free: 224 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.138e-05/0.3138, allocations: 7.906 kB / 398.8 MB, free: 224 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.072e-05/0.3138, allocations: 3.812 kB / 398.8 MB, free: 224 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002167/0.3141, allocations: 35.08 kB / 398.9 MB, free: 212 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003449/0.3144, allocations: 111.4 kB / 399 MB, free: 200 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003668/0.3148, allocations: 0.5569 MB / 399.5 MB, free: 15.65 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001924/0.315, allocations: 23.25 kB / 399.5 MB, free: 15.64 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.753e-05/0.315, allocations: 19.38 kB / 399.6 MB, free: 15.64 MB / 334.1 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0003096/0.3154, allocations: 218 kB / 399.8 MB, free: 15.46 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.749e-05/0.3154, allocations: 33.28 kB / 399.8 MB, free: 15.44 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006368/0.3161, allocations: 331.4 kB / 400.1 MB, free: 15.27 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.089e-06/0.3161, allocations: 8 kB / 400.1 MB, free: 15.27 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.951e-06/0.3161, allocations: 0.6094 kB / 400.1 MB, free: 15.27 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.732e-06/0.3161, allocations: 1.453 kB / 400.1 MB, free: 15.27 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001544/0.3177, allocations: 1.017 MB / 401.2 MB, free: 14.64 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.498e-06/0.3177, allocations: 0.5625 kB / 401.2 MB, free: 14.64 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000364/0.3181, allocations: 80.66 kB / 401.2 MB, free: 14.64 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001667/0.3182, allocations: 30.36 kB / 401.3 MB, free: 14.62 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.273e-05/0.3183, allocations: 13.31 kB / 401.3 MB, free: 14.62 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003438/0.3186, allocations: 0.5482 MB / 401.8 MB, free: 14.08 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.807e-06/0.3186, allocations: 6.953 kB / 401.8 MB, free: 14.07 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008172/0.3195, allocations: 0.553 MB / 402.4 MB, free: 13.72 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.217e-05/0.3196, allocations: 107.7 kB / 402.5 MB, free: 13.61 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.859e-05/0.3196, allocations: 9.234 kB / 402.5 MB, free: 13.61 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001489/0.3198, allocations: 12.98 kB / 402.5 MB, free: 13.6 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.506e-05/0.3198, allocations: 22.48 kB / 402.5 MB, free: 13.59 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.724e-05/0.3199, allocations: 19.95 kB / 402.6 MB, free: 13.59 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002351/0.3201, allocations: 211.8 kB / 402.8 MB, free: 13.47 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3201, allocations: 0 / 402.8 MB, free: 13.47 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005945/0.3207, allocations: 124.7 kB / 402.9 MB, free: 13.45 MB / 334.1 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001883/0.3209, allocations: 115.3 kB / 403 MB, free: 13.35 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006474/0.3216, allocations: 308.1 kB / 403.3 MB, free: 13.25 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.3216, allocations: 192 / 403.3 MB, free: 13.25 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000267/0.3219, allocations: 141.4 kB / 403.4 MB, free: 13.21 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005075/0.3224, allocations: 61.22 kB / 403.5 MB, free: 13.19 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002563/0.325, allocations: 1.617 MB / 405.1 MB, free: 12.09 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000519/0.3255, allocations: 0.926 MB / 406 MB, free: 11.37 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.122e-05/0.3256, allocations: 33.59 kB / 406.1 MB, free: 11.36 MB / 334.1 MB Notification: Performance of SimCode: time 4.11e-07/0.3256, allocations: 0 / 406.1 MB, free: 11.36 MB / 334.1 MB Notification: Performance of Templates: time 0.01378/0.3394, allocations: 9.732 MB / 415.8 MB, free: 6.418 MB / 334.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches