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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.First,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_First",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000799/0.0008025, allocations: 92.05 kB / 16.65 MB, free: 6.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0007736/0.0007736, allocations: 171.8 kB / 17.56 MB, free: 6.184 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.322/1.322, allocations: 223.3 MB / 241.6 MB, free: 212 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002999/0.0002998, allocations: 4 kB / 301.5 MB, free: 6.055 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1054/0.1057, allocations: 50.41 MB / 351.9 MB, free: 3.633 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.First): time 0.002912/0.1087, allocations: 2.035 MB / 354 MB, free: 1.582 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001221/0.1099, allocations: 0.5648 MB / 354.5 MB, free: 1.012 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002278/0.1102, allocations: 7.938 kB / 354.5 MB, free: 1.004 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001699/0.1104, allocations: 27.78 kB / 354.6 MB, free: 0.9766 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002818/0.1107, allocations: 71.45 kB / 354.6 MB, free: 0.9062 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002369/0.1109, allocations: 43.95 kB / 354.7 MB, free: 0.8633 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003973/0.1113, allocations: 262.7 kB / 354.9 MB, free: 0.6055 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002346/0.1116, allocations: 87.3 kB / 355 MB, free: 0.5117 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002155/0.1118, allocations: 87.59 kB / 355.1 MB, free: 436 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000198/0.112, allocations: 111.4 kB / 355.2 MB, free: 324 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.524e-05/0.112, allocations: 8 kB / 355.2 MB, free: 316 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.159e-05/0.1121, allocations: 12 kB / 355.2 MB, free: 304 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.549e-05/0.1121, allocations: 39.84 kB / 355.3 MB, free: 264 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000133/0.1123, allocations: 133.1 kB / 355.4 MB, free: 124 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002981/0.1126, allocations: 247.2 kB / 355.7 MB, free: 15.88 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.342e-06/0.1126, allocations: 0 / 355.7 MB, free: 15.88 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.625e-06/0.1126, allocations: 0 / 355.7 MB, free: 15.88 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.249e-05/0.1126, allocations: 0 / 355.7 MB, free: 15.88 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: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.0007621/0.1134, allocations: 499 kB / 356.1 MB, free: 15.34 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.735e-05/0.1135, allocations: 12.03 kB / 356.1 MB, free: 15.33 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.124e-05/0.1135, allocations: 54.73 kB / 356.2 MB, free: 15.27 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.815e-05/0.1136, allocations: 28.66 kB / 356.2 MB, free: 15.24 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000309/0.1139, allocations: 233.6 kB / 356.5 MB, free: 14.97 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.047e-05/0.114, allocations: 12.81 kB / 356.5 MB, free: 14.96 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.806e-05/0.114, allocations: 32.28 kB / 356.5 MB, free: 14.93 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003918/0.1144, allocations: 203.3 kB / 356.7 MB, free: 14.73 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.09e-05/0.1144, allocations: 3.984 kB / 356.7 MB, free: 14.72 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.06e-05/0.1145, allocations: 11.94 kB / 356.7 MB, free: 14.71 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.606e-06/0.1145, allocations: 8 kB / 356.7 MB, free: 14.7 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003093/0.1148, allocations: 137.7 kB / 356.9 MB, free: 14.57 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001053/0.1159, allocations: 0.6424 MB / 357.5 MB, free: 13.88 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003096/0.1162, allocations: 178.5 kB / 357.7 MB, free: 13.69 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001828/0.1164, allocations: 104.8 kB / 357.8 MB, free: 13.59 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.148e-05/0.1164, allocations: 0 / 357.8 MB, free: 13.59 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.09e-05/0.1165, allocations: 42.56 kB / 357.8 MB, free: 13.54 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.222e-06/0.1165, allocations: 4 kB / 357.8 MB, free: 13.53 MB / 302.1 MB Notification: Performance of matching and sorting (n=32): time 0.002003/0.1185, allocations: 1.084 MB / 358.9 MB, free: 12.36 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.448e-05/0.1185, allocations: 59.34 kB / 359 MB, free: 12.29 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001912/0.1187, allocations: 184 kB / 359.1 MB, free: 12.1 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.356e-05/0.1188, allocations: 29.7 kB / 359.2 MB, free: 12.07 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.23e-05/0.1189, allocations: 136.7 kB / 359.3 MB, free: 11.93 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.405e-05/0.1189, allocations: 114.3 kB / 359.4 MB, free: 11.82 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.017e-05/0.119, allocations: 37.7 kB / 359.5 MB, free: 11.77 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001282/0.1191, allocations: 334.8 kB / 359.8 MB, free: 11.44 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001472/0.1193, allocations: 71.97 kB / 359.9 MB, free: 11.37 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001688/0.1195, allocations: 107.2 kB / 360 MB, free: 11.25 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003201/0.1198, allocations: 197.3 kB / 360.2 MB, free: 11.05 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.042e-06/0.1198, allocations: 0 / 360.2 MB, free: 11.05 MB / 302.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0005117/0.1203, allocations: 306.1 kB / 360.4 MB, free: 10.75 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.906e-05/0.1204, allocations: 8.062 kB / 360.5 MB, free: 10.74 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.714e-06/0.1204, allocations: 3.984 kB / 360.5 MB, free: 10.73 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001711/0.1205, allocations: 40.84 kB / 360.5 MB, free: 10.69 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002455/0.1208, allocations: 59.91 kB / 360.6 MB, free: 10.63 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001429/0.1222, allocations: 1.569 MB / 362.1 MB, free: 8.93 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001312/0.1224, allocations: 16.17 kB / 362.1 MB, free: 8.914 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.93e-05/0.1224, allocations: 12 kB / 362.2 MB, free: 8.902 MB / 302.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.0001434/0.1226, allocations: 142.1 kB / 362.3 MB, free: 8.754 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.802e-05/0.1226, allocations: 19.81 kB / 362.3 MB, free: 8.734 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.362e-05/0.1227, allocations: 34.58 kB / 362.3 MB, free: 8.703 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.078e-05/0.1227, allocations: 4 kB / 362.4 MB, free: 8.699 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.833e-06/0.1227, allocations: 0 / 362.4 MB, free: 8.699 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.659e-06/0.1227, allocations: 3.938 kB / 362.4 MB, free: 8.695 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001134/0.1239, allocations: 0.7742 MB / 363.1 MB, free: 7.848 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.769e-06/0.1239, allocations: 3.938 kB / 363.1 MB, free: 7.844 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002524/0.1241, allocations: 64 kB / 363.2 MB, free: 7.781 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001173/0.1243, allocations: 36.83 kB / 363.2 MB, free: 7.742 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.035e-05/0.1243, allocations: 8 kB / 363.2 MB, free: 7.734 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001075/0.1254, allocations: 1.378 MB / 364.6 MB, free: 6.215 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.873e-06/0.1254, allocations: 0 / 364.6 MB, free: 6.215 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006984/0.1261, allocations: 0.4944 MB / 365.1 MB, free: 5.691 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.023e-05/0.1262, allocations: 96.83 kB / 365.2 MB, free: 5.578 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.02e-05/0.1262, allocations: 12.03 kB / 365.2 MB, free: 5.566 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001391/0.1264, allocations: 11.94 kB / 365.2 MB, free: 5.555 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.779e-05/0.1264, allocations: 23.97 kB / 365.3 MB, free: 5.531 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.382e-05/0.1264, allocations: 8 kB / 365.3 MB, free: 5.523 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001213/0.1266, allocations: 131.5 kB / 365.4 MB, free: 5.395 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.1266, allocations: 4 kB / 365.4 MB, free: 5.391 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003595/0.1269, allocations: 64 kB / 365.5 MB, free: 5.328 MB / 302.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.001008/0.128, allocations: 1.024 MB / 366.5 MB, free: 4.266 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005776/0.1286, allocations: 339.4 kB / 366.8 MB, free: 3.922 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.1286, allocations: 0 / 366.8 MB, free: 3.922 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003381/0.1289, allocations: 250.7 kB / 367.1 MB, free: 3.664 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000467/0.1294, allocations: 51.12 kB / 367.1 MB, free: 3.617 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003605/0.133, allocations: 2.932 MB / 370 MB, free: 0.582 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1803/0.3134, allocations: 0.7528 MB / 370.8 MB, free: 23.62 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001816/0.3136, allocations: 23.73 kB / 370.8 MB, free: 23.62 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001718/0.3138, allocations: 74.89 kB / 370.9 MB, free: 23.61 MB / 302.1 MB Notification: Performance of SimCode: time 1.001e-06/0.3138, allocations: 0 / 370.9 MB, free: 23.61 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02186/0.3356, allocations: 4.77 MB / 375.7 MB, free: 23.33 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001573/0.3358, allocations: 219.1 kB / 375.9 MB, free: 23.07 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.877/2.213, allocations: 0 / 375.9 MB, free: 23.07 MB / 302.1 MB (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 --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) 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) "" 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