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.001463/0.001463, allocations: 111.8 kB / 17.68 MB, free: 5.355 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.001485/0.001485, allocations: 190.9 kB / 18.62 MB, free: 4.434 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.344/1.344, allocations: 222.9 MB / 242.3 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001192/0.001192, allocations: 47.56 kB / 302 MB, free: 5.16 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09487/0.09608, allocations: 49.44 MB / 351.5 MB, free: 3.695 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.006531/0.1027, allocations: 5.433 MB / 356.9 MB, free: 14.23 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003799/0.1065, allocations: 2.075 MB / 359 MB, free: 12.14 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009054/0.1074, allocations: 35.81 kB / 359 MB, free: 12.11 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000579/0.1081, allocations: 206.2 kB / 359.2 MB, free: 11.91 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004926/0.1086, allocations: 178.4 kB / 359.4 MB, free: 11.73 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001007/0.1096, allocations: 391.1 kB / 359.8 MB, free: 11.35 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001015/0.1106, allocations: 1.025 MB / 360.8 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007365/0.1114, allocations: 0.5948 MB / 361.4 MB, free: 9.703 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003507/0.1117, allocations: 342.8 kB / 361.7 MB, free: 9.367 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003369/0.1121, allocations: 362.3 kB / 362.1 MB, free: 9.012 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001008/0.1122, allocations: 92 kB / 362.2 MB, free: 8.922 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002212/0.1124, allocations: 151.9 kB / 362.3 MB, free: 8.773 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001553/0.1126, allocations: 199.4 kB / 362.5 MB, free: 8.578 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003468/0.1129, allocations: 438 kB / 363 MB, free: 8.148 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009192/0.1139, allocations: 1.172 MB / 364.1 MB, free: 6.973 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.1139, allocations: 0 / 364.1 MB, free: 6.973 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1139, allocations: 0 / 364.1 MB, free: 6.973 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.553e-05/0.1139, allocations: 4 kB / 364.1 MB, free: 6.969 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.001358/0.1153, allocations: 1.026 MB / 365.2 MB, free: 5.891 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.419e-05/0.1153, allocations: 11.97 kB / 365.2 MB, free: 5.879 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000126/0.1154, allocations: 87.91 kB / 365.3 MB, free: 5.793 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007903/0.1162, allocations: 0.5182 MB / 365.8 MB, free: 5.234 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.66e-05/0.1163, allocations: 66.36 kB / 365.8 MB, free: 5.172 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001114/0.1164, allocations: 88.28 kB / 365.9 MB, free: 5.086 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001289/0.1177, allocations: 0.8125 MB / 366.7 MB, free: 4.234 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.957e-05/0.1178, allocations: 3.984 kB / 366.7 MB, free: 4.23 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.73e-05/0.1178, allocations: 36 kB / 366.8 MB, free: 4.195 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.933e-05/0.1178, allocations: 24 kB / 366.8 MB, free: 4.172 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008963/0.1187, allocations: 0.4918 MB / 367.3 MB, free: 3.684 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002831/0.1216, allocations: 2.856 MB / 370.1 MB, free: 0.7031 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005074/0.1221, allocations: 223.2 kB / 370.4 MB, free: 484 kB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001671/0.1223, allocations: 108.6 kB / 370.5 MB, free: 372 kB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001914/0.1225, allocations: 247.3 kB / 370.7 MB, free: 68 kB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.332e-05/0.1225, allocations: 38.55 kB / 370.7 MB, free: 20 kB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 1.734e-06/0.1225, allocations: 0 / 370.7 MB, free: 20 kB / 302.1 MB Notification: Performance of matching and sorting (n=35): time 0.1454/0.268, allocations: 1.256 MB / 372 MB, free: 25.24 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.055e-05/0.268, allocations: 56 kB / 372.1 MB, free: 25.18 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003152/0.2684, allocations: 304.1 kB / 372.4 MB, free: 25.06 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.711e-05/0.2684, allocations: 32.2 kB / 372.4 MB, free: 25.03 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001954/0.2686, allocations: 401.7 kB / 372.8 MB, free: 24.79 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.759e-05/0.2687, allocations: 130.2 kB / 372.9 MB, free: 24.7 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001113/0.2688, allocations: 89.66 kB / 373 MB, free: 24.68 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.3e-05/0.2689, allocations: 351.5 kB / 373.3 MB, free: 24.37 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000201/0.2691, allocations: 109.7 kB / 373.4 MB, free: 24.37 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000243/0.2693, allocations: 251 kB / 373.7 MB, free: 24.16 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004239/0.2698, allocations: 394 kB / 374.1 MB, free: 23.89 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.846e-06/0.2698, allocations: 1.375 kB / 374.1 MB, free: 23.89 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0006479/0.2704, allocations: 460.7 kB / 374.5 MB, free: 23.68 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.839e-05/0.2705, allocations: 11.77 kB / 374.5 MB, free: 23.68 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.292e-05/0.2705, allocations: 5.438 kB / 374.5 MB, free: 23.68 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001812/0.2707, allocations: 34.59 kB / 374.6 MB, free: 23.67 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000372/0.2711, allocations: 116 kB / 374.7 MB, free: 23.66 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002516/0.2713, allocations: 0.5537 MB / 375.2 MB, free: 23.12 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001779/0.2715, allocations: 15.38 kB / 375.3 MB, free: 23.11 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.857e-05/0.2715, allocations: 22.28 kB / 375.3 MB, free: 23.11 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.0002315/0.2718, allocations: 220.9 kB / 375.5 MB, free: 22.93 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.116e-05/0.2719, allocations: 42.23 kB / 375.5 MB, free: 22.9 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005399/0.2724, allocations: 326.5 kB / 375.9 MB, free: 22.75 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.438e-06/0.2724, allocations: 2.844 kB / 375.9 MB, free: 22.75 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.668e-06/0.2724, allocations: 2.062 kB / 375.9 MB, free: 22.75 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.149e-06/0.2724, allocations: 3.703 kB / 375.9 MB, free: 22.75 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00128/0.2737, allocations: 1.014 MB / 376.9 MB, free: 22.13 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.328e-06/0.2737, allocations: 1.375 kB / 376.9 MB, free: 22.13 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003684/0.2741, allocations: 80.17 kB / 377 MB, free: 22.13 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001413/0.2743, allocations: 32.2 kB / 377 MB, free: 22.12 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.828e-05/0.2743, allocations: 14.95 kB / 377 MB, free: 22.11 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002475/0.2746, allocations: 0.5486 MB / 377.6 MB, free: 21.57 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.464e-06/0.2746, allocations: 5.312 kB / 377.6 MB, free: 21.57 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006897/0.2753, allocations: 0.5471 MB / 378.1 MB, free: 21.22 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.552e-05/0.2753, allocations: 107.5 kB / 378.2 MB, free: 21.11 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.523e-05/0.2754, allocations: 9.703 kB / 378.2 MB, free: 21.11 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001523/0.2755, allocations: 15.02 kB / 378.2 MB, free: 21.1 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.697e-05/0.2756, allocations: 18.8 kB / 378.3 MB, free: 21.1 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.449e-05/0.2756, allocations: 17.55 kB / 378.3 MB, free: 21.09 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001966/0.2758, allocations: 208.8 kB / 378.5 MB, free: 20.98 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.31e-07/0.2759, allocations: 1.469 kB / 378.5 MB, free: 20.98 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.00061/0.2765, allocations: 120.1 kB / 378.6 MB, free: 20.96 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.0001619/0.2766, allocations: 128.2 kB / 378.7 MB, free: 20.87 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005929/0.2772, allocations: 313.5 kB / 379 MB, free: 20.77 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.2773, allocations: 1.438 kB / 379 MB, free: 20.77 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002545/0.2775, allocations: 145.5 kB / 379.2 MB, free: 20.72 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004889/0.278, allocations: 69.61 kB / 379.2 MB, free: 20.69 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002148/0.2802, allocations: 1.576 MB / 380.8 MB, free: 19.65 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004/0.2806, allocations: 0.923 MB / 381.7 MB, free: 18.94 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001592/0.2808, allocations: 51 kB / 381.8 MB, free: 18.93 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.472e-05/0.2808, allocations: 31.86 kB / 381.8 MB, free: 18.92 MB / 302.1 MB Notification: Performance of SimCode: time 4.41e-07/0.2808, allocations: 1.219 kB / 381.8 MB, free: 18.92 MB / 302.1 MB Notification: Performance of Templates: time 0.009494/0.2903, allocations: 3.751 MB / 385.6 MB, free: 18.61 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 -s gbode -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