Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001513/0.001513, allocations: 110.2 kB / 17.33 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001781/0.001781, allocations: 205.8 kB / 18.27 MB, free: 5.074 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.463/1.463, allocations: 227.4 MB / 246.4 MB, free: 10.86 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2112/0.2112, allocations: 46.1 MB / 343.8 MB, free: 11.78 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001622/0.001622, allocations: 75.28 kB / 417.2 MB, free: 20 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1152/0.1168, allocations: 62.44 MB / 479.6 MB, free: 5.547 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.004359/0.1212, allocations: 1.983 MB / 481.6 MB, free: 3.551 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001182/0.1225, allocations: 0.5532 MB / 482.1 MB, free: 2.992 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001672/0.1227, allocations: 7.938 kB / 482.1 MB, free: 2.984 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001618/0.1229, allocations: 7.922 kB / 482.1 MB, free: 2.977 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001521/0.123, allocations: 43.7 kB / 482.2 MB, free: 2.934 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002821/0.1233, allocations: 35.95 kB / 482.2 MB, free: 2.898 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002454/0.1236, allocations: 151.3 kB / 482.4 MB, free: 2.75 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001799/0.1238, allocations: 57.59 kB / 482.4 MB, free: 2.691 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002163/0.124, allocations: 63.78 kB / 482.5 MB, free: 2.629 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001239/0.1241, allocations: 67.69 kB / 482.6 MB, free: 2.562 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.694e-05/0.1242, allocations: 12 kB / 482.6 MB, free: 2.551 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.629e-05/0.1242, allocations: 20 kB / 482.6 MB, free: 2.531 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.892e-05/0.1243, allocations: 23.92 kB / 482.6 MB, free: 2.508 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.695e-05/0.1244, allocations: 67.61 kB / 482.7 MB, free: 2.441 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002292/0.1246, allocations: 159.7 kB / 482.8 MB, free: 2.285 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.1246, allocations: 3.938 kB / 482.8 MB, free: 2.281 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.1246, allocations: 0 / 482.8 MB, free: 2.281 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.336e-06/0.1246, allocations: 4 kB / 482.8 MB, free: 2.277 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.0005983/0.1252, allocations: 435 kB / 483.3 MB, free: 1.805 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.31e-05/0.1253, allocations: 12.03 kB / 483.3 MB, free: 1.793 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.013e-05/0.1253, allocations: 46.73 kB / 483.3 MB, free: 1.738 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001548/0.1255, allocations: 20.83 kB / 483.3 MB, free: 1.719 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002127/0.1257, allocations: 208 kB / 483.5 MB, free: 1.477 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.583e-05/0.1257, allocations: 12.38 kB / 483.6 MB, free: 1.465 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.262e-05/0.1258, allocations: 16.36 kB / 483.6 MB, free: 1.449 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002686/0.1261, allocations: 138.1 kB / 483.7 MB, free: 1.309 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.451e-05/0.1261, allocations: 0 / 483.7 MB, free: 1.309 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.762e-05/0.1261, allocations: 8 kB / 483.7 MB, free: 1.301 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.12e-06/0.1261, allocations: 0 / 483.7 MB, free: 1.301 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001866/0.1263, allocations: 87.89 kB / 483.8 MB, free: 1.215 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006781/0.127, allocations: 468.2 kB / 484.3 MB, free: 0.707 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002071/0.1272, allocations: 122.4 kB / 484.4 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001065/0.1273, allocations: 60.83 kB / 484.4 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.038e-05/0.1274, allocations: 0 / 484.4 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.499e-05/0.1274, allocations: 38.56 kB / 484.5 MB, free: 480 kB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 1.062e-06/0.1274, allocations: 0 / 484.5 MB, free: 480 kB / 350.1 MB Notification: Performance of matching and sorting (n=19): time 0.001473/0.1289, allocations: 0.8014 MB / 485.3 MB, free: 15.57 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.343e-05/0.1289, allocations: 59.34 kB / 485.3 MB, free: 15.5 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001168/0.1291, allocations: 136.1 kB / 485.5 MB, free: 15.36 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.919e-05/0.1291, allocations: 33.7 kB / 485.5 MB, free: 15.32 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.911e-05/0.1292, allocations: 112.3 kB / 485.6 MB, free: 15.21 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.153e-05/0.1292, allocations: 71 kB / 485.7 MB, free: 15.14 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.803e-05/0.1293, allocations: 33.7 kB / 485.7 MB, free: 15.1 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001034/0.1294, allocations: 330.8 kB / 486 MB, free: 14.77 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001019/0.1295, allocations: 43.98 kB / 486.1 MB, free: 14.73 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000109/0.1296, allocations: 75.34 kB / 486.2 MB, free: 14.64 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002064/0.1298, allocations: 139.2 kB / 486.3 MB, free: 14.49 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.1298, allocations: 4 kB / 486.3 MB, free: 14.49 MB / 366.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003874/0.1302, allocations: 206.2 kB / 486.5 MB, free: 14.28 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.334e-05/0.1303, allocations: 11.94 kB / 486.5 MB, free: 14.27 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.558e-06/0.1303, allocations: 3.984 kB / 486.5 MB, free: 14.26 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002094/0.1305, allocations: 36.84 kB / 486.5 MB, free: 14.22 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000198/0.1307, allocations: 39.91 kB / 486.6 MB, free: 14.18 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001615/0.1323, allocations: 1.741 MB / 488.3 MB, free: 12.3 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.925e-05/0.1324, allocations: 8.031 kB / 488.3 MB, free: 12.3 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.4e-05/0.1325, allocations: 4 kB / 488.3 MB, free: 12.29 MB / 366.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.0001257/0.1326, allocations: 125.8 kB / 488.5 MB, free: 12.16 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.754e-05/0.1326, allocations: 7.906 kB / 488.5 MB, free: 12.15 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.406e-05/0.1327, allocations: 29.11 kB / 488.5 MB, free: 12.13 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.537e-06/0.1327, allocations: 8 kB / 488.5 MB, free: 12.12 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.715e-06/0.1327, allocations: 4 kB / 488.5 MB, free: 12.12 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.918e-06/0.1327, allocations: 0 / 488.5 MB, free: 12.12 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007477/0.1335, allocations: 0.5567 MB / 489.1 MB, free: 11.5 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/0.1335, allocations: 0 / 489.1 MB, free: 11.5 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001653/0.1337, allocations: 39.91 kB / 489.1 MB, free: 11.46 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001014/0.1338, allocations: 28.84 kB / 489.1 MB, free: 11.43 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.428e-05/0.1338, allocations: 4 kB / 489.1 MB, free: 11.43 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00109/0.1349, allocations: 1.477 MB / 490.6 MB, free: 9.805 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.1349, allocations: 0 / 490.6 MB, free: 9.805 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004761/0.1354, allocations: 356.9 kB / 491 MB, free: 9.434 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.67e-05/0.1354, allocations: 88.95 kB / 491 MB, free: 9.328 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.955e-05/0.1355, allocations: 0 / 491 MB, free: 9.328 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.719e-05/0.1356, allocations: 12 kB / 491.1 MB, free: 9.316 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.477e-05/0.1356, allocations: 23.91 kB / 491.1 MB, free: 9.293 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.22e-05/0.1357, allocations: 8.062 kB / 491.1 MB, free: 9.285 MB / 366.1 MB Notification: Performance of sorting global known variables: time 6.895e-05/0.1357, allocations: 106.2 kB / 491.2 MB, free: 9.184 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1357, allocations: 0 / 491.2 MB, free: 9.184 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003452/0.1361, allocations: 40 kB / 491.2 MB, free: 9.145 MB / 366.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.0007184/0.1368, allocations: 0.8817 MB / 492.1 MB, free: 8.23 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004841/0.1373, allocations: 258.6 kB / 492.4 MB, free: 7.965 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.1373, allocations: 0 / 492.4 MB, free: 7.965 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002619/0.1376, allocations: 202.7 kB / 492.6 MB, free: 7.754 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003861/0.138, allocations: 18.92 kB / 492.6 MB, free: 7.738 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002398/0.1404, allocations: 2.106 MB / 494.7 MB, free: 5.516 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002586/0.1407, allocations: 0.7205 MB / 495.4 MB, free: 4.77 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.075e-05/0.1407, allocations: 13.42 kB / 495.4 MB, free: 4.754 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.297e-05/0.1408, allocations: 39.42 kB / 495.5 MB, free: 4.719 MB / 366.1 MB Notification: Performance of SimCode: time 4.91e-07/0.1408, allocations: 0 / 495.5 MB, free: 4.719 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0184/0.1592, allocations: 3.258 MB / 498.7 MB, free: 1.625 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002834/0.1596, allocations: 239 kB / 499 MB, free: 1.367 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.065/2.225, allocations: 0 / 499 MB, free: 1.367 MB / 366.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain.fmu > ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_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.continuous,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