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.0008245/0.0008244, allocations: 92.83 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00103/0.001031, allocations: 203.6 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.335/1.335, allocations: 227.7 MB / 246.8 MB, free: 11.32 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2011/0.2011, allocations: 46.19 MB / 345.2 MB, free: 11.38 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002423/0.0002423, allocations: 8 kB / 419.6 MB, free: 19.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1118/0.1121, allocations: 63.56 MB / 483.2 MB, free: 4.062 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.002147/0.1143, allocations: 1.629 MB / 484.8 MB, free: 2.422 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001022/0.1153, allocations: 0.5494 MB / 485.4 MB, free: 1.867 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000135/0.1155, allocations: 0 / 485.4 MB, free: 1.867 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001318/0.1156, allocations: 19.86 kB / 485.4 MB, free: 1.848 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001527/0.1158, allocations: 35.69 kB / 485.4 MB, free: 1.812 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002294/0.116, allocations: 43.95 kB / 485.5 MB, free: 1.77 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002119/0.1163, allocations: 147.3 kB / 485.6 MB, free: 1.625 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000154/0.1164, allocations: 45.97 kB / 485.6 MB, free: 1.574 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001768/0.1166, allocations: 51.73 kB / 485.7 MB, free: 1.523 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000119/0.1167, allocations: 59.7 kB / 485.8 MB, free: 1.465 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.537e-05/0.1168, allocations: 8 kB / 485.8 MB, free: 1.457 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.903e-05/0.1168, allocations: 15.98 kB / 485.8 MB, free: 1.441 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.525e-05/0.1169, allocations: 19.92 kB / 485.8 MB, free: 1.422 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.508e-05/0.117, allocations: 85.38 kB / 485.9 MB, free: 1.332 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001858/0.1172, allocations: 151.7 kB / 486 MB, free: 1.184 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.1172, allocations: 0 / 486 MB, free: 1.184 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.814e-06/0.1172, allocations: 3.938 kB / 486 MB, free: 1.18 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.951e-06/0.1172, allocations: 0 / 486 MB, free: 1.18 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.0005213/0.1177, allocations: 407.1 kB / 486.4 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.758e-05/0.1178, allocations: 16.86 kB / 486.4 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.321e-05/0.1178, allocations: 46.69 kB / 486.5 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000158/0.118, allocations: 24.73 kB / 486.5 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002051/0.1182, allocations: 216.1 kB / 486.7 MB, free: 400 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.443e-05/0.1182, allocations: 8.375 kB / 486.7 MB, free: 392 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.125e-05/0.1183, allocations: 12.38 kB / 486.7 MB, free: 380 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002718/0.1185, allocations: 134.1 kB / 486.9 MB, free: 240 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.268e-05/0.1186, allocations: 4 kB / 486.9 MB, free: 236 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.773e-05/0.1186, allocations: 8 kB / 486.9 MB, free: 228 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.881e-06/0.1186, allocations: 0 / 486.9 MB, free: 228 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001926/0.1188, allocations: 83.95 kB / 487 MB, free: 144 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007059/0.1195, allocations: 484.2 kB / 487.4 MB, free: 15.61 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002344/0.1198, allocations: 122.5 kB / 487.6 MB, free: 15.48 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000122/0.1199, allocations: 68.77 kB / 487.6 MB, free: 15.41 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.761e-05/0.1199, allocations: 3.938 kB / 487.6 MB, free: 15.41 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.776e-05/0.12, allocations: 34.56 kB / 487.7 MB, free: 15.37 MB / 366.1 MB Notification: Performance of pre-optimization done (n=13): time 1.493e-06/0.12, allocations: 0 / 487.7 MB, free: 15.37 MB / 366.1 MB Notification: Performance of matching and sorting (n=19): time 0.001473/0.1214, allocations: 0.8114 MB / 488.5 MB, free: 14.47 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.826e-05/0.1215, allocations: 55.41 kB / 488.5 MB, free: 14.4 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001194/0.1216, allocations: 137.8 kB / 488.7 MB, free: 14.26 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.84e-05/0.1216, allocations: 33.7 kB / 488.7 MB, free: 14.22 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.598e-05/0.1217, allocations: 112.3 kB / 488.8 MB, free: 14.11 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.568e-05/0.1218, allocations: 63.11 kB / 488.9 MB, free: 14.04 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.487e-05/0.1218, allocations: 21.7 kB / 488.9 MB, free: 14.02 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001039/0.1219, allocations: 326.8 kB / 489.2 MB, free: 13.69 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001006/0.122, allocations: 43.98 kB / 489.3 MB, free: 13.64 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000117/0.1222, allocations: 86.34 kB / 489.3 MB, free: 13.55 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002243/0.1224, allocations: 147.3 kB / 489.5 MB, free: 13.39 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.252e-06/0.1224, allocations: 0 / 489.5 MB, free: 13.39 MB / 366.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003852/0.1228, allocations: 214.2 kB / 489.7 MB, free: 13.18 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.844e-05/0.1228, allocations: 7.938 kB / 489.7 MB, free: 13.17 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.601e-06/0.1228, allocations: 4 kB / 489.7 MB, free: 13.16 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001602/0.123, allocations: 36.84 kB / 489.7 MB, free: 13.12 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001656/0.1232, allocations: 35.97 kB / 489.8 MB, free: 13.09 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001309/0.1245, allocations: 1.558 MB / 491.3 MB, free: 11.4 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.26e-05/0.1246, allocations: 8 kB / 491.3 MB, free: 11.39 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.619e-05/0.1246, allocations: 12.25 kB / 491.4 MB, free: 11.38 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.0001016/0.1247, allocations: 129.8 kB / 491.5 MB, free: 11.24 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.603e-05/0.1248, allocations: 11.81 kB / 491.5 MB, free: 11.23 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.858e-05/0.1248, allocations: 21.17 kB / 491.5 MB, free: 11.21 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.857e-06/0.1248, allocations: 4 kB / 491.5 MB, free: 11.21 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.791e-06/0.1248, allocations: 4 kB / 491.5 MB, free: 11.21 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.158e-06/0.1248, allocations: 0 / 491.5 MB, free: 11.21 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000752/0.1256, allocations: 0.5625 MB / 492.1 MB, free: 10.58 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.1256, allocations: 3.938 kB / 492.1 MB, free: 10.58 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001699/0.1258, allocations: 39.95 kB / 492.1 MB, free: 10.54 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001035/0.1259, allocations: 32.83 kB / 492.2 MB, free: 10.5 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.488e-05/0.1259, allocations: 4 kB / 492.2 MB, free: 10.5 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009999/0.1269, allocations: 1.374 MB / 493.5 MB, free: 8.988 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.528e-06/0.1269, allocations: 7.969 kB / 493.5 MB, free: 8.98 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004775/0.1274, allocations: 351 kB / 493.9 MB, free: 8.617 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.217e-05/0.1275, allocations: 92.94 kB / 494 MB, free: 8.508 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.852e-05/0.1275, allocations: 4 kB / 494 MB, free: 8.504 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.675e-05/0.1276, allocations: 4 kB / 494 MB, free: 8.5 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.663e-05/0.1277, allocations: 15.98 kB / 494 MB, free: 8.484 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.267e-06/0.1277, allocations: 4 kB / 494 MB, free: 8.48 MB / 366.1 MB Notification: Performance of sorting global known variables: time 8.045e-05/0.1278, allocations: 114.3 kB / 494.1 MB, free: 8.371 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1278, allocations: 4.062 kB / 494.1 MB, free: 8.367 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003334/0.1281, allocations: 44 kB / 494.2 MB, free: 8.324 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.000726/0.1288, allocations: 0.874 MB / 495 MB, free: 7.418 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004793/0.1293, allocations: 274.5 kB / 495.3 MB, free: 7.137 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.1294, allocations: 0 / 495.3 MB, free: 7.137 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002557/0.1296, allocations: 197.1 kB / 495.5 MB, free: 6.934 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003557/0.13, allocations: 23.92 kB / 495.5 MB, free: 6.91 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002358/0.1324, allocations: 2.154 MB / 497.7 MB, free: 4.641 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002577/0.1326, allocations: 0.7207 MB / 498.4 MB, free: 3.895 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.746e-05/0.1327, allocations: 17.41 kB / 498.4 MB, free: 3.875 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.955e-05/0.1328, allocations: 35.44 kB / 498.4 MB, free: 3.844 MB / 366.1 MB Notification: Performance of SimCode: time 4.71e-07/0.1328, allocations: 4 kB / 498.5 MB, free: 3.84 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01369/0.1465, allocations: 3.09 MB / 0.4898 GB, free: 0.9219 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001781/0.1467, allocations: 230.5 kB / 0.49 GB, free: 0.668 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.749/1.895, allocations: 0 / 0.49 GB, free: 0.668 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