Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.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.001566/0.001566, allocations: 116.6 kB / 18.49 MB, free: 4.59 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.001539/0.001539, allocations: 193 kB / 21.43 MB, free: 1.66 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.411/1.411, allocations: 225.6 MB / 249.8 MB, free: 3.613 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.First,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_First",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.First,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_First",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001472/0.001472, allocations: 47.94 kB / 366.3 MB, free: 0.8516 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09049/0.09196, allocations: 52.14 MB / 418.5 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.First): time 0.003651/0.09561, allocations: 2.357 MB / 420.8 MB, free: 10.25 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009785/0.09659, allocations: 0.5881 MB / 421.4 MB, free: 9.652 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001086/0.0967, allocations: 7.938 kB / 421.4 MB, free: 9.645 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001507/0.09685, allocations: 35.66 kB / 421.5 MB, free: 9.609 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001568/0.09701, allocations: 79.27 kB / 421.5 MB, free: 9.531 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001858/0.09719, allocations: 51.94 kB / 421.6 MB, free: 9.48 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003198/0.09751, allocations: 278.7 kB / 421.9 MB, free: 9.207 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001825/0.0977, allocations: 78.77 kB / 421.9 MB, free: 9.129 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001577/0.09785, allocations: 107.6 kB / 422.1 MB, free: 9.023 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001656/0.09802, allocations: 111.5 kB / 422.2 MB, free: 8.914 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.711e-05/0.09806, allocations: 24 kB / 422.2 MB, free: 8.891 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.648e-05/0.09809, allocations: 20 kB / 422.2 MB, free: 8.871 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.677e-05/0.09814, allocations: 47.78 kB / 422.3 MB, free: 8.824 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001295/0.09827, allocations: 123.4 kB / 422.4 MB, free: 8.703 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003309/0.0986, allocations: 270.8 kB / 422.6 MB, free: 8.438 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.08e-06/0.0986, allocations: 4 kB / 422.6 MB, free: 8.434 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.09861, allocations: 0 / 422.6 MB, free: 8.434 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.05e-05/0.09862, allocations: 4 kB / 422.6 MB, free: 8.43 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: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.0007535/0.09937, allocations: 0.5245 MB / 423.2 MB, free: 7.859 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.663e-05/0.09941, allocations: 11.89 kB / 423.2 MB, free: 7.848 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.792e-05/0.09942, allocations: 8.625 kB / 423.2 MB, free: 7.84 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.295e-05/0.09948, allocations: 54.73 kB / 423.2 MB, free: 7.777 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.918e-05/0.09953, allocations: 32.69 kB / 423.3 MB, free: 7.746 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003205/0.09985, allocations: 245.4 kB / 423.5 MB, free: 7.465 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.216e-05/0.09987, allocations: 16.81 kB / 423.5 MB, free: 7.445 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.036e-05/0.09992, allocations: 28.33 kB / 423.6 MB, free: 7.418 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003689/0.1003, allocations: 195.1 kB / 423.7 MB, free: 7.227 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.266e-05/0.1003, allocations: 11.98 kB / 423.8 MB, free: 7.215 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.937e-05/0.1003, allocations: 4 kB / 423.8 MB, free: 7.211 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.057e-06/0.1003, allocations: 8 kB / 423.8 MB, free: 7.203 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002875/0.1006, allocations: 137.6 kB / 423.9 MB, free: 7.062 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009741/0.1016, allocations: 0.6309 MB / 424.5 MB, free: 6.383 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003126/0.1019, allocations: 166.6 kB / 424.7 MB, free: 6.211 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001768/0.1021, allocations: 88.81 kB / 424.8 MB, free: 6.121 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.486e-05/0.1021, allocations: 8 kB / 424.8 MB, free: 6.113 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.842e-05/0.1021, allocations: 30.56 kB / 424.8 MB, free: 6.074 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.402e-06/0.1021, allocations: 0 / 424.8 MB, free: 6.074 MB / 350.1 MB Notification: Performance of matching and sorting (n=32): time 0.002011/0.1042, allocations: 1.075 MB / 425.9 MB, free: 4.91 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.007e-05/0.1042, allocations: 55.41 kB / 426 MB, free: 4.844 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001877/0.1044, allocations: 179.1 kB / 426.1 MB, free: 4.656 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.667e-05/0.1044, allocations: 29.7 kB / 426.2 MB, free: 4.621 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001033/0.1045, allocations: 144.8 kB / 426.3 MB, free: 4.473 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.4e-05/0.1046, allocations: 115 kB / 426.4 MB, free: 4.359 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.361e-05/0.1047, allocations: 57.69 kB / 426.5 MB, free: 4.297 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001478/0.1048, allocations: 330.8 kB / 426.8 MB, free: 3.965 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001504/0.105, allocations: 75.95 kB / 426.9 MB, free: 3.891 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001775/0.1052, allocations: 106.9 kB / 427 MB, free: 3.777 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003356/0.1055, allocations: 193.3 kB / 427.2 MB, free: 3.582 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.272e-06/0.1055, allocations: 0 / 427.2 MB, free: 3.582 MB / 350.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0005319/0.106, allocations: 302.2 kB / 427.5 MB, free: 3.277 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.752e-05/0.1061, allocations: 4 kB / 427.5 MB, free: 3.273 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.244e-06/0.1061, allocations: 4 kB / 427.5 MB, free: 3.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001864/0.1063, allocations: 40.83 kB / 427.5 MB, free: 3.227 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002523/0.1065, allocations: 55.91 kB / 427.6 MB, free: 3.172 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001641/0.1082, allocations: 1.756 MB / 429.3 MB, free: 1.281 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001215/0.1083, allocations: 8 kB / 429.3 MB, free: 1.273 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.883e-05/0.1083, allocations: 11.98 kB / 429.3 MB, free: 1.262 MB / 350.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.0001403/0.1084, allocations: 141.7 kB / 429.5 MB, free: 1.113 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.054e-05/0.1085, allocations: 23.86 kB / 429.5 MB, free: 1.09 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.337e-05/0.1085, allocations: 30.66 kB / 429.5 MB, free: 1.062 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.098e-06/0.1085, allocations: 8.062 kB / 429.5 MB, free: 1.055 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.1086, allocations: 0 / 429.5 MB, free: 1.055 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.382e-06/0.1086, allocations: 3.984 kB / 429.5 MB, free: 1.051 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001172/0.1097, allocations: 0.7814 MB / 430.3 MB, free: 196 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.879e-06/0.1097, allocations: 8.094 kB / 430.3 MB, free: 188 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002725/0.11, allocations: 55.91 kB / 430.4 MB, free: 132 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001319/0.1101, allocations: 36.83 kB / 430.4 MB, free: 92 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.902e-05/0.1102, allocations: 8.188 kB / 430.4 MB, free: 84 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001263/0.1114, allocations: 1.493 MB / 431.9 MB, free: 14.44 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.1114, allocations: 0 / 431.9 MB, free: 14.44 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000717/0.1121, allocations: 490.6 kB / 432.4 MB, free: 13.93 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.341e-05/0.1122, allocations: 97 kB / 432.5 MB, free: 13.82 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.734e-05/0.1122, allocations: 8 kB / 432.5 MB, free: 13.81 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001392/0.1124, allocations: 12 kB / 432.5 MB, free: 13.8 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.455e-05/0.1124, allocations: 23.97 kB / 432.5 MB, free: 13.77 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.738e-05/0.1125, allocations: 8 kB / 432.5 MB, free: 13.77 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001233/0.1126, allocations: 135.2 kB / 432.7 MB, free: 13.63 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1126, allocations: 0 / 432.7 MB, free: 13.63 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003679/0.113, allocations: 64 kB / 432.7 MB, free: 13.57 MB / 366.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.001067/0.114, allocations: 1.024 MB / 433.8 MB, free: 12.51 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006124/0.1146, allocations: 335.6 kB / 434.1 MB, free: 12.17 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.1146, allocations: 0 / 434.1 MB, free: 12.17 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003564/0.115, allocations: 230.5 kB / 434.3 MB, free: 11.93 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004259/0.1154, allocations: 42.31 kB / 434.4 MB, free: 11.89 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003664/0.1191, allocations: 2.741 MB / 437.1 MB, free: 9.031 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003961/0.1195, allocations: 0.7563 MB / 437.8 MB, free: 8.25 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.556e-05/0.1196, allocations: 26.3 kB / 437.9 MB, free: 8.227 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000123/0.1197, allocations: 75.41 kB / 437.9 MB, free: 8.152 MB / 366.1 MB Notification: Performance of SimCode: time 5.82e-07/0.1197, allocations: 0 / 437.9 MB, free: 8.152 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02912/0.1488, allocations: 5.334 MB / 443.3 MB, free: 2.949 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.99/10.14, allocations: 14.59 kB / 443.3 MB, free: 2.938 MB / 366.1 MB " [Timeout remaining time 650] (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_First_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_First.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/First/First.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.First.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(der(idealGear.phi_a)),der(der(idealGear.phi_b)),der(idealGear.phi_a),der(idealGear.phi_b),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.support.phi,idealGear.support.tau,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.support.phi,torque.support.tau,torque.tau,torque.useSupport [Calling sys.exit(0), Time elapsed: 12.670511514006648]