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.001095/0.001095, allocations: 109.8 kB / 17.17 MB, free: 6.344 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.00118/0.00118, allocations: 194.9 kB / 18.08 MB, free: 5.441 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.369/1.369, allocations: 222.9 MB / 241.8 MB, free: 13.73 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001207/0.001207, allocations: 51.39 kB / 300.6 MB, free: 6.066 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09899/0.1002, allocations: 49.45 MB / 350.1 MB, free: 4.621 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.007507/0.1078, allocations: 5.417 MB / 355.5 MB, free: 15.17 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004129/0.112, allocations: 2.044 MB / 357.5 MB, free: 13.12 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00102/0.113, allocations: 35.75 kB / 357.5 MB, free: 13.08 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007519/0.1138, allocations: 162.8 kB / 357.7 MB, free: 12.92 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008897/0.1147, allocations: 138.8 kB / 357.8 MB, free: 12.79 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001164/0.1159, allocations: 339.4 kB / 358.2 MB, free: 12.45 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00136/0.1173, allocations: 0.9623 MB / 359.1 MB, free: 11.48 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009407/0.1182, allocations: 0.5435 MB / 359.7 MB, free: 10.92 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004932/0.1187, allocations: 282.9 kB / 360 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004807/0.1192, allocations: 342.3 kB / 360.3 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001331/0.1194, allocations: 52 kB / 360.3 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003068/0.1197, allocations: 115.9 kB / 360.5 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002239/0.1199, allocations: 167.4 kB / 360.6 MB, free: 9.977 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004705/0.1204, allocations: 394 kB / 361 MB, free: 9.59 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008888/0.1213, allocations: 0.9082 MB / 361.9 MB, free: 8.68 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.1213, allocations: 0 / 361.9 MB, free: 8.68 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.1213, allocations: 0 / 361.9 MB, free: 8.68 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.649e-05/0.1214, allocations: 0 / 361.9 MB, free: 8.68 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.001678/0.1231, allocations: 1.03 MB / 362.9 MB, free: 7.598 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.731e-05/0.1231, allocations: 12.03 kB / 363 MB, free: 7.586 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001573/0.1233, allocations: 87.91 kB / 363 MB, free: 7.5 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000663/0.1239, allocations: 0.4909 MB / 363.5 MB, free: 6.969 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.918e-05/0.124, allocations: 70.34 kB / 363.6 MB, free: 6.902 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001198/0.1241, allocations: 88.28 kB / 363.7 MB, free: 6.816 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001454/0.1256, allocations: 0.8086 MB / 364.5 MB, free: 5.969 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.615e-05/0.1256, allocations: 4 kB / 364.5 MB, free: 5.965 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.087e-05/0.1257, allocations: 36 kB / 364.5 MB, free: 5.93 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.867e-05/0.1257, allocations: 24 kB / 364.6 MB, free: 5.906 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001021/0.1268, allocations: 0.4918 MB / 365 MB, free: 5.418 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003386/0.1302, allocations: 2.899 MB / 367.9 MB, free: 2.395 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005826/0.1308, allocations: 225.5 kB / 368.2 MB, free: 2.164 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001751/0.1309, allocations: 108.7 kB / 368.3 MB, free: 2.055 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002752/0.1312, allocations: 247.3 kB / 368.5 MB, free: 1.758 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.643e-05/0.1313, allocations: 38.56 kB / 368.6 MB, free: 1.711 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 2.535e-06/0.1313, allocations: 4 kB / 368.6 MB, free: 1.707 MB / 302.1 MB Notification: Performance of matching and sorting (n=35): time 0.002414/0.1337, allocations: 1.246 MB / 369.8 MB, free: 376 kB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.154e-05/0.1338, allocations: 59.41 kB / 369.9 MB, free: 304 kB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1664/0.3002, allocations: 307.2 kB / 370.2 MB, free: 25.41 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.607e-05/0.3003, allocations: 31.02 kB / 370.2 MB, free: 25.38 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003019/0.3006, allocations: 397.2 kB / 370.6 MB, free: 25.26 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001592/0.3008, allocations: 139.4 kB / 370.7 MB, free: 25.17 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001907/0.301, allocations: 84.88 kB / 370.8 MB, free: 25.16 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.702e-05/0.3011, allocations: 350 kB / 371.1 MB, free: 24.84 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002855/0.3014, allocations: 112.3 kB / 371.2 MB, free: 24.84 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003043/0.3017, allocations: 254.5 kB / 371.5 MB, free: 24.68 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005405/0.3023, allocations: 387.2 kB / 371.9 MB, free: 24.52 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.47e-06/0.3023, allocations: 1.094 kB / 371.9 MB, free: 24.52 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0008768/0.3032, allocations: 460.5 kB / 372.3 MB, free: 24.42 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.494e-05/0.3032, allocations: 6.594 kB / 372.3 MB, free: 24.42 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.283e-05/0.3032, allocations: 4 kB / 372.3 MB, free: 24.42 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002437/0.3035, allocations: 42.94 kB / 372.4 MB, free: 24.41 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003899/0.3039, allocations: 110.5 kB / 372.5 MB, free: 24.4 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003133/0.3042, allocations: 0.5541 MB / 373 MB, free: 23.86 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000242/0.3045, allocations: 16.3 kB / 373.1 MB, free: 23.85 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.003e-05/0.3045, allocations: 22.77 kB / 373.1 MB, free: 23.85 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.0002933/0.3048, allocations: 223.5 kB / 373.3 MB, free: 23.66 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.307e-05/0.3049, allocations: 32.84 kB / 373.3 MB, free: 23.65 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006505/0.3056, allocations: 328.7 kB / 373.6 MB, free: 23.5 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.993e-06/0.3056, allocations: 4.219 kB / 373.7 MB, free: 23.5 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.003e-06/0.3056, allocations: 0 / 373.7 MB, free: 23.5 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.933e-06/0.3056, allocations: 3.938 kB / 373.7 MB, free: 23.5 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001574/0.3072, allocations: 1.013 MB / 374.7 MB, free: 22.89 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.472e-06/0.3072, allocations: 5.188 kB / 374.7 MB, free: 22.88 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003918/0.3076, allocations: 77.36 kB / 374.8 MB, free: 22.88 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001963/0.3078, allocations: 34.47 kB / 374.8 MB, free: 22.86 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.562e-05/0.3079, allocations: 9.5 kB / 374.8 MB, free: 22.86 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002448/0.3081, allocations: 0.549 MB / 375.3 MB, free: 22.32 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.747e-06/0.3081, allocations: 1.844 kB / 375.3 MB, free: 22.32 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007813/0.3089, allocations: 0.5506 MB / 375.9 MB, free: 21.98 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.898e-05/0.309, allocations: 107.7 kB / 376 MB, free: 21.87 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.682e-05/0.3091, allocations: 8.781 kB / 376 MB, free: 21.86 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001609/0.3092, allocations: 12.78 kB / 376 MB, free: 21.86 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.095e-05/0.3093, allocations: 30.94 kB / 376.1 MB, free: 21.85 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.567e-05/0.3093, allocations: 14.78 kB / 376.1 MB, free: 21.84 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002242/0.3096, allocations: 208.6 kB / 376.3 MB, free: 21.73 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.3096, allocations: 1.406 kB / 376.3 MB, free: 21.73 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005563/0.3101, allocations: 119.9 kB / 376.4 MB, free: 21.72 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.000173/0.3103, allocations: 125.2 kB / 376.5 MB, free: 21.62 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006632/0.311, allocations: 304.2 kB / 376.8 MB, free: 21.53 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.739e-06/0.311, allocations: 3.938 kB / 376.8 MB, free: 21.53 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002948/0.3113, allocations: 142.7 kB / 377 MB, free: 21.48 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005607/0.3119, allocations: 63.69 kB / 377 MB, free: 21.45 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002868/0.3148, allocations: 1.964 MB / 379 MB, free: 20.04 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005539/0.3153, allocations: 0.9231 MB / 379.9 MB, free: 19.32 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001093/0.3155, allocations: 39.67 kB / 379.9 MB, free: 19.31 MB / 302.1 MB Notification: Performance of SimCode: time 3.7e-07/0.3155, allocations: 0 / 379.9 MB, free: 19.31 MB / 302.1 MB Notification: Performance of Templates: time 0.01539/0.3309, allocations: 9.714 MB / 389.7 MB, free: 15.83 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins1/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