Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain",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.001124/0.001124, allocations: 106.2 kB / 17.21 MB, free: 6.289 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.001454/0.001454, allocations: 194 kB / 18.12 MB, free: 5.383 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.326/1.326, allocations: 222.9 MB / 241.8 MB, free: 15.37 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2079/0.2079, allocations: 44.18 MB / 336.1 MB, free: 2.984 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001264/0.001264, allocations: 63.95 kB / 407.8 MB, free: 27.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1085/0.1098, allocations: 60.82 MB / 468.6 MB, free: 14.75 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.003843/0.1137, allocations: 1.952 MB / 470.6 MB, free: 12.79 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009446/0.1147, allocations: 0.4948 MB / 471.1 MB, free: 12.29 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.917e-05/0.1148, allocations: 0 / 471.1 MB, free: 12.29 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001484/0.115, allocations: 19.86 kB / 471.1 MB, free: 12.27 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 8.822e-05/0.1151, allocations: 27.77 kB / 471.1 MB, free: 12.24 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001881/0.1153, allocations: 35.89 kB / 471.2 MB, free: 12.2 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001728/0.1155, allocations: 143.3 kB / 471.3 MB, free: 12.06 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001931/0.1157, allocations: 49.97 kB / 471.3 MB, free: 12.01 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001071/0.1158, allocations: 51.78 kB / 471.4 MB, free: 11.96 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001051/0.1159, allocations: 59.77 kB / 471.5 MB, free: 11.9 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.565e-05/0.1159, allocations: 8 kB / 471.5 MB, free: 11.89 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.574e-05/0.116, allocations: 12 kB / 471.5 MB, free: 11.88 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.393e-05/0.116, allocations: 31.8 kB / 471.5 MB, free: 11.85 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.052e-05/0.1161, allocations: 71.64 kB / 471.6 MB, free: 11.78 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001773/0.1163, allocations: 147.7 kB / 471.7 MB, free: 11.63 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.923e-06/0.1163, allocations: 0 / 471.7 MB, free: 11.63 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.1163, allocations: 0 / 471.7 MB, free: 11.63 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.219e-06/0.1163, allocations: 0 / 471.7 MB, free: 11.63 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0007139/0.117, allocations: 423.1 kB / 472.1 MB, free: 11.17 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.601e-05/0.1171, allocations: 12.03 kB / 472.1 MB, free: 11.16 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.175e-05/0.1171, allocations: 50.73 kB / 472.2 MB, free: 11.1 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.484e-05/0.1172, allocations: 16.75 kB / 472.2 MB, free: 11.09 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002406/0.1174, allocations: 200.1 kB / 472.4 MB, free: 10.85 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.233e-05/0.1175, allocations: 8.375 kB / 472.4 MB, free: 10.84 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.822e-05/0.1175, allocations: 16.28 kB / 472.4 MB, free: 10.83 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002716/0.1178, allocations: 134.1 kB / 472.6 MB, free: 10.69 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.566e-05/0.1178, allocations: 7.922 kB / 472.6 MB, free: 10.68 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.614e-05/0.1178, allocations: 4 kB / 472.6 MB, free: 10.68 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.921e-06/0.1178, allocations: 7.938 kB / 472.6 MB, free: 10.67 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003318/0.1182, allocations: 83.95 kB / 472.7 MB, free: 10.59 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000775/0.119, allocations: 472.2 kB / 473.1 MB, free: 10.08 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002199/0.1192, allocations: 122.4 kB / 473.2 MB, free: 9.949 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001077/0.1193, allocations: 56.83 kB / 473.3 MB, free: 9.891 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.057e-05/0.1193, allocations: 4 kB / 473.3 MB, free: 9.887 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.337e-05/0.1194, allocations: 34.56 kB / 473.3 MB, free: 9.844 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 1.232e-06/0.1194, allocations: 0 / 473.3 MB, free: 9.844 MB / 350.1 MB Notification: Performance of matching and sorting (n=19): time 0.001457/0.1208, allocations: 0.8012 MB / 474.1 MB, free: 8.949 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.781e-05/0.1209, allocations: 55.41 kB / 474.2 MB, free: 8.883 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001272/0.121, allocations: 140.6 kB / 474.3 MB, free: 8.738 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.222e-05/0.1211, allocations: 29.7 kB / 474.4 MB, free: 8.703 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.304e-05/0.1211, allocations: 116.3 kB / 474.5 MB, free: 8.586 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.388e-05/0.1212, allocations: 70.98 kB / 474.5 MB, free: 8.516 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.028e-05/0.1213, allocations: 33.72 kB / 474.6 MB, free: 8.477 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001174/0.1214, allocations: 326.8 kB / 474.9 MB, free: 8.148 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.824e-05/0.1215, allocations: 43.98 kB / 474.9 MB, free: 8.105 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001196/0.1216, allocations: 77.41 kB / 475 MB, free: 8.02 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002164/0.1218, allocations: 139.3 kB / 475.1 MB, free: 7.871 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.102e-06/0.1219, allocations: 0 / 475.1 MB, free: 7.871 MB / 350.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003688/0.1222, allocations: 198.3 kB / 475.3 MB, free: 7.668 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.059e-05/0.1223, allocations: 10.12 kB / 475.3 MB, free: 7.66 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.042e-06/0.1223, allocations: 4.047 kB / 475.4 MB, free: 7.656 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000192/0.1225, allocations: 48.84 kB / 475.4 MB, free: 7.605 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001792/0.1227, allocations: 39.92 kB / 475.4 MB, free: 7.566 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001528/0.1242, allocations: 1.55 MB / 477 MB, free: 5.887 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.028e-05/0.1243, allocations: 15.95 kB / 477 MB, free: 5.871 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.728e-05/0.1243, allocations: 11.98 kB / 477 MB, free: 5.859 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (17): * Single equations (assignments): 16 * 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.0001181/0.1244, allocations: 121.8 kB / 477.1 MB, free: 5.73 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.861e-05/0.1245, allocations: 19.75 kB / 477.2 MB, free: 5.711 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.162e-05/0.1245, allocations: 25.19 kB / 477.2 MB, free: 5.688 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.078e-06/0.1245, allocations: 4 kB / 477.2 MB, free: 5.684 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/0.1246, allocations: 0 / 477.2 MB, free: 5.684 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.582e-06/0.1246, allocations: 7.922 kB / 477.2 MB, free: 5.676 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007337/0.1253, allocations: 0.5505 MB / 477.7 MB, free: 5.062 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.647e-06/0.1253, allocations: 3.984 kB / 477.7 MB, free: 5.059 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001645/0.1255, allocations: 35.92 kB / 477.8 MB, free: 5.023 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001047/0.1256, allocations: 32.84 kB / 477.8 MB, free: 4.988 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.159e-05/0.1256, allocations: 0 / 477.8 MB, free: 4.988 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001156/0.1268, allocations: 1.382 MB / 479.2 MB, free: 3.473 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.1268, allocations: 0 / 479.2 MB, free: 3.473 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004805/0.1273, allocations: 348.9 kB / 479.5 MB, free: 3.109 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.805e-05/0.1274, allocations: 89.05 kB / 479.6 MB, free: 3.004 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.819e-05/0.1274, allocations: 0 / 479.6 MB, free: 3.004 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.605e-05/0.1275, allocations: 8 kB / 479.6 MB, free: 2.996 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.323e-05/0.1275, allocations: 15.97 kB / 479.6 MB, free: 2.98 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.039e-05/0.1276, allocations: 8 kB / 479.7 MB, free: 2.973 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.549e-05/0.1276, allocations: 105.8 kB / 479.8 MB, free: 2.871 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1277, allocations: 4.062 kB / 479.8 MB, free: 2.867 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003164/0.128, allocations: 36 kB / 479.8 MB, free: 2.832 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (J1.phi,J1.w) * 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 (16): * Single equations (assignments): 15 * 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.0007743/0.1288, allocations: 0.8817 MB / 480.7 MB, free: 1.914 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004695/0.1292, allocations: 252.9 kB / 480.9 MB, free: 1.656 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.1292, allocations: 0 / 480.9 MB, free: 1.656 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002501/0.1295, allocations: 200.3 kB / 481.1 MB, free: 1.449 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004022/0.1299, allocations: 28.12 kB / 481.1 MB, free: 1.422 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002431/0.1324, allocations: 2.089 MB / 483.2 MB, free: 15.22 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003111/0.1327, allocations: 0.7168 MB / 484 MB, free: 14.48 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.71e-05/0.1328, allocations: 13.53 kB / 484 MB, free: 14.46 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.162e-05/0.1328, allocations: 47.36 kB / 484 MB, free: 14.42 MB / 366.1 MB Notification: Performance of SimCode: time 4.1e-07/0.1328, allocations: 0 / 484 MB, free: 14.42 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01508/0.1479, allocations: 3.145 MB / 487.2 MB, free: 11.42 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002506/0.1482, allocations: 237.4 kB / 487.4 MB, free: 11.16 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.908/2.056, allocations: 0 / 487.4 MB, free: 11.16 MB / 366.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain.fmu > ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/SimpleDriveTrain/SimpleDriveTrain.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,J2.phi,J2.w Variables in the result:J1.J,J1.a,J1.flange_a.phi,J1.flange_a.tau,J1.flange_b.phi,J1.flange_b.tau,J1.phi,J1.stateSelect,J1.w,J2.J,J2.a,J2.flange_a.phi,J2.flange_a.tau,J2.flange_b.phi,J2.flange_b.tau,J2.phi,J2.stateSelect,J2.w,der(J1.phi),der(J1.w),der(J2.phi),der(J2.w),der(der(gear.phi_a)),der(der(gear.phi_b)),der(gear.phi_a),der(gear.phi_b),fixed.flange.phi,fixed.flange.tau,fixed.phi0,gear.flange_a.phi,gear.flange_a.tau,gear.flange_b.phi,gear.flange_b.tau,gear.phi_a,gear.phi_b,gear.ratio,gear.support.phi,gear.support.tau,gear.useSupport,sine.amplitude,sine.f,sine.offset,sine.phase,sine.startTime,sine.y,time,torque.flange.phi,torque.flange.tau,torque.support.phi,torque.support.tau,torque.tau,torque.useSupport