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.0007771/0.0007772, allocations: 91.25 kB / 16.65 MB, free: 6.59 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.0008887/0.0008887, allocations: 184.5 kB / 17.56 MB, free: 6.203 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.342/1.342, allocations: 223.3 MB / 241.6 MB, free: 14.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00028/0.00028, allocations: 8.125 kB / 301.4 MB, free: 5.906 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09595/0.09625, allocations: 50.4 MB / 351.8 MB, free: 3.484 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.005891/0.1022, allocations: 4.961 MB / 356.8 MB, free: 14.5 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003717/0.1059, allocations: 2.005 MB / 358.8 MB, free: 12.48 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000856/0.1068, allocations: 35.81 kB / 358.8 MB, free: 12.45 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005982/0.1074, allocations: 166.8 kB / 359 MB, free: 12.28 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007231/0.1082, allocations: 142.8 kB / 359.1 MB, free: 12.14 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009762/0.1092, allocations: 339.4 kB / 359.5 MB, free: 11.81 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001244/0.1104, allocations: 0.9545 MB / 360.4 MB, free: 10.85 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008415/0.1113, allocations: 0.528 MB / 360.9 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003799/0.1117, allocations: 246.8 kB / 361.2 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000425/0.1121, allocations: 278.4 kB / 361.5 MB, free: 9.781 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.205e-05/0.1122, allocations: 32 kB / 361.5 MB, free: 9.75 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002163/0.1124, allocations: 87.91 kB / 361.6 MB, free: 9.664 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001365/0.1126, allocations: 123.5 kB / 361.7 MB, free: 9.543 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003753/0.113, allocations: 375.7 kB / 362.1 MB, free: 9.168 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009644/0.1139, allocations: 1.07 MB / 363.1 MB, free: 8.094 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.1139, allocations: 0 / 363.1 MB, free: 8.094 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1139, allocations: 0 / 363.1 MB, free: 8.094 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.138e-05/0.114, allocations: 0 / 363.1 MB, free: 8.094 MB / 302.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.00139/0.1154, allocations: 0.8775 MB / 364 MB, free: 7.164 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.663e-05/0.1154, allocations: 12.03 kB / 364 MB, free: 7.152 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001523/0.1156, allocations: 87.91 kB / 364.1 MB, free: 7.066 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006581/0.1162, allocations: 0.4908 MB / 364.6 MB, free: 6.535 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.703e-05/0.1163, allocations: 66.38 kB / 364.7 MB, free: 6.473 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001178/0.1164, allocations: 92.36 kB / 364.7 MB, free: 6.383 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00145/0.1179, allocations: 0.8047 MB / 365.6 MB, free: 5.539 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.693e-05/0.1179, allocations: 11.91 kB / 365.6 MB, free: 5.527 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.117e-05/0.118, allocations: 32 kB / 365.6 MB, free: 5.496 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.077e-05/0.118, allocations: 24 kB / 365.6 MB, free: 5.473 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001167/0.1192, allocations: 0.4957 MB / 366.1 MB, free: 4.98 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003507/0.1227, allocations: 2.914 MB / 369 MB, free: 1.941 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005745/0.1233, allocations: 218.8 kB / 369.2 MB, free: 1.719 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000201/0.1235, allocations: 116.7 kB / 369.4 MB, free: 1.602 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002639/0.1238, allocations: 247.3 kB / 369.6 MB, free: 1.305 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.079e-05/0.1239, allocations: 38.56 kB / 369.6 MB, free: 1.258 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 1.903e-06/0.1239, allocations: 0 / 369.6 MB, free: 1.258 MB / 302.1 MB Notification: Performance of matching and sorting (n=35): time 0.1674/0.2913, allocations: 1.265 MB / 370.9 MB, free: 25.06 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.867e-05/0.2913, allocations: 60.31 kB / 371 MB, free: 24.99 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004226/0.2918, allocations: 307.5 kB / 371.3 MB, free: 24.88 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.431e-05/0.2918, allocations: 32.02 kB / 371.3 MB, free: 24.85 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002455/0.2921, allocations: 393.1 kB / 371.7 MB, free: 24.73 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001109/0.2922, allocations: 139.7 kB / 371.8 MB, free: 24.64 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.97e-05/0.2922, allocations: 45.31 kB / 371.9 MB, free: 24.62 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.185e-05/0.2923, allocations: 349.9 kB / 372.2 MB, free: 24.31 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002381/0.2926, allocations: 108 kB / 372.3 MB, free: 24.31 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002878/0.2929, allocations: 254.5 kB / 372.6 MB, free: 24.15 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005183/0.2934, allocations: 393.9 kB / 372.9 MB, free: 23.99 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.757e-06/0.2934, allocations: 1.656 kB / 372.9 MB, free: 23.99 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0007317/0.2942, allocations: 473 kB / 373.4 MB, free: 23.85 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.923e-05/0.2942, allocations: 6.5 kB / 373.4 MB, free: 23.85 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.949e-06/0.2942, allocations: 4.906 kB / 373.4 MB, free: 23.85 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002026/0.2944, allocations: 34.75 kB / 373.4 MB, free: 23.84 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003608/0.2948, allocations: 112.3 kB / 373.6 MB, free: 23.83 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002738/0.2951, allocations: 0.5542 MB / 374.1 MB, free: 23.29 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001896/0.2953, allocations: 16.11 kB / 374.1 MB, free: 23.29 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.002e-05/0.2953, allocations: 22.86 kB / 374.1 MB, free: 23.28 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 (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.0002487/0.2956, allocations: 219.3 kB / 374.4 MB, free: 23.1 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.405e-05/0.2956, allocations: 38.53 kB / 374.4 MB, free: 23.08 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000581/0.2962, allocations: 329.6 kB / 374.7 MB, free: 22.93 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.182e-06/0.2962, allocations: 7.281 kB / 374.7 MB, free: 22.93 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.001e-06/0.2962, allocations: 1.406 kB / 374.7 MB, free: 22.93 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.403e-06/0.2963, allocations: 7.047 kB / 374.7 MB, free: 22.92 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001364/0.2976, allocations: 1.015 MB / 375.8 MB, free: 22.31 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.518e-06/0.2976, allocations: 6.688 kB / 375.8 MB, free: 22.31 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003428/0.298, allocations: 81.5 kB / 375.8 MB, free: 22.3 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001213/0.2981, allocations: 32.03 kB / 375.9 MB, free: 22.29 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.397e-05/0.2982, allocations: 17.45 kB / 375.9 MB, free: 22.28 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002001/0.2984, allocations: 0.5446 MB / 376.4 MB, free: 21.75 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.337e-06/0.2984, allocations: 5.969 kB / 376.4 MB, free: 21.74 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000658/0.299, allocations: 0.554 MB / 377 MB, free: 21.4 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.617e-05/0.2991, allocations: 107.8 kB / 377.1 MB, free: 21.29 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.231e-05/0.2992, allocations: 16.91 kB / 377.1 MB, free: 21.27 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001468/0.2993, allocations: 9.828 kB / 377.1 MB, free: 21.27 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.43e-05/0.2994, allocations: 24.06 kB / 377.1 MB, free: 21.27 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.232e-05/0.2994, allocations: 17.59 kB / 377.2 MB, free: 21.26 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001781/0.2996, allocations: 208 kB / 377.4 MB, free: 21.14 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2996, allocations: 4 kB / 377.4 MB, free: 21.14 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004991/0.3001, allocations: 121.4 kB / 377.5 MB, free: 21.13 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 (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.0001388/0.3002, allocations: 119.2 kB / 377.6 MB, free: 21.04 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005365/0.3008, allocations: 308.5 kB / 377.9 MB, free: 20.94 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.3008, allocations: 0 / 377.9 MB, free: 20.94 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000243/0.301, allocations: 147.3 kB / 378.1 MB, free: 20.89 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005313/0.3016, allocations: 72.62 kB / 378.1 MB, free: 20.86 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002268/0.3039, allocations: 2.097 MB / 380.2 MB, free: 19.37 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004064/0.3043, allocations: 0.9207 MB / 381.1 MB, free: 18.66 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001781/0.3045, allocations: 43.97 kB / 381.2 MB, free: 18.65 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.618e-05/0.3045, allocations: 30.91 kB / 381.2 MB, free: 18.64 MB / 302.1 MB Notification: Performance of SimCode: time 4.91e-07/0.3046, allocations: 0 / 381.2 MB, free: 18.64 MB / 302.1 MB Notification: Performance of Templates: time 0.009065/0.3136, allocations: 3.559 MB / 384.8 MB, free: 18.33 MB / 302.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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches