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.001698/0.001698, allocations: 107.2 kB / 18.34 MB, free: 4.676 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.001988/0.001988, allocations: 188.1 kB / 19.28 MB, free: 3.75 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.322/1.322, allocations: 205.1 MB / 225.2 MB, free: 12.24 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.001129/0.001129, allocations: 52.41 kB / 282.1 MB, free: 2.457 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08407/0.08521, allocations: 46.63 MB / 328.7 MB, free: 3.754 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.006474/0.09174, allocations: 5.426 MB / 334.1 MB, free: 14.29 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003607/0.09538, allocations: 2.107 MB / 336.2 MB, free: 12.17 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005374/0.09593, allocations: 35.81 kB / 336.3 MB, free: 12.14 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004812/0.09647, allocations: 206.2 kB / 336.5 MB, free: 11.93 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003455/0.09683, allocations: 170.4 kB / 336.6 MB, free: 11.77 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008648/0.0977, allocations: 391 kB / 337 MB, free: 11.38 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001016/0.09873, allocations: 1.013 MB / 338 MB, free: 10.37 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008502/0.09959, allocations: 0.6026 MB / 338.6 MB, free: 9.746 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005026/0.1001, allocations: 342.8 kB / 339 MB, free: 9.41 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003638/0.1005, allocations: 362.3 kB / 339.3 MB, free: 9.055 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001071/0.1006, allocations: 92 kB / 339.4 MB, free: 8.965 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002414/0.1008, allocations: 148 kB / 339.6 MB, free: 8.82 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001711/0.101, allocations: 211.3 kB / 339.8 MB, free: 8.613 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003376/0.1014, allocations: 434 kB / 340.2 MB, free: 8.188 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001013/0.1024, allocations: 1.164 MB / 341.4 MB, free: 7.02 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.1024, allocations: 0 / 341.4 MB, free: 7.02 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.1024, allocations: 0 / 341.4 MB, free: 7.02 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.563e-05/0.1024, allocations: 0 / 341.4 MB, free: 7.02 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.001336/0.1038, allocations: 1.033 MB / 342.4 MB, free: 5.934 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.441e-05/0.1038, allocations: 12.03 kB / 342.4 MB, free: 5.922 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000128/0.104, allocations: 87.91 kB / 342.5 MB, free: 5.836 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007518/0.1047, allocations: 0.518 MB / 343 MB, free: 5.281 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.986e-05/0.1048, allocations: 66.38 kB / 343.1 MB, free: 5.219 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001073/0.1049, allocations: 92.22 kB / 343.2 MB, free: 5.129 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001274/0.1062, allocations: 0.8047 MB / 344 MB, free: 4.285 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.266e-05/0.1062, allocations: 7.938 kB / 344 MB, free: 4.277 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.699e-05/0.1063, allocations: 35.98 kB / 344 MB, free: 4.242 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.134e-05/0.1063, allocations: 20 kB / 344 MB, free: 4.223 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009167/0.1072, allocations: 0.4996 MB / 344.5 MB, free: 3.727 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002959/0.1102, allocations: 2.848 MB / 347.4 MB, free: 0.7461 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005083/0.1107, allocations: 214.7 kB / 347.6 MB, free: 0.5273 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000169/0.1109, allocations: 112.7 kB / 347.7 MB, free: 424 kB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002027/0.1111, allocations: 255.3 kB / 347.9 MB, free: 112 kB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.236e-05/0.1111, allocations: 38.5 kB / 348 MB, free: 64 kB / 286.1 MB Notification: Performance of pre-optimization done (n=30): time 1.683e-06/0.1111, allocations: 0 / 348 MB, free: 64 kB / 286.1 MB Notification: Performance of matching and sorting (n=35): time 0.002262/0.1134, allocations: 1.248 MB / 349.2 MB, free: 14.71 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.278e-05/0.1135, allocations: 59.41 kB / 349.3 MB, free: 14.64 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002927/0.1138, allocations: 304.5 kB / 349.6 MB, free: 14.33 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.668e-05/0.1138, allocations: 33.7 kB / 349.6 MB, free: 14.29 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002025/0.114, allocations: 390.6 kB / 350 MB, free: 13.91 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.933e-05/0.1141, allocations: 138 kB / 350.1 MB, free: 13.77 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001106/0.1142, allocations: 90.16 kB / 350.2 MB, free: 13.68 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001248/0.1144, allocations: 354.7 kB / 350.6 MB, free: 13.32 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001946/0.1146, allocations: 113.1 kB / 350.7 MB, free: 13.21 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003017/0.1149, allocations: 246.7 kB / 350.9 MB, free: 12.91 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005001/0.1154, allocations: 388.7 kB / 351.3 MB, free: 12.47 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.1154, allocations: 0 / 351.3 MB, free: 12.47 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0006924/0.1161, allocations: 468.9 kB / 351.8 MB, free: 12 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.598e-05/0.1161, allocations: 8 kB / 351.8 MB, free: 11.99 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.215e-06/0.1161, allocations: 4.594 kB / 351.8 MB, free: 11.99 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001702/0.1163, allocations: 36.84 kB / 351.8 MB, free: 11.95 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003449/0.1167, allocations: 111.8 kB / 351.9 MB, free: 11.84 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000363/0.117, allocations: 0.5562 MB / 352.5 MB, free: 11.26 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001792/0.1172, allocations: 16 kB / 352.5 MB, free: 11.24 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.666e-05/0.1173, allocations: 20 kB / 352.5 MB, free: 11.22 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.0002984/0.1176, allocations: 217.8 kB / 352.7 MB, free: 11 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000112/0.1177, allocations: 39.53 kB / 352.8 MB, free: 10.96 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007103/0.1184, allocations: 326 kB / 353.1 MB, free: 10.63 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.983e-06/0.1184, allocations: 4 kB / 353.1 MB, free: 10.63 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.1184, allocations: 3.938 kB / 353.1 MB, free: 10.62 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.449e-06/0.1185, allocations: 0 / 353.1 MB, free: 10.62 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001367/0.1198, allocations: 1.02 MB / 354.1 MB, free: 9.531 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.736e-06/0.1198, allocations: 0 / 354.1 MB, free: 9.531 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003783/0.1202, allocations: 87.83 kB / 354.2 MB, free: 9.445 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001291/0.1204, allocations: 29 kB / 354.2 MB, free: 9.414 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.791e-05/0.1204, allocations: 16 kB / 354.2 MB, free: 9.398 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000335/0.1208, allocations: 0.5483 MB / 354.8 MB, free: 8.824 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.272e-06/0.1208, allocations: 7.969 kB / 354.8 MB, free: 8.816 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007712/0.1216, allocations: 0.5489 MB / 355.3 MB, free: 8.227 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.442e-05/0.1216, allocations: 108.6 kB / 355.4 MB, free: 8.102 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.984e-05/0.1217, allocations: 11.98 kB / 355.5 MB, free: 8.09 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001531/0.1219, allocations: 8 kB / 355.5 MB, free: 8.082 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.16e-05/0.1219, allocations: 27.97 kB / 355.5 MB, free: 8.055 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.5e-05/0.122, allocations: 12 kB / 355.5 MB, free: 8.043 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002096/0.1222, allocations: 215 kB / 355.7 MB, free: 7.832 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.4e-07/0.1222, allocations: 0 / 355.7 MB, free: 7.832 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005111/0.1227, allocations: 116 kB / 355.8 MB, free: 7.719 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.0001647/0.1229, allocations: 115.3 kB / 355.9 MB, free: 7.598 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005965/0.1235, allocations: 307.5 kB / 356.2 MB, free: 7.297 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.1235, allocations: 4 kB / 356.2 MB, free: 7.293 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002482/0.1238, allocations: 141 kB / 356.4 MB, free: 7.156 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004959/0.1243, allocations: 78.19 kB / 356.5 MB, free: 7.086 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002253/0.1265, allocations: 1.576 MB / 358 MB, free: 5.465 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000489/0.127, allocations: 0.9171 MB / 359 MB, free: 4.52 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000148/0.1272, allocations: 47.33 kB / 359 MB, free: 4.469 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.507e-05/0.1273, allocations: 31.44 kB / 359 MB, free: 4.438 MB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1273, allocations: 0 / 359 MB, free: 4.438 MB / 302.1 MB Notification: Performance of Templates: time 0.008346/0.1356, allocations: 3.754 MB / 362.8 MB, free: 0.6836 MB / 302.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 -s cvode -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