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.0009444/0.0009442, allocations: 94.94 kB / 17.35 MB, free: 6.344 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.001056/0.001057, allocations: 169 kB / 18.25 MB, free: 5.508 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.279/1.279, allocations: 223.2 MB / 242.3 MB, free: 228 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2102/0.2102, allocations: 44.26 MB / 337.7 MB, free: 2.676 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003519/0.0003522, allocations: 12 kB / 410.4 MB, free: 27.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1142/0.1145, allocations: 61.92 MB / 472.3 MB, free: 13.28 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.001878/0.1165, allocations: 1.605 MB / 473.9 MB, free: 11.66 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006587/0.1171, allocations: 498.8 kB / 474.4 MB, free: 11.17 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.987e-05/0.1172, allocations: 11.88 kB / 474.4 MB, free: 11.16 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.808e-05/0.1173, allocations: 15.91 kB / 474.5 MB, free: 11.14 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.912e-05/0.1174, allocations: 31.7 kB / 474.5 MB, free: 11.11 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001596/0.1176, allocations: 31.97 kB / 474.5 MB, free: 11.08 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001616/0.1178, allocations: 135.3 kB / 474.7 MB, free: 10.95 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001505/0.1179, allocations: 65.94 kB / 474.7 MB, free: 10.88 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.456e-05/0.118, allocations: 47.73 kB / 474.8 MB, free: 10.83 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.592e-05/0.1181, allocations: 51.77 kB / 474.8 MB, free: 10.78 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.052e-05/0.1182, allocations: 8 kB / 474.8 MB, free: 10.77 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.877e-05/0.1182, allocations: 4 kB / 474.8 MB, free: 10.77 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.673e-05/0.1182, allocations: 27.84 kB / 474.9 MB, free: 10.74 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.55e-05/0.1183, allocations: 89.38 kB / 474.9 MB, free: 10.64 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001504/0.1185, allocations: 139.7 kB / 475.1 MB, free: 10.51 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.1185, allocations: 0 / 475.1 MB, free: 10.51 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.1185, allocations: 4 kB / 475.1 MB, free: 10.5 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.957e-06/0.1185, allocations: 4 kB / 475.1 MB, free: 10.5 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.0004736/0.119, allocations: 413.4 kB / 475.5 MB, free: 10.05 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.686e-05/0.119, allocations: 8.031 kB / 475.5 MB, free: 10.04 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.525e-05/0.1191, allocations: 46.73 kB / 475.5 MB, free: 9.988 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.395e-05/0.1191, allocations: 16.75 kB / 475.6 MB, free: 9.973 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001758/0.1193, allocations: 204.1 kB / 475.8 MB, free: 9.734 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.423e-05/0.1193, allocations: 8.375 kB / 475.8 MB, free: 9.727 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.795e-05/0.1193, allocations: 16.38 kB / 475.8 MB, free: 9.711 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002503/0.1196, allocations: 134.1 kB / 475.9 MB, free: 9.574 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.294e-05/0.1196, allocations: 4 kB / 475.9 MB, free: 9.57 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.464e-05/0.1196, allocations: 4 kB / 475.9 MB, free: 9.566 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.444e-06/0.1196, allocations: 4 kB / 475.9 MB, free: 9.562 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000177/0.1198, allocations: 83.95 kB / 476 MB, free: 9.48 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006262/0.1205, allocations: 472.1 kB / 476.5 MB, free: 8.969 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002033/0.1207, allocations: 130.5 kB / 476.6 MB, free: 8.832 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001083/0.1208, allocations: 56.84 kB / 476.7 MB, free: 8.773 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.706e-05/0.1208, allocations: 3.984 kB / 476.7 MB, free: 8.77 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.389e-05/0.1209, allocations: 50.42 kB / 476.7 MB, free: 8.711 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 1.443e-06/0.1209, allocations: 0 / 476.7 MB, free: 8.711 MB / 350.1 MB Notification: Performance of matching and sorting (n=19): time 0.001368/0.1222, allocations: 0.8122 MB / 477.5 MB, free: 7.809 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.615e-05/0.1223, allocations: 59.41 kB / 477.6 MB, free: 7.738 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001042/0.1224, allocations: 140.7 kB / 477.7 MB, free: 7.594 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.575e-05/0.1224, allocations: 25.7 kB / 477.7 MB, free: 7.562 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.519e-05/0.1225, allocations: 116.3 kB / 477.8 MB, free: 7.445 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.35e-05/0.1225, allocations: 67 kB / 477.9 MB, free: 7.379 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.036e-05/0.1226, allocations: 17.72 kB / 477.9 MB, free: 7.355 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.679e-05/0.1227, allocations: 326.8 kB / 478.3 MB, free: 7.027 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.397e-05/0.1228, allocations: 47.97 kB / 478.3 MB, free: 6.98 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001096/0.1229, allocations: 83.28 kB / 478.4 MB, free: 6.887 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002108/0.1231, allocations: 139.2 kB / 478.5 MB, free: 6.738 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.212e-06/0.1231, allocations: 4 kB / 478.5 MB, free: 6.734 MB / 350.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003492/0.1235, allocations: 210.2 kB / 478.7 MB, free: 6.52 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.54e-05/0.1235, allocations: 7.938 kB / 478.7 MB, free: 6.512 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.272e-06/0.1235, allocations: 4 kB / 478.7 MB, free: 6.508 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001509/0.1237, allocations: 40.83 kB / 478.8 MB, free: 6.465 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001624/0.1238, allocations: 36.02 kB / 478.8 MB, free: 6.43 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001191/0.125, allocations: 1.557 MB / 480.4 MB, free: 4.742 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.418e-05/0.1251, allocations: 8 kB / 480.4 MB, free: 4.734 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.198e-05/0.1251, allocations: 7.938 kB / 480.4 MB, free: 4.727 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.0001001/0.1253, allocations: 133.8 kB / 480.5 MB, free: 4.586 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.38e-05/0.1253, allocations: 11.94 kB / 480.5 MB, free: 4.574 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.864e-05/0.1253, allocations: 25.12 kB / 480.6 MB, free: 4.551 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.633e-06/0.1253, allocations: 0 / 480.6 MB, free: 4.551 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.09e-06/0.1254, allocations: 8.062 kB / 480.6 MB, free: 4.543 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.885e-06/0.1254, allocations: 0 / 480.6 MB, free: 4.543 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000693/0.1261, allocations: 0.5621 MB / 481.1 MB, free: 3.918 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-06/0.1261, allocations: 4 kB / 481.1 MB, free: 3.914 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001542/0.1262, allocations: 35.97 kB / 481.2 MB, free: 3.879 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.337e-05/0.1263, allocations: 28.78 kB / 481.2 MB, free: 3.848 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.454e-05/0.1264, allocations: 8 kB / 481.2 MB, free: 3.84 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009026/0.1273, allocations: 1.374 MB / 482.6 MB, free: 2.332 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.928e-06/0.1273, allocations: 3.938 kB / 482.6 MB, free: 2.328 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004526/0.1277, allocations: 352.9 kB / 482.9 MB, free: 1.961 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.083e-05/0.1278, allocations: 88.95 kB / 483 MB, free: 1.855 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.899e-05/0.1278, allocations: 8 kB / 483 MB, free: 1.848 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.032e-05/0.1279, allocations: 4 kB / 483 MB, free: 1.844 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.297e-05/0.128, allocations: 19.91 kB / 483 MB, free: 1.824 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.617e-06/0.128, allocations: 8.203 kB / 483 MB, free: 1.816 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.324e-05/0.128, allocations: 105.8 kB / 483.1 MB, free: 1.715 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1281, allocations: 3.938 kB / 483.2 MB, free: 1.711 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003084/0.1284, allocations: 44 kB / 483.2 MB, free: 1.668 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.0007074/0.1291, allocations: 0.8796 MB / 484.1 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004558/0.1296, allocations: 262.6 kB / 484.3 MB, free: 496 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.1296, allocations: 0 / 484.3 MB, free: 496 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002478/0.1298, allocations: 200.4 kB / 484.5 MB, free: 284 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003618/0.1302, allocations: 25.64 kB / 484.6 MB, free: 260 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002233/0.1324, allocations: 2.142 MB / 486.7 MB, free: 14 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000244/0.1327, allocations: 0.7168 MB / 487.4 MB, free: 13.25 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.95e-05/0.1328, allocations: 17.42 kB / 487.4 MB, free: 13.24 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.713e-05/0.1328, allocations: 43.42 kB / 487.5 MB, free: 13.2 MB / 366.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1328, allocations: 0 / 487.5 MB, free: 13.2 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01362/0.1465, allocations: 3.049 MB / 490.5 MB, free: 10.32 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002242/0.1467, allocations: 234 kB / 490.7 MB, free: 10.06 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.72/1.867, allocations: 3.938 kB / 490.8 MB, free: 10.06 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","../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