Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_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_4.0.0_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.001076/0.001076, allocations: 95.94 kB / 16.3 MB, free: 5.992 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.00122/0.00122, allocations: 181.5 kB / 17.19 MB, free: 5.906 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.432/1.432, allocations: 223.2 MB / 241.1 MB, free: 5.438 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002153/0.0002154, allocations: 7 kB / 300.7 MB, free: 6.004 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08811/0.08834, allocations: 50.42 MB / 351.1 MB, free: 11.73 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.004532/0.09291, allocations: 4.396 MB / 355.5 MB, free: 7.32 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00261/0.09555, allocations: 1.987 MB / 357.5 MB, free: 5.324 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003486/0.09591, allocations: 31.81 kB / 357.5 MB, free: 5.293 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002999/0.09622, allocations: 162.8 kB / 357.7 MB, free: 5.133 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004727/0.09671, allocations: 303 kB / 358 MB, free: 4.836 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007041/0.09742, allocations: 351.4 kB / 358.3 MB, free: 4.492 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007089/0.09814, allocations: 0.6633 MB / 359 MB, free: 3.828 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005137/0.09866, allocations: 413.5 kB / 359.4 MB, free: 3.395 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000229/0.0989, allocations: 239 kB / 359.6 MB, free: 3.16 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002645/0.09917, allocations: 254.6 kB / 359.9 MB, free: 2.91 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.001e-05/0.09924, allocations: 32 kB / 359.9 MB, free: 2.879 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000161/0.09941, allocations: 83.91 kB / 360 MB, free: 2.797 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001045/0.09952, allocations: 119.5 kB / 360.1 MB, free: 2.68 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001335/0.09966, allocations: 173.3 kB / 360.3 MB, free: 2.504 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000709/0.1004, allocations: 0.8803 MB / 361.2 MB, free: 1.621 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.055e-06/0.1004, allocations: 3.938 kB / 361.2 MB, free: 1.617 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.1004, allocations: 0 / 361.2 MB, free: 1.617 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.203e-05/0.1004, allocations: 0 / 361.2 MB, free: 1.617 MB / 286.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.00116/0.1016, allocations: 0.889 MB / 362.1 MB, free: 0.6758 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.314e-05/0.1016, allocations: 8.031 kB / 362.1 MB, free: 0.668 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001148/0.1017, allocations: 86.97 kB / 362.2 MB, free: 0.582 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006522/0.1024, allocations: 0.4897 MB / 362.6 MB, free: 56 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.546e-05/0.1025, allocations: 58 kB / 362.7 MB, free: 0 / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001285/0.1026, allocations: 91.98 kB / 362.8 MB, free: 15.91 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001356/0.1039, allocations: 0.7888 MB / 363.6 MB, free: 15.08 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.454e-05/0.104, allocations: 11.89 kB / 363.6 MB, free: 15.07 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.002e-05/0.1041, allocations: 39.95 kB / 363.6 MB, free: 15.03 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.782e-05/0.1041, allocations: 24 kB / 363.7 MB, free: 15.01 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009543/0.105, allocations: 499.6 kB / 364.1 MB, free: 14.52 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003095/0.1082, allocations: 2.907 MB / 367 MB, free: 11.49 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005499/0.1087, allocations: 223.2 kB / 367.3 MB, free: 11.26 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003073/0.109, allocations: 247.3 kB / 367.5 MB, free: 10.96 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.389e-05/0.1091, allocations: 38.52 kB / 367.5 MB, free: 10.92 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 1.743e-06/0.1091, allocations: 0 / 367.5 MB, free: 10.92 MB / 302.1 MB Notification: Performance of matching and sorting (n=35): time 0.002334/0.1114, allocations: 1.264 MB / 368.8 MB, free: 9.555 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.477e-05/0.1115, allocations: 55.41 kB / 368.9 MB, free: 9.488 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000302/0.1118, allocations: 304.5 kB / 369.2 MB, free: 9.188 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.99e-05/0.1118, allocations: 29.7 kB / 369.2 MB, free: 9.152 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002353/0.1121, allocations: 398.5 kB / 369.6 MB, free: 8.758 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.441e-05/0.1122, allocations: 134 kB / 369.7 MB, free: 8.625 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.783e-05/0.1122, allocations: 12 kB / 369.7 MB, free: 8.613 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001123/0.1123, allocations: 354.7 kB / 370.1 MB, free: 8.258 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001872/0.1125, allocations: 113.1 kB / 370.2 MB, free: 8.148 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002552/0.1128, allocations: 250.7 kB / 370.4 MB, free: 7.844 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002263/0.113, allocations: 143.9 kB / 370.6 MB, free: 7.703 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.113, allocations: 0 / 370.6 MB, free: 7.703 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0006773/0.1137, allocations: 465.4 kB / 371 MB, free: 7.238 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.574e-05/0.1137, allocations: 8.094 kB / 371 MB, free: 7.23 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.065e-06/0.1137, allocations: 8 kB / 371 MB, free: 7.223 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001559/0.1139, allocations: 32.84 kB / 371.1 MB, free: 7.188 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003423/0.1142, allocations: 115.8 kB / 371.2 MB, free: 7.074 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003695/0.1146, allocations: 0.5524 MB / 371.7 MB, free: 6.496 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001665/0.1148, allocations: 19.98 kB / 371.8 MB, free: 6.477 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.418e-05/0.1148, allocations: 28.06 kB / 371.8 MB, free: 6.449 MB / 302.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 (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.0002669/0.1151, allocations: 217.7 kB / 372 MB, free: 6.227 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.386e-05/0.1152, allocations: 35.53 kB / 372 MB, free: 6.191 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000549/0.1157, allocations: 322.3 kB / 372.3 MB, free: 5.867 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.029e-06/0.1158, allocations: 4 kB / 372.3 MB, free: 5.863 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.539e-06/0.1158, allocations: 0 / 372.3 MB, free: 5.863 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.847e-06/0.1158, allocations: 3.984 kB / 372.3 MB, free: 5.859 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001265/0.117, allocations: 1.034 MB / 373.4 MB, free: 4.75 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/0.1171, allocations: 0 / 373.4 MB, free: 4.75 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000336/0.1174, allocations: 71.97 kB / 373.5 MB, free: 4.68 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001084/0.1175, allocations: 36.78 kB / 373.5 MB, free: 4.641 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.254e-05/0.1176, allocations: 15.98 kB / 373.5 MB, free: 4.625 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003049/0.1179, allocations: 0.5486 MB / 374.1 MB, free: 4.051 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.397e-06/0.1179, allocations: 4 kB / 374.1 MB, free: 4.047 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007307/0.1186, allocations: 0.6151 MB / 374.7 MB, free: 3.363 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.959e-05/0.1187, allocations: 108.6 kB / 374.8 MB, free: 3.238 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.562e-05/0.1188, allocations: 12 kB / 374.8 MB, free: 3.227 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001439/0.1189, allocations: 8 kB / 374.8 MB, free: 3.219 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.876e-05/0.119, allocations: 27.95 kB / 374.8 MB, free: 3.191 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.236e-05/0.119, allocations: 16 kB / 374.8 MB, free: 3.176 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001885/0.1192, allocations: 207.1 kB / 375 MB, free: 2.973 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1192, allocations: 0 / 375 MB, free: 2.973 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004585/0.1197, allocations: 128 kB / 375.2 MB, free: 2.848 MB / 302.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 (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.0001463/0.1198, allocations: 127.7 kB / 375.3 MB, free: 2.715 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005623/0.1204, allocations: 304.7 kB / 375.6 MB, free: 2.418 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.1204, allocations: 192 / 375.6 MB, free: 2.418 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002439/0.1206, allocations: 139.8 kB / 375.7 MB, free: 2.281 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003718/0.121, allocations: 65.69 kB / 375.8 MB, free: 2.219 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002331/0.1234, allocations: 2.006 MB / 377.8 MB, free: 176 kB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00044/0.1238, allocations: 0.9405 MB / 378.7 MB, free: 15.2 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000139/0.124, allocations: 43.34 kB / 378.8 MB, free: 15.16 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.758e-05/0.124, allocations: 27.44 kB / 378.8 MB, free: 15.13 MB / 318.1 MB Notification: Performance of SimCode: time 1.322e-06/0.124, allocations: 4 kB / 378.8 MB, free: 15.13 MB / 318.1 MB Notification: Performance of Templates: time 0.007113/0.1312, allocations: 3.455 MB / 382.3 MB, free: 11.7 MB / 318.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches