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.001199/0.001202, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001223/0.001223, allocations: 210.4 kB / 18.58 MB, free: 4.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.189/1.189, allocations: 227.4 MB / 246.8 MB, free: 10.58 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1791/0.1791, allocations: 46.1 MB / 344.1 MB, free: 11.59 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002266/0.002266, allocations: 79.97 kB / 417.7 MB, free: 19.63 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1061/0.1083, allocations: 62.44 MB / 480.1 MB, free: 5.176 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.002645/0.111, allocations: 1.915 MB / 482 MB, free: 3.246 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008404/0.1119, allocations: 0.5688 MB / 482.6 MB, free: 2.672 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.325e-05/0.112, allocations: 0 / 482.6 MB, free: 2.672 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 7.649e-05/0.1121, allocations: 19.8 kB / 482.6 MB, free: 2.652 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.99e-05/0.1122, allocations: 43.62 kB / 482.7 MB, free: 2.609 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001726/0.1123, allocations: 47.88 kB / 482.7 MB, free: 2.562 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001463/0.1125, allocations: 147.3 kB / 482.9 MB, free: 2.418 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001112/0.1126, allocations: 61.64 kB / 482.9 MB, free: 2.355 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001375/0.1128, allocations: 67.72 kB / 483 MB, free: 2.289 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.454e-05/0.1128, allocations: 63.7 kB / 483.1 MB, free: 2.227 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.893e-05/0.1129, allocations: 12 kB / 483.1 MB, free: 2.215 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.472e-05/0.1129, allocations: 12 kB / 483.1 MB, free: 2.203 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.182e-05/0.1129, allocations: 35.91 kB / 483.1 MB, free: 2.168 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.243e-05/0.113, allocations: 67.67 kB / 483.2 MB, free: 2.102 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001479/0.1132, allocations: 159.6 kB / 483.3 MB, free: 1.945 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.903e-06/0.1132, allocations: 0 / 483.3 MB, free: 1.945 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.965e-06/0.1132, allocations: 0 / 483.3 MB, free: 1.945 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.857e-06/0.1132, allocations: 3.938 kB / 483.3 MB, free: 1.941 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.0004227/0.1136, allocations: 435 kB / 483.8 MB, free: 1.469 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.494e-05/0.1137, allocations: 8.031 kB / 483.8 MB, free: 1.461 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.336e-05/0.1137, allocations: 50.73 kB / 483.8 MB, free: 1.402 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001213/0.1138, allocations: 24.83 kB / 483.8 MB, free: 1.379 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001561/0.114, allocations: 212 kB / 484.1 MB, free: 1.133 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.064e-05/0.114, allocations: 8.375 kB / 484.1 MB, free: 1.125 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.146e-05/0.114, allocations: 12.38 kB / 484.1 MB, free: 1.113 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001958/0.1142, allocations: 133.5 kB / 484.2 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.245e-06/0.1143, allocations: 0 / 484.2 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.103e-05/0.1143, allocations: 4 kB / 484.2 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.389e-06/0.1143, allocations: 4 kB / 484.2 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001624/0.1144, allocations: 91.83 kB / 484.3 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005513/0.115, allocations: 472.2 kB / 484.8 MB, free: 376 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001837/0.1152, allocations: 122.4 kB / 484.9 MB, free: 244 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.501e-05/0.1153, allocations: 60.83 kB / 484.9 MB, free: 180 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.204e-05/0.1153, allocations: 0 / 484.9 MB, free: 180 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.028e-05/0.1153, allocations: 34.56 kB / 485 MB, free: 136 kB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 8.02e-07/0.1154, allocations: 0 / 485 MB, free: 136 kB / 350.1 MB Notification: Performance of matching and sorting (n=19): time 0.001251/0.1166, allocations: 0.8107 MB / 485.8 MB, free: 15.23 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.412e-05/0.1166, allocations: 51.41 kB / 485.8 MB, free: 15.17 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001045/0.1168, allocations: 144.1 kB / 486 MB, free: 15.02 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.394e-05/0.1168, allocations: 29.64 kB / 486 MB, free: 14.99 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.275e-05/0.1168, allocations: 124.3 kB / 486.1 MB, free: 14.86 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.449e-05/0.1169, allocations: 63.02 kB / 486.2 MB, free: 14.8 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.954e-05/0.1169, allocations: 37.7 kB / 486.2 MB, free: 14.76 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.305e-05/0.117, allocations: 318.8 kB / 486.5 MB, free: 14.44 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.742e-05/0.1171, allocations: 43.98 kB / 486.6 MB, free: 14.39 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001071/0.1172, allocations: 82.34 kB / 486.7 MB, free: 14.3 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001965/0.1174, allocations: 143.2 kB / 486.8 MB, free: 14.15 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.92e-07/0.1175, allocations: 0 / 486.8 MB, free: 14.15 MB / 366.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003228/0.1178, allocations: 198.2 kB / 487 MB, free: 13.95 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.279e-05/0.1178, allocations: 11.92 kB / 487 MB, free: 13.94 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.387e-06/0.1178, allocations: 4.031 kB / 487 MB, free: 13.93 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001261/0.1179, allocations: 40.84 kB / 487 MB, free: 13.89 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001374/0.1181, allocations: 39.97 kB / 487.1 MB, free: 13.85 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001234/0.1193, allocations: 1.745 MB / 488.8 MB, free: 11.97 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.679e-05/0.1194, allocations: 0 / 488.8 MB, free: 11.97 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.313e-05/0.1194, allocations: 12 kB / 488.8 MB, free: 11.96 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 8.028e-05/0.1195, allocations: 121.9 kB / 489 MB, free: 11.83 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.514e-05/0.1196, allocations: 19.89 kB / 489 MB, free: 11.81 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.063e-05/0.1196, allocations: 17.19 kB / 489 MB, free: 11.8 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.019e-05/0.1196, allocations: 3.938 kB / 489 MB, free: 11.79 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.196e-06/0.1196, allocations: 3.938 kB / 489 MB, free: 11.79 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.275e-06/0.1196, allocations: 3.938 kB / 489 MB, free: 11.79 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006577/0.1203, allocations: 0.5544 MB / 489.6 MB, free: 11.17 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.1203, allocations: 0 / 489.6 MB, free: 11.17 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001479/0.1205, allocations: 43.91 kB / 489.6 MB, free: 11.12 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.519e-05/0.1206, allocations: 28.84 kB / 489.6 MB, free: 11.09 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.256e-05/0.1206, allocations: 12.03 kB / 489.6 MB, free: 11.08 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009643/0.1216, allocations: 1.477 MB / 491.1 MB, free: 9.461 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.203e-06/0.1216, allocations: 0 / 491.1 MB, free: 9.461 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004315/0.122, allocations: 344.9 kB / 491.5 MB, free: 9.102 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.697e-05/0.1221, allocations: 89.05 kB / 491.5 MB, free: 8.996 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.924e-05/0.1221, allocations: 12 kB / 491.6 MB, free: 8.984 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.613e-05/0.1222, allocations: 8 kB / 491.6 MB, free: 8.977 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.838e-05/0.1222, allocations: 15.91 kB / 491.6 MB, free: 8.961 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.036e-06/0.1222, allocations: 4 kB / 491.6 MB, free: 8.957 MB / 366.1 MB Notification: Performance of sorting global known variables: time 6.257e-05/0.1223, allocations: 110 kB / 491.7 MB, free: 8.852 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1223, allocations: 4 kB / 491.7 MB, free: 8.848 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002891/0.1226, allocations: 36 kB / 491.7 MB, free: 8.812 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.0006407/0.1232, allocations: 0.8739 MB / 492.6 MB, free: 7.906 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003866/0.1236, allocations: 272.8 kB / 492.9 MB, free: 7.629 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.422e-06/0.1236, allocations: 0 / 492.9 MB, free: 7.629 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002322/0.1239, allocations: 190.5 kB / 493.1 MB, free: 7.43 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002926/0.1242, allocations: 23.97 kB / 493.1 MB, free: 7.406 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001983/0.1262, allocations: 2.052 MB / 495.1 MB, free: 5.234 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002424/0.1264, allocations: 0.7166 MB / 495.9 MB, free: 4.492 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.071e-05/0.1265, allocations: 17.41 kB / 495.9 MB, free: 4.473 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.079e-05/0.1265, allocations: 43.42 kB / 495.9 MB, free: 4.434 MB / 366.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1266, allocations: 0 / 495.9 MB, free: 4.434 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.463/1.59, allocations: 3.366 MB / 499.3 MB, free: 1.191 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.21/12.8, allocations: 3.25 kB / 499.3 MB, free: 1.191 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