Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001191/0.001191, allocations: 116.6 kB / 18.49 MB, free: 4.566 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001175/0.001175, allocations: 189 kB / 21.43 MB, free: 1.641 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.399/1.399, allocations: 225.6 MB / 249.8 MB, free: 3.625 MB / 190.1 MB " [Timeout remaining time 178] 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: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.FirstGrounded,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_FirstGrounded",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.FirstGrounded,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_FirstGrounded",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001476/0.001476, allocations: 47.92 kB / 366.3 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09397/0.09545, allocations: 52.15 MB / 418.5 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.FirstGrounded): time 0.003631/0.09908, allocations: 2.361 MB / 420.8 MB, free: 10.25 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009853/0.1001, allocations: 0.5842 MB / 421.4 MB, free: 9.656 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001203/0.1002, allocations: 7.938 kB / 421.4 MB, free: 9.648 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001361/0.1003, allocations: 35.64 kB / 421.5 MB, free: 9.613 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001445/0.1005, allocations: 71.36 kB / 421.5 MB, free: 9.543 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001929/0.1007, allocations: 55.86 kB / 421.6 MB, free: 9.488 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003039/0.101, allocations: 258.8 kB / 421.8 MB, free: 9.234 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001492/0.1011, allocations: 60.36 kB / 421.9 MB, free: 9.176 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001582/0.1013, allocations: 107.6 kB / 422 MB, free: 9.07 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001502/0.1014, allocations: 107.5 kB / 422.1 MB, free: 8.965 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.543e-05/0.1015, allocations: 20 kB / 422.1 MB, free: 8.945 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.197e-05/0.1015, allocations: 20 kB / 422.1 MB, free: 8.926 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.277e-05/0.1015, allocations: 47.84 kB / 422.2 MB, free: 8.879 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001105/0.1017, allocations: 111.4 kB / 422.3 MB, free: 8.77 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000313/0.102, allocations: 251 kB / 422.5 MB, free: 8.523 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.526e-06/0.102, allocations: 3.938 kB / 422.6 MB, free: 8.52 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.102, allocations: 0 / 422.6 MB, free: 8.52 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.014e-05/0.102, allocations: 0 / 422.6 MB, free: 8.52 MB / 350.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.0007367/0.1027, allocations: 0.5143 MB / 423.1 MB, free: 7.957 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.804e-05/0.1028, allocations: 16.03 kB / 423.1 MB, free: 7.941 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.48e-05/0.1028, allocations: 4.625 kB / 423.1 MB, free: 7.938 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.004e-05/0.1028, allocations: 54.67 kB / 423.1 MB, free: 7.875 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.408e-05/0.1029, allocations: 36.75 kB / 423.2 MB, free: 7.84 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003137/0.1032, allocations: 237.4 kB / 423.4 MB, free: 7.566 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.783e-05/0.1032, allocations: 12.81 kB / 423.4 MB, free: 7.555 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.662e-05/0.1033, allocations: 24.38 kB / 423.4 MB, free: 7.531 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003803/0.1036, allocations: 217.7 kB / 423.7 MB, free: 7.305 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.711e-05/0.1037, allocations: 3.953 kB / 423.7 MB, free: 7.301 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.374e-05/0.1037, allocations: 12 kB / 423.7 MB, free: 7.289 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.256e-05/0.1037, allocations: 4 kB / 423.7 MB, free: 7.285 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002685/0.104, allocations: 125.7 kB / 423.8 MB, free: 7.16 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001034/0.105, allocations: 0.7055 MB / 424.5 MB, free: 6.402 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002773/0.1053, allocations: 138.5 kB / 424.6 MB, free: 6.258 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001328/0.1054, allocations: 68.81 kB / 424.7 MB, free: 6.188 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.012e-05/0.1054, allocations: 0 / 424.7 MB, free: 6.188 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.045e-05/0.1055, allocations: 34.56 kB / 424.7 MB, free: 6.145 MB / 350.1 MB Notification: Performance of pre-optimization done (n=20): time 9.91e-07/0.1055, allocations: 0 / 424.7 MB, free: 6.145 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.00165/0.1071, allocations: 0.8875 MB / 425.6 MB, free: 5.168 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.165e-05/0.1072, allocations: 59.39 kB / 425.7 MB, free: 5.098 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001873/0.1073, allocations: 175.2 kB / 425.9 MB, free: 4.914 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.188e-05/0.1074, allocations: 29.7 kB / 425.9 MB, free: 4.879 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.552e-05/0.1075, allocations: 140.4 kB / 426 MB, free: 4.738 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.87e-05/0.1075, allocations: 91.22 kB / 426.1 MB, free: 4.648 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.376e-05/0.1076, allocations: 45.7 kB / 426.2 MB, free: 4.598 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001475/0.1078, allocations: 330.8 kB / 426.5 MB, free: 4.266 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001335/0.1079, allocations: 59.97 kB / 426.5 MB, free: 4.207 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001586/0.108, allocations: 100.2 kB / 426.6 MB, free: 4.094 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002948/0.1083, allocations: 172.1 kB / 426.8 MB, free: 3.91 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.213e-06/0.1083, allocations: 0 / 426.8 MB, free: 3.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.00047/0.1088, allocations: 254.1 kB / 427.1 MB, free: 3.652 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.908e-05/0.1088, allocations: 8 kB / 427.1 MB, free: 3.645 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.931e-06/0.1088, allocations: 0 / 427.1 MB, free: 3.645 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001596/0.109, allocations: 32.78 kB / 427.1 MB, free: 3.609 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002125/0.1092, allocations: 51.97 kB / 427.1 MB, free: 3.559 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001411/0.1106, allocations: 1.485 MB / 428.6 MB, free: 1.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001192/0.1107, allocations: 16.03 kB / 428.6 MB, free: 1.914 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.308e-05/0.1108, allocations: 15.98 kB / 428.7 MB, free: 1.898 MB / 350.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.0001351/0.1109, allocations: 133.7 kB / 428.8 MB, free: 1.758 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.431e-05/0.1109, allocations: 19.86 kB / 428.8 MB, free: 1.738 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.834e-05/0.111, allocations: 29.81 kB / 428.8 MB, free: 1.707 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.847e-06/0.111, allocations: 4 kB / 428.8 MB, free: 1.703 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.347e-06/0.111, allocations: 0 / 428.8 MB, free: 1.703 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.771e-06/0.111, allocations: 7.984 kB / 428.9 MB, free: 1.695 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009616/0.112, allocations: 0.648 MB / 429.5 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.434e-06/0.112, allocations: 0 / 429.5 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002207/0.1122, allocations: 39.98 kB / 429.5 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001276/0.1123, allocations: 44.89 kB / 429.6 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.535e-05/0.1123, allocations: 4 kB / 429.6 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001311/0.1137, allocations: 1.489 MB / 431.1 MB, free: 15.25 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/0.1137, allocations: 4.031 kB / 431.1 MB, free: 15.25 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006165/0.1143, allocations: 405.1 kB / 431.5 MB, free: 14.83 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.178e-05/0.1143, allocations: 97 kB / 431.6 MB, free: 14.71 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.291e-05/0.1144, allocations: 8 kB / 431.6 MB, free: 14.71 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001315/0.1145, allocations: 8 kB / 431.6 MB, free: 14.7 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.811e-05/0.1146, allocations: 23.84 kB / 431.6 MB, free: 14.68 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.266e-05/0.1146, allocations: 8 kB / 431.6 MB, free: 14.67 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000115/0.1147, allocations: 128.8 kB / 431.7 MB, free: 14.54 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1147, allocations: 0 / 431.7 MB, free: 14.54 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003287/0.115, allocations: 60 kB / 431.8 MB, free: 14.48 MB / 366.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.0009488/0.116, allocations: 0.9446 MB / 432.7 MB, free: 13.51 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005725/0.1165, allocations: 278.4 kB / 433 MB, free: 13.22 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.1165, allocations: 0 / 433 MB, free: 13.22 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003225/0.1169, allocations: 210.9 kB / 433.2 MB, free: 13 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004169/0.1173, allocations: 46.56 kB / 433.3 MB, free: 12.96 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003392/0.1207, allocations: 2.543 MB / 435.8 MB, free: 10.3 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004132/0.1211, allocations: 0.752 MB / 436.6 MB, free: 9.512 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.024e-05/0.1212, allocations: 21.94 kB / 436.6 MB, free: 9.492 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001135/0.1213, allocations: 63.42 kB / 436.6 MB, free: 9.43 MB / 366.1 MB Notification: Performance of SimCode: time 6.71e-07/0.1213, allocations: 0 / 436.6 MB, free: 9.43 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02816/0.1494, allocations: 4.825 MB / 441.5 MB, free: 4.762 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.93/10.08, allocations: 8 kB / 441.5 MB, free: 4.754 MB / 366.1 MB " [Timeout remaining time 650] (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_FirstGrounded_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_FirstGrounded.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded_res.mat","/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_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,damper.phi_rel,damper.w_rel,inertia3.phi,inertia3.w Variables in the result:Jload,Jmotor,amplitude,damper.a_rel,damper.d,damper.flange_a.phi,damper.flange_a.tau,damper.flange_b.phi,damper.flange_b.tau,damper.lossPower,damper.phi_nominal,damper.phi_rel,damper.stateSelect,damper.tau,damper.useHeatPort,damper.w_rel,damping,der(damper.phi_rel),der(damper.w_rel),der(inertia1.phi),der(inertia1.w),der(inertia2.phi),der(inertia2.w),der(inertia3.phi),der(inertia3.w),f,fixed.flange.phi,fixed.flange.tau,fixed.phi0,idealGear.flange_a.phi,idealGear.flange_a.tau,idealGear.flange_b.phi,idealGear.flange_b.tau,idealGear.phi_a,idealGear.phi_b,idealGear.ratio,idealGear.useSupport,inertia1.J,inertia1.a,inertia1.flange_a.phi,inertia1.flange_a.tau,inertia1.flange_b.phi,inertia1.flange_b.tau,inertia1.phi,inertia1.stateSelect,inertia1.w,inertia2.J,inertia2.a,inertia2.flange_a.phi,inertia2.flange_a.tau,inertia2.flange_b.phi,inertia2.flange_b.tau,inertia2.phi,inertia2.stateSelect,inertia2.w,inertia3.J,inertia3.a,inertia3.flange_a.phi,inertia3.flange_a.tau,inertia3.flange_b.phi,inertia3.flange_b.tau,inertia3.phi,inertia3.stateSelect,inertia3.w,ratio,sine.amplitude,sine.f,sine.offset,sine.phase,sine.startTime,sine.y,spring.c,spring.flange_a.phi,spring.flange_a.tau,spring.flange_b.phi,spring.flange_b.tau,spring.phi_rel,spring.phi_rel0,spring.tau,time,torque.flange.phi,torque.flange.tau,torque.tau,torque.useSupport [Calling sys.exit(0), Time elapsed: 12.581987062003464]