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.001378/0.001378, allocations: 103.1 kB / 17.32 MB, free: 5.984 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.001621/0.001621, allocations: 193.3 kB / 18.25 MB, free: 5.07 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.402/1.402, allocations: 222.9 MB / 241.9 MB, free: 13.71 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.2211/0.2211, allocations: 44.18 MB / 336.3 MB, free: 2.727 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001386/0.001386, allocations: 59.98 kB / 408 MB, free: 27.48 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1164/0.1178, allocations: 60.83 MB / 468.8 MB, free: 14.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.00351/0.1213, allocations: 1.956 MB / 470.8 MB, free: 12.65 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008756/0.1222, allocations: 498.8 kB / 471.3 MB, free: 12.16 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001126/0.1224, allocations: 0 / 471.3 MB, free: 12.16 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001356/0.1225, allocations: 15.86 kB / 471.3 MB, free: 12.14 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001038/0.1227, allocations: 35.69 kB / 471.3 MB, free: 12.11 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001776/0.1228, allocations: 31.97 kB / 471.3 MB, free: 12.07 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001887/0.123, allocations: 147.3 kB / 471.5 MB, free: 11.93 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001699/0.1232, allocations: 57.64 kB / 471.5 MB, free: 11.87 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00014/0.1234, allocations: 63.72 kB / 471.6 MB, free: 11.8 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001194/0.1235, allocations: 63.7 kB / 471.7 MB, free: 11.74 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.49e-05/0.1235, allocations: 16 kB / 471.7 MB, free: 11.73 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.726e-05/0.1236, allocations: 12 kB / 471.7 MB, free: 11.71 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.1e-05/0.1236, allocations: 27.91 kB / 471.7 MB, free: 11.69 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.668e-05/0.1237, allocations: 67.67 kB / 471.8 MB, free: 11.62 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001841/0.1239, allocations: 151.7 kB / 471.9 MB, free: 11.47 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.087e-06/0.1239, allocations: 0 / 471.9 MB, free: 11.47 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.1239, allocations: 0 / 471.9 MB, free: 11.47 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.601e-06/0.1239, allocations: 0 / 471.9 MB, free: 11.47 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.000681/0.1246, allocations: 435 kB / 472.4 MB, free: 11 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.792e-05/0.1246, allocations: 12.02 kB / 472.4 MB, free: 10.99 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.005e-05/0.1247, allocations: 46.73 kB / 472.4 MB, free: 10.93 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.592e-05/0.1247, allocations: 16.75 kB / 472.4 MB, free: 10.92 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002088/0.125, allocations: 208.1 kB / 472.6 MB, free: 10.68 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.364e-05/0.125, allocations: 8.375 kB / 472.6 MB, free: 10.67 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.23e-05/0.125, allocations: 16.28 kB / 472.7 MB, free: 10.65 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000263/0.1253, allocations: 130.1 kB / 472.8 MB, free: 10.52 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.351e-05/0.1253, allocations: 0 / 472.8 MB, free: 10.52 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.615e-05/0.1253, allocations: 4 kB / 472.8 MB, free: 10.52 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.043e-06/0.1253, allocations: 8 kB / 472.8 MB, free: 10.51 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001833/0.1255, allocations: 83.94 kB / 472.9 MB, free: 10.43 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006843/0.1262, allocations: 480 kB / 473.4 MB, free: 9.906 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002119/0.1265, allocations: 110.5 kB / 473.5 MB, free: 9.789 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001099/0.1266, allocations: 64.83 kB / 473.5 MB, free: 9.723 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.029e-05/0.1266, allocations: 0 / 473.5 MB, free: 9.723 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.754e-05/0.1266, allocations: 34.5 kB / 473.6 MB, free: 9.68 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 9.92e-07/0.1266, allocations: 0 / 473.6 MB, free: 9.68 MB / 350.1 MB Notification: Performance of matching and sorting (n=19): time 0.001481/0.1281, allocations: 0.8117 MB / 474.4 MB, free: 8.777 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.634e-05/0.1282, allocations: 51.41 kB / 474.4 MB, free: 8.715 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001237/0.1283, allocations: 146.1 kB / 474.6 MB, free: 8.562 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.268e-05/0.1283, allocations: 29.7 kB / 474.6 MB, free: 8.527 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.765e-05/0.1284, allocations: 108.3 kB / 474.7 MB, free: 8.418 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.844e-05/0.1285, allocations: 66.95 kB / 474.8 MB, free: 8.352 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.852e-05/0.1285, allocations: 37.7 kB / 474.8 MB, free: 8.309 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000123/0.1287, allocations: 326.8 kB / 475.1 MB, free: 7.98 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.722e-05/0.1288, allocations: 39.98 kB / 475.2 MB, free: 7.941 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001173/0.1289, allocations: 83.28 kB / 475.2 MB, free: 7.848 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002121/0.1291, allocations: 131.4 kB / 475.4 MB, free: 7.707 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.352e-06/0.1291, allocations: 4 kB / 475.4 MB, free: 7.703 MB / 350.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003698/0.1295, allocations: 202.3 kB / 475.6 MB, free: 7.496 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.675e-05/0.1295, allocations: 19.91 kB / 475.6 MB, free: 7.477 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.871e-06/0.1295, allocations: 0 / 475.6 MB, free: 7.477 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001621/0.1297, allocations: 40.78 kB / 475.6 MB, free: 7.434 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001692/0.1299, allocations: 35.97 kB / 475.7 MB, free: 7.398 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001481/0.1314, allocations: 1.728 MB / 477.4 MB, free: 5.535 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.336e-05/0.1315, allocations: 8.031 kB / 477.4 MB, free: 5.527 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.309e-05/0.1315, allocations: 12.05 kB / 477.4 MB, free: 5.516 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.000114/0.1316, allocations: 133.8 kB / 477.5 MB, free: 5.375 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.411e-05/0.1316, allocations: 11.81 kB / 477.6 MB, free: 5.363 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.561e-05/0.1317, allocations: 17.19 kB / 477.6 MB, free: 5.348 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.87e-06/0.1317, allocations: 7.938 kB / 477.6 MB, free: 5.34 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.519e-06/0.1317, allocations: 256 / 477.6 MB, free: 5.34 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/0.1317, allocations: 0 / 477.6 MB, free: 5.34 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000744/0.1325, allocations: 0.5621 MB / 478.1 MB, free: 4.715 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.1325, allocations: 0 / 478.1 MB, free: 4.715 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001697/0.1327, allocations: 39.97 kB / 478.2 MB, free: 4.676 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001051/0.1328, allocations: 32.88 kB / 478.2 MB, free: 4.641 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.304e-05/0.1328, allocations: 7.938 kB / 478.2 MB, free: 4.633 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001108/0.1339, allocations: 1.473 MB / 479.7 MB, free: 3.02 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.1339, allocations: 0 / 479.7 MB, free: 3.02 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004941/0.1344, allocations: 355.3 kB / 480 MB, free: 2.652 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.316e-05/0.1345, allocations: 85.05 kB / 480.1 MB, free: 2.551 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.085e-05/0.1345, allocations: 4 kB / 480.1 MB, free: 2.547 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.827e-05/0.1347, allocations: 11.98 kB / 480.1 MB, free: 2.535 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.981e-05/0.1347, allocations: 19.86 kB / 480.2 MB, free: 2.516 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.906e-06/0.1347, allocations: 4 kB / 480.2 MB, free: 2.512 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.823e-05/0.1348, allocations: 107.3 kB / 480.3 MB, free: 2.406 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1348, allocations: 0 / 480.3 MB, free: 2.406 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003278/0.1351, allocations: 36 kB / 480.3 MB, free: 2.371 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.0007489/0.1359, allocations: 0.8839 MB / 481.2 MB, free: 1.457 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004945/0.1364, allocations: 270.5 kB / 481.5 MB, free: 1.18 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.208e-06/0.1364, allocations: 0 / 481.5 MB, free: 1.18 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002502/0.1367, allocations: 198.5 kB / 481.6 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003745/0.1371, allocations: 23.11 kB / 481.7 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002392/0.1395, allocations: 2.096 MB / 483.8 MB, free: 14.74 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000311/0.1398, allocations: 0.7243 MB / 484.5 MB, free: 13.99 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.431e-05/0.1398, allocations: 9.422 kB / 484.5 MB, free: 13.98 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.239e-05/0.1399, allocations: 39.42 kB / 484.5 MB, free: 13.95 MB / 366.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1399, allocations: 4 kB / 484.5 MB, free: 13.94 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01994/0.1599, allocations: 3.232 MB / 487.8 MB, free: 10.88 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001934/0.1601, allocations: 242.6 kB / 488 MB, free: 10.61 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.92/2.08, allocations: 0 / 488 MB, free: 10.61 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