Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001479/0.001479, allocations: 120.2 kB / 18.49 MB, free: 4.559 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001521/0.001521, allocations: 214.2 kB / 21.46 MB, free: 1.605 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.464/1.464, allocations: 230.4 MB / 254.7 MB, free: 15.16 MB / 206.1 MB " [Timeout remaining time 178] 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.First,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_First",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.First,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_First",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001916/0.001916, allocations: 67.89 kB / 373.7 MB, free: 10.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09952/0.1014, allocations: 53.38 MB / 427.1 MB, free: 4.629 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.First): time 0.003971/0.1054, allocations: 2.382 MB / 429.4 MB, free: 2.238 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001301/0.1067, allocations: 0.6427 MB / 430.1 MB, free: 1.59 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001796/0.1069, allocations: 11.94 kB / 430.1 MB, free: 1.578 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000169/0.1071, allocations: 31.66 kB / 430.1 MB, free: 1.547 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002136/0.1073, allocations: 83.27 kB / 430.2 MB, free: 1.465 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002619/0.1075, allocations: 63.86 kB / 430.3 MB, free: 1.402 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003605/0.1079, allocations: 274.7 kB / 430.5 MB, free: 1.133 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001964/0.1081, allocations: 70.77 kB / 430.6 MB, free: 1.059 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002674/0.1084, allocations: 127.5 kB / 430.7 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001945/0.1086, allocations: 111.5 kB / 430.8 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.322e-05/0.1086, allocations: 24 kB / 430.9 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.095e-05/0.1087, allocations: 24 kB / 430.9 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.488e-05/0.1087, allocations: 59.7 kB / 430.9 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001283/0.1089, allocations: 119.4 kB / 431.1 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003748/0.1092, allocations: 274.8 kB / 431.3 MB, free: 340 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.684e-06/0.1092, allocations: 4 kB / 431.3 MB, free: 336 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.1092, allocations: 0 / 431.3 MB, free: 336 kB / 350.1 MB Notification: Performance of Transformations before backend: time 1.144e-05/0.1093, allocations: 0 / 431.3 MB, free: 336 kB / 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.0008691/0.1101, allocations: 0.526 MB / 431.9 MB, free: 15.75 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.442e-05/0.1102, allocations: 12.03 kB / 431.9 MB, free: 15.74 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.576e-05/0.1102, allocations: 8.609 kB / 431.9 MB, free: 15.73 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.003e-05/0.1103, allocations: 58.73 kB / 431.9 MB, free: 15.67 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000176/0.1104, allocations: 40.73 kB / 432 MB, free: 15.63 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003859/0.1108, allocations: 244.7 kB / 432.2 MB, free: 15.35 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.145e-05/0.1108, allocations: 16.81 kB / 432.2 MB, free: 15.33 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.663e-05/0.1109, allocations: 28.33 kB / 432.3 MB, free: 15.3 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003838/0.1113, allocations: 199.2 kB / 432.4 MB, free: 15.1 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.71e-05/0.1113, allocations: 0 / 432.4 MB, free: 15.1 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.344e-05/0.1113, allocations: 8 kB / 432.5 MB, free: 15.09 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.166e-05/0.1113, allocations: 11.94 kB / 432.5 MB, free: 15.08 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000294/0.1116, allocations: 133.7 kB / 432.6 MB, free: 14.95 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00102/0.1126, allocations: 0.6271 MB / 433.2 MB, free: 14.27 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003262/0.113, allocations: 170.5 kB / 433.4 MB, free: 14.1 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001817/0.1131, allocations: 94.78 kB / 433.5 MB, free: 14 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.259e-05/0.1132, allocations: 0 / 433.5 MB, free: 14 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.849e-05/0.1132, allocations: 42.56 kB / 433.5 MB, free: 13.95 MB / 366.1 MB Notification: Performance of pre-optimization done (n=24): time 1.573e-06/0.1132, allocations: 0 / 433.5 MB, free: 13.95 MB / 366.1 MB Notification: Performance of matching and sorting (n=32): time 0.002089/0.1153, allocations: 1.081 MB / 434.6 MB, free: 12.78 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.554e-05/0.1153, allocations: 55.41 kB / 434.7 MB, free: 12.71 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000195/0.1155, allocations: 186.3 kB / 434.8 MB, free: 12.52 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.553e-05/0.1156, allocations: 29.7 kB / 434.9 MB, free: 12.49 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.811e-05/0.1157, allocations: 140.8 kB / 435 MB, free: 12.34 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.973e-05/0.1157, allocations: 119 kB / 435.1 MB, free: 12.23 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.839e-05/0.1158, allocations: 53.7 kB / 435.2 MB, free: 12.17 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001695/0.116, allocations: 330.8 kB / 435.5 MB, free: 11.84 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001524/0.1162, allocations: 75.97 kB / 435.6 MB, free: 11.76 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001816/0.1163, allocations: 102.8 kB / 435.7 MB, free: 11.65 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003467/0.1167, allocations: 196.7 kB / 435.9 MB, free: 11.45 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.122e-06/0.1167, allocations: 0 / 435.9 MB, free: 11.45 MB / 366.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0005437/0.1172, allocations: 295.2 kB / 436.2 MB, free: 11.16 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.832e-05/0.1173, allocations: 4 kB / 436.2 MB, free: 11.15 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.763e-06/0.1173, allocations: 0 / 436.2 MB, free: 11.15 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001989/0.1175, allocations: 48.77 kB / 436.2 MB, free: 11.1 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002552/0.1177, allocations: 51.97 kB / 436.3 MB, free: 11.05 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001723/0.1194, allocations: 1.74 MB / 438 MB, free: 9.176 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001339/0.1196, allocations: 12.28 kB / 438 MB, free: 9.164 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.29e-05/0.1196, allocations: 12 kB / 438 MB, free: 9.152 MB / 366.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.0001757/0.1198, allocations: 137.8 kB / 438.2 MB, free: 9.008 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.552e-05/0.1198, allocations: 27.8 kB / 438.2 MB, free: 8.98 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.41e-05/0.1199, allocations: 34.64 kB / 438.2 MB, free: 8.945 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.228e-06/0.1199, allocations: 4 kB / 438.2 MB, free: 8.941 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.655e-06/0.1199, allocations: 4 kB / 438.2 MB, free: 8.938 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/0.1199, allocations: 0 / 438.2 MB, free: 8.938 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001275/0.1212, allocations: 0.7776 MB / 439 MB, free: 8.082 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-06/0.1212, allocations: 0 / 439 MB, free: 8.082 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002788/0.1215, allocations: 67.89 kB / 439.1 MB, free: 8.016 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001326/0.1216, allocations: 32.94 kB / 439.1 MB, free: 7.98 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.469e-05/0.1216, allocations: 8 kB / 439.1 MB, free: 7.973 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001407/0.123, allocations: 1.492 MB / 440.6 MB, free: 6.332 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.435e-06/0.123, allocations: 0 / 440.6 MB, free: 6.332 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007782/0.1238, allocations: 486.9 kB / 441.1 MB, free: 5.828 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.646e-05/0.1239, allocations: 100.9 kB / 441.2 MB, free: 5.711 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.963e-05/0.1239, allocations: 8 kB / 441.2 MB, free: 5.703 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001389/0.1241, allocations: 8.047 kB / 441.2 MB, free: 5.695 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.002e-05/0.1241, allocations: 23.97 kB / 441.2 MB, free: 5.672 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.759e-05/0.1241, allocations: 11.98 kB / 441.2 MB, free: 5.66 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001321/0.1243, allocations: 140.3 kB / 441.4 MB, free: 5.523 MB / 366.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.1243, allocations: 0 / 441.4 MB, free: 5.523 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003943/0.1247, allocations: 64 kB / 441.4 MB, free: 5.461 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.001146/0.1258, allocations: 1.021 MB / 442.4 MB, free: 4.402 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007032/0.1265, allocations: 326.4 kB / 442.8 MB, free: 4.07 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.098e-06/0.1265, allocations: 128 / 442.8 MB, free: 4.07 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003905/0.1269, allocations: 238.5 kB / 443 MB, free: 3.824 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004749/0.1274, allocations: 52.17 kB / 443.1 MB, free: 3.773 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004104/0.1315, allocations: 2.755 MB / 445.8 MB, free: 0.9023 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004684/0.132, allocations: 0.764 MB / 446.6 MB, free: 116 kB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.741e-05/0.1321, allocations: 18.3 kB / 446.6 MB, free: 100 kB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001314/0.1322, allocations: 75.41 kB / 446.7 MB, free: 24 kB / 366.1 MB Notification: Performance of SimCode: time 5.21e-07/0.1322, allocations: 4 kB / 446.7 MB, free: 20 kB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1944/0.3266, allocations: 5.353 MB / 452 MB, free: 23.82 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.09/10.41, allocations: 13.8 kB / 452 MB, free: 23.81 MB / 366.1 MB " [Timeout remaining time 649] (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Rotational_Examples_First_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Rotational_Examples_First.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/First/First.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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.continuous,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: 13.029694237979129]