Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00196/0.00196, allocations: 109.6 kB / 21.18 MB, free: 0.6992 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002328/0.002328, allocations: 216.7 kB / 24.49 MB, free: 4.031 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.411/1.411, allocations: 207.6 MB / 235.3 MB, free: 10.02 MB / 190.1 MB " [Timeout remaining time 178] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.First,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_First",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.First,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_First",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001793/0.001793, allocations: 55.92 kB / 347.2 MB, free: 10.06 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2911/0.2929, allocations: 49.16 MB / 396.3 MB, free: 8.984 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.First): time 0.003592/0.2965, allocations: 2.371 MB / 398.7 MB, free: 7.375 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001013/0.2975, allocations: 0.6391 MB / 399.4 MB, free: 6.91 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000132/0.2977, allocations: 12.94 kB / 399.4 MB, free: 6.902 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001664/0.2978, allocations: 32.38 kB / 399.4 MB, free: 6.883 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001583/0.298, allocations: 84.12 kB / 399.5 MB, free: 6.82 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002306/0.2982, allocations: 51.17 kB / 399.5 MB, free: 6.793 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003056/0.2985, allocations: 276.1 kB / 399.8 MB, free: 6.652 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001974/0.2987, allocations: 80.33 kB / 399.9 MB, free: 6.609 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001569/0.2989, allocations: 110.2 kB / 400 MB, free: 6.559 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001694/0.299, allocations: 115.2 kB / 400.1 MB, free: 6.5 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.79e-05/0.2991, allocations: 20.91 kB / 400.1 MB, free: 6.5 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.293e-05/0.2991, allocations: 20.5 kB / 400.1 MB, free: 6.5 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.672e-05/0.2992, allocations: 50.59 kB / 400.2 MB, free: 6.465 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001323/0.2993, allocations: 121.5 kB / 400.3 MB, free: 6.395 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003532/0.2997, allocations: 266.3 kB / 400.6 MB, free: 6.289 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.481e-06/0.2997, allocations: 5.891 kB / 400.6 MB, free: 6.285 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.2997, allocations: 0 / 400.6 MB, free: 6.285 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.522e-06/0.2997, allocations: 0 / 400.6 MB, free: 6.285 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.0007152/0.3004, allocations: 460.3 kB / 401 MB, free: 5.914 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.164e-05/0.3004, allocations: 13.73 kB / 401 MB, free: 5.91 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.774e-05/0.3005, allocations: 54.41 kB / 401.1 MB, free: 5.859 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.951e-05/0.3005, allocations: 29.31 kB / 401.1 MB, free: 5.844 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002722/0.3008, allocations: 188.1 kB / 401.3 MB, free: 5.672 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.039e-05/0.3008, allocations: 17.28 kB / 401.3 MB, free: 5.664 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.486e-05/0.3009, allocations: 28.52 kB / 401.3 MB, free: 5.652 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003484/0.3012, allocations: 191.7 kB / 401.5 MB, free: 5.559 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.867e-05/0.3012, allocations: 4.703 kB / 401.5 MB, free: 5.555 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.882e-05/0.3013, allocations: 6.906 kB / 401.5 MB, free: 5.551 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.486e-06/0.3013, allocations: 9.656 kB / 401.6 MB, free: 5.547 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002803/0.3015, allocations: 136.9 kB / 401.7 MB, free: 5.508 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009144/0.3025, allocations: 0.5834 MB / 402.3 MB, free: 5.109 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002956/0.3028, allocations: 170.8 kB / 402.4 MB, free: 5.031 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001592/0.3029, allocations: 90.02 kB / 402.5 MB, free: 4.996 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.357e-05/0.3029, allocations: 6.281 kB / 402.5 MB, free: 4.992 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.916e-05/0.303, allocations: 32.7 kB / 402.6 MB, free: 4.953 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.272e-06/0.303, allocations: 3.938 kB / 402.6 MB, free: 4.949 MB / 318.1 MB Notification: Performance of matching and sorting (n=32): time 0.001792/0.3048, allocations: 0.9223 MB / 403.5 MB, free: 4.398 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.15e-05/0.3048, allocations: 63.14 kB / 403.6 MB, free: 4.328 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001762/0.305, allocations: 177.4 kB / 403.7 MB, free: 4.207 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.889e-05/0.305, allocations: 32.02 kB / 403.8 MB, free: 4.172 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.854e-05/0.305, allocations: 141 kB / 403.9 MB, free: 4.043 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.376e-05/0.3051, allocations: 118.1 kB / 404 MB, free: 3.949 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.601e-05/0.3052, allocations: 58.53 kB / 404.1 MB, free: 3.91 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.841e-05/0.3053, allocations: 329.5 kB / 404.4 MB, free: 3.59 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001362/0.3054, allocations: 70.7 kB / 404.5 MB, free: 3.566 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001676/0.3056, allocations: 106.8 kB / 404.6 MB, free: 3.512 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002903/0.3059, allocations: 202 kB / 404.8 MB, free: 3.402 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.192e-06/0.3059, allocations: 2.562 kB / 404.8 MB, free: 3.402 MB / 318.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0004628/0.3063, allocations: 292.3 kB / 405 MB, free: 3.262 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.413e-05/0.3063, allocations: 5.672 kB / 405.1 MB, free: 3.262 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.843e-06/0.3064, allocations: 1.062 kB / 405.1 MB, free: 3.262 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001944/0.3065, allocations: 50.91 kB / 405.1 MB, free: 3.238 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002732/0.3068, allocations: 56.31 kB / 405.2 MB, free: 3.234 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001243/0.3081, allocations: 1.639 MB / 406.8 MB, free: 1.699 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001305/0.3082, allocations: 9.766 kB / 406.8 MB, free: 1.695 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.852e-05/0.3082, allocations: 10.12 kB / 406.8 MB, free: 1.691 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (32): * Single equations (assignments): 31 * 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,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001231/0.3083, allocations: 133.4 kB / 406.9 MB, free: 1.562 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.757e-05/0.3084, allocations: 30.98 kB / 407 MB, free: 1.543 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.177e-05/0.3084, allocations: 31.41 kB / 407 MB, free: 1.516 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.596e-06/0.3084, allocations: 8.516 kB / 407 MB, free: 1.512 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.155e-06/0.3084, allocations: 1.656 kB / 407 MB, free: 1.512 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.53e-06/0.3085, allocations: 3.469 kB / 407 MB, free: 1.512 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001002/0.3095, allocations: 0.7461 MB / 407.8 MB, free: 0.9961 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.497e-06/0.3095, allocations: 1.562 kB / 407.8 MB, free: 0.9961 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002542/0.3097, allocations: 65.66 kB / 407.8 MB, free: 0.9844 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001108/0.3098, allocations: 31.78 kB / 407.9 MB, free: 0.9727 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.738e-05/0.3098, allocations: 7.406 kB / 407.9 MB, free: 0.9688 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009894/0.3108, allocations: 1.387 MB / 409.3 MB, free: 15.62 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.3108, allocations: 5.312 kB / 409.3 MB, free: 15.62 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007429/0.3116, allocations: 497.2 kB / 409.7 MB, free: 15.31 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.091e-05/0.3116, allocations: 19.88 kB / 409.8 MB, free: 15.3 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.053e-05/0.3116, allocations: 7.578 kB / 409.8 MB, free: 15.29 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001476/0.3118, allocations: 8.828 kB / 409.8 MB, free: 15.29 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.331e-05/0.3119, allocations: 28.33 kB / 409.8 MB, free: 15.28 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.393e-05/0.3119, allocations: 6.875 kB / 409.8 MB, free: 15.28 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001234/0.312, allocations: 131.4 kB / 409.9 MB, free: 15.19 MB / 334.1 MB Notification: Performance of sort global known variables: time 5e-08/0.312, allocations: 0 / 409.9 MB, free: 15.19 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003883/0.3124, allocations: 63.88 kB / 410 MB, free: 15.18 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (29): * Single equations (assignments): 28 * 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.001116/0.3135, allocations: 1.017 MB / 411 MB, free: 14.35 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006672/0.3142, allocations: 331.8 kB / 411.3 MB, free: 14.16 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.3142, allocations: 0 / 411.3 MB, free: 14.16 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003674/0.3145, allocations: 240.6 kB / 411.6 MB, free: 14.01 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004573/0.315, allocations: 44.48 kB / 411.6 MB, free: 13.99 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004191/0.3192, allocations: 2.746 MB / 414.4 MB, free: 12.02 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004566/0.3196, allocations: 0.7584 MB / 415.1 MB, free: 11.32 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001142/0.3198, allocations: 30.03 kB / 415.2 MB, free: 11.31 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001298/0.3199, allocations: 75.69 kB / 415.2 MB, free: 11.26 MB / 334.1 MB Notification: Performance of SimCode: time 8.02e-07/0.3199, allocations: 0 / 415.2 MB, free: 11.26 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03843/0.3583, allocations: 5.522 MB / 420.8 MB, free: 8.691 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.62/11.98, allocations: 9.219 kB / 420.8 MB, free: 8.684 MB / 334.1 MB " [Timeout remaining time 648] (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_First.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/First/First.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.First.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.4747389510012]