Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.FirstGrounded.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.FirstGrounded,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_FirstGrounded",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.FirstGrounded,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_FirstGrounded",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001715/0.001715, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002297/0.002297, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.418/1.418, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001301/0.001301, allocations: 66.48 kB / 307 MB, free: 0.5547 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1018/0.1031, allocations: 50.53 MB / 357.6 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.FirstGrounded): time 0.003816/0.107, allocations: 2.357 MB / 359.9 MB, free: 11.64 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001351/0.1084, allocations: 0.6426 MB / 360.6 MB, free: 11 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002049/0.1086, allocations: 4 kB / 360.6 MB, free: 10.99 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001735/0.1088, allocations: 35.66 kB / 360.6 MB, free: 10.96 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002124/0.109, allocations: 75.33 kB / 360.7 MB, free: 10.88 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002792/0.1093, allocations: 63.86 kB / 360.8 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003236/0.1096, allocations: 262.7 kB / 361 MB, free: 10.56 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001974/0.1099, allocations: 92.28 kB / 361.1 MB, free: 10.47 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002285/0.1101, allocations: 103.6 kB / 361.2 MB, free: 10.37 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001704/0.1103, allocations: 103.5 kB / 361.3 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.008e-05/0.1103, allocations: 20 kB / 361.3 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.678e-05/0.1104, allocations: 24 kB / 361.3 MB, free: 10.22 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.027e-05/0.1105, allocations: 47.78 kB / 361.4 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001188/0.1106, allocations: 115.4 kB / 361.5 MB, free: 10.06 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002863/0.1109, allocations: 255.4 kB / 361.8 MB, free: 9.812 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.1109, allocations: 0 / 361.8 MB, free: 9.812 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.266e-06/0.1109, allocations: 0 / 361.8 MB, free: 9.812 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.359e-05/0.1109, allocations: 3.938 kB / 361.8 MB, free: 9.809 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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0008442/0.1118, allocations: 0.5069 MB / 362.3 MB, free: 9.254 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.317e-05/0.1118, allocations: 15.97 kB / 362.3 MB, free: 9.238 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.585e-05/0.1119, allocations: 54.67 kB / 362.3 MB, free: 9.176 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001672/0.1121, allocations: 36.64 kB / 362.4 MB, free: 9.141 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002831/0.1124, allocations: 238.1 kB / 362.6 MB, free: 8.867 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.851e-05/0.1124, allocations: 20.81 kB / 362.6 MB, free: 8.844 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.928e-05/0.1124, allocations: 20.38 kB / 362.6 MB, free: 8.824 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003528/0.1128, allocations: 218 kB / 362.9 MB, free: 8.598 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.86e-05/0.1128, allocations: 8 kB / 362.9 MB, free: 8.59 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.843e-05/0.1129, allocations: 4 kB / 362.9 MB, free: 8.586 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.813e-06/0.1129, allocations: 4 kB / 362.9 MB, free: 8.582 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002586/0.1131, allocations: 129.6 kB / 363 MB, free: 8.457 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001026/0.1142, allocations: 0.7093 MB / 363.7 MB, free: 7.695 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002548/0.1144, allocations: 145.5 kB / 363.9 MB, free: 7.547 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001376/0.1146, allocations: 76.77 kB / 363.9 MB, free: 7.469 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.201e-05/0.1146, allocations: 4 kB / 363.9 MB, free: 7.465 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.584e-05/0.1146, allocations: 38.56 kB / 364 MB, free: 7.418 MB / 302.1 MB Notification: Performance of pre-optimization done (n=20): time 1.253e-06/0.1147, allocations: 0 / 364 MB, free: 7.418 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.001772/0.1164, allocations: 0.8957 MB / 364.9 MB, free: 6.438 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.927e-05/0.1165, allocations: 55.41 kB / 364.9 MB, free: 6.371 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001932/0.1167, allocations: 172.3 kB / 365.1 MB, free: 6.191 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.184e-05/0.1167, allocations: 33.7 kB / 365.1 MB, free: 6.152 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001059/0.1168, allocations: 140.3 kB / 365.3 MB, free: 6.012 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.483e-05/0.1169, allocations: 94.66 kB / 365.3 MB, free: 5.918 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.372e-05/0.117, allocations: 45.7 kB / 365.4 MB, free: 5.867 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001698/0.1172, allocations: 330.8 kB / 365.7 MB, free: 5.535 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001327/0.1173, allocations: 51.98 kB / 365.8 MB, free: 5.484 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001623/0.1175, allocations: 108.2 kB / 365.9 MB, free: 5.363 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002907/0.1178, allocations: 168.8 kB / 366 MB, free: 5.184 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.764e-06/0.1178, allocations: 0 / 366 MB, free: 5.184 MB / 302.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004701/0.1183, allocations: 254.1 kB / 366.3 MB, free: 4.926 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.987e-05/0.1183, allocations: 8 kB / 366.3 MB, free: 4.918 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.091e-06/0.1183, allocations: 3.938 kB / 366.3 MB, free: 4.914 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001652/0.1185, allocations: 28.84 kB / 366.3 MB, free: 4.883 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002144/0.1187, allocations: 51.91 kB / 366.4 MB, free: 4.832 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001354/0.1201, allocations: 1.481 MB / 367.9 MB, free: 3.207 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001339/0.1202, allocations: 12.09 kB / 367.9 MB, free: 3.195 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.648e-05/0.1203, allocations: 8 kB / 367.9 MB, free: 3.188 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (28): * Single equations (assignments): 27 * 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): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001307/0.1204, allocations: 141.7 kB / 368 MB, free: 3.039 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.221e-05/0.1205, allocations: 19.72 kB / 368 MB, free: 3.02 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.547e-05/0.1205, allocations: 25.88 kB / 368.1 MB, free: 2.996 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.06e-06/0.1205, allocations: 7.938 kB / 368.1 MB, free: 2.988 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.1205, allocations: 0 / 368.1 MB, free: 2.988 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.57e-06/0.1206, allocations: 7.922 kB / 368.1 MB, free: 2.98 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009404/0.1215, allocations: 0.6521 MB / 368.7 MB, free: 2.254 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.372e-06/0.1215, allocations: 7.984 kB / 368.7 MB, free: 2.246 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000213/0.1217, allocations: 43.98 kB / 368.8 MB, free: 2.203 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001181/0.1219, allocations: 36.83 kB / 368.8 MB, free: 2.164 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.834e-05/0.1219, allocations: 4 kB / 368.8 MB, free: 2.16 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001355/0.1233, allocations: 1.481 MB / 370.3 MB, free: 0.543 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.1233, allocations: 0 / 370.3 MB, free: 0.543 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006403/0.1239, allocations: 406 kB / 370.7 MB, free: 124 kB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.024e-05/0.124, allocations: 92.95 kB / 370.8 MB, free: 12 kB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.149e-05/0.124, allocations: 8 kB / 370.8 MB, free: 4 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001292/0.1242, allocations: 4 kB / 370.8 MB, free: 0 / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.1752/0.2994, allocations: 19.2 kB / 370.8 MB, free: 20.04 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.256e-05/0.2995, allocations: 9.484 kB / 370.8 MB, free: 20.04 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001377/0.2997, allocations: 125.1 kB / 370.9 MB, free: 19.96 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2997, allocations: 1.125 kB / 370.9 MB, free: 19.96 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004911/0.3002, allocations: 59.38 kB / 371 MB, free: 19.96 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (inertia3.phi,inertia3.w,damper.phi_rel,damper.w_rel) * 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 (21): * Single equations (assignments): 20 * 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): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0008263/0.301, allocations: 0.9402 MB / 371.9 MB, free: 19.29 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005758/0.3016, allocations: 301.2 kB / 372.2 MB, free: 19.17 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.3016, allocations: 1 kB / 372.2 MB, free: 19.17 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002864/0.3019, allocations: 220.4 kB / 372.5 MB, free: 19.06 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004797/0.3024, allocations: 41.69 kB / 372.5 MB, free: 19.06 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003071/0.3055, allocations: 2.532 MB / 375 MB, free: 17.56 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002139/0.3057, allocations: 0.748 MB / 375.8 MB, free: 16.86 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.473e-05/0.3058, allocations: 21.58 kB / 375.8 MB, free: 16.86 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.83e-05/0.3059, allocations: 72.62 kB / 375.9 MB, free: 16.84 MB / 302.1 MB Notification: Performance of SimCode: time 4.11e-07/0.3059, allocations: 0.5 kB / 375.9 MB, free: 16.84 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02718/0.3331, allocations: 4.66 MB / 380.5 MB, free: 16.26 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.389/9.722, allocations: 8.688 kB / 380.5 MB, free: 16.26 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.FirstGrounded.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Mechanics.Rotational.Examples.FirstGrounded_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_trunk_Modelica_Mechanics_Rotational_Examples_FirstGrounded.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.FirstGrounded_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/FirstGrounded/FirstGrounded.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.FirstGrounded.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches