Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,fileNamePrefix="ModelicaTest_3_2_3_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.004646/0.004646, allocations: 100.8 kB / 15.87 MB, free: 6.316 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.001105/0.001105, allocations: 195.8 kB / 16.79 MB, free: 6.242 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.317/1.317, allocations: 205.1 MB / 222.6 MB, free: 4.738 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3016/0.3016, allocations: 43.5 MB / 313.5 MB, free: 8.254 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001319/0.001319, allocations: 63.91 kB / 382.1 MB, free: 8.41 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1051/0.1064, allocations: 57.79 MB / 439.9 MB, free: 14.52 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.002896/0.1094, allocations: 1.964 MB / 441.9 MB, free: 12.54 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007446/0.1101, allocations: 0.5269 MB / 442.4 MB, free: 12 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.258e-05/0.1102, allocations: 7.938 kB / 442.4 MB, free: 11.99 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001206/0.1104, allocations: 7.922 kB / 442.4 MB, free: 11.98 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 8.095e-05/0.1105, allocations: 43.69 kB / 442.5 MB, free: 11.94 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001543/0.1106, allocations: 23.98 kB / 442.5 MB, free: 11.92 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001799/0.1108, allocations: 139.3 kB / 442.6 MB, free: 11.78 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001552/0.111, allocations: 65.94 kB / 442.7 MB, free: 11.71 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001079/0.1111, allocations: 55.73 kB / 442.7 MB, free: 11.66 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.993e-05/0.1112, allocations: 55.77 kB / 442.8 MB, free: 11.6 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.355e-05/0.1112, allocations: 12 kB / 442.8 MB, free: 11.59 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.379e-05/0.1112, allocations: 8 kB / 442.8 MB, free: 11.58 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.361e-05/0.1113, allocations: 27.84 kB / 442.8 MB, free: 11.55 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 6.341e-05/0.1113, allocations: 59.67 kB / 442.9 MB, free: 11.5 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001584/0.1115, allocations: 151.7 kB / 443 MB, free: 11.35 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.1115, allocations: 0 / 443 MB, free: 11.35 MB / 382.1 MB Notification: Performance of FrontEnd: time 7.22e-07/0.1115, allocations: 3.938 kB / 443 MB, free: 11.34 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.242e-06/0.1115, allocations: 0 / 443 MB, free: 11.34 MB / 382.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.0005319/0.1121, allocations: 435 kB / 443.5 MB, free: 10.87 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.849e-05/0.1121, allocations: 8.031 kB / 443.5 MB, free: 10.86 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.581e-05/0.1122, allocations: 46.73 kB / 443.5 MB, free: 10.81 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.485e-05/0.1122, allocations: 16.75 kB / 443.5 MB, free: 10.79 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001864/0.1124, allocations: 204.1 kB / 443.7 MB, free: 10.55 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.262e-05/0.1124, allocations: 12.38 kB / 443.8 MB, free: 10.54 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.047e-05/0.1125, allocations: 16.38 kB / 443.8 MB, free: 10.53 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002534/0.1127, allocations: 129.5 kB / 443.9 MB, free: 10.39 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.07e-05/0.1127, allocations: 0 / 443.9 MB, free: 10.39 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.556e-05/0.1128, allocations: 8 kB / 443.9 MB, free: 10.39 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.519e-06/0.1128, allocations: 0 / 443.9 MB, free: 10.39 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001728/0.1129, allocations: 83.94 kB / 444 MB, free: 10.3 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006449/0.1136, allocations: 476.1 kB / 444.5 MB, free: 9.789 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002141/0.1138, allocations: 130.4 kB / 444.6 MB, free: 9.652 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001084/0.1139, allocations: 64.78 kB / 444.6 MB, free: 9.586 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.557e-05/0.114, allocations: 0 / 444.6 MB, free: 9.586 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.982e-05/0.114, allocations: 30.56 kB / 444.7 MB, free: 9.547 MB / 382.1 MB Notification: Performance of pre-optimization done (n=13): time 9.52e-07/0.114, allocations: 4 kB / 444.7 MB, free: 9.543 MB / 382.1 MB Notification: Performance of matching and sorting (n=19): time 0.00137/0.1154, allocations: 0.8059 MB / 445.5 MB, free: 8.641 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.605e-05/0.1154, allocations: 55.41 kB / 445.5 MB, free: 8.574 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001022/0.1155, allocations: 142.2 kB / 445.7 MB, free: 8.43 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.886e-05/0.1155, allocations: 29.7 kB / 445.7 MB, free: 8.395 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.926e-05/0.1156, allocations: 108.3 kB / 445.8 MB, free: 8.285 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.382e-05/0.1157, allocations: 63.02 kB / 445.9 MB, free: 8.223 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.571e-05/0.1157, allocations: 41.7 kB / 445.9 MB, free: 8.176 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001109/0.1158, allocations: 330.8 kB / 446.2 MB, free: 7.844 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.124e-05/0.1159, allocations: 43.97 kB / 446.3 MB, free: 7.801 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001054/0.116, allocations: 75.34 kB / 446.4 MB, free: 7.715 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001979/0.1163, allocations: 143.2 kB / 446.5 MB, free: 7.562 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.82e-07/0.1163, allocations: 0 / 446.5 MB, free: 7.562 MB / 382.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003406/0.1166, allocations: 206.2 kB / 446.7 MB, free: 7.352 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.611e-05/0.1166, allocations: 7.938 kB / 446.7 MB, free: 7.344 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.909e-06/0.1166, allocations: 0 / 446.7 MB, free: 7.344 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001539/0.1168, allocations: 44.83 kB / 446.7 MB, free: 7.297 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001603/0.117, allocations: 32.02 kB / 446.8 MB, free: 7.266 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001204/0.1182, allocations: 1.557 MB / 448.3 MB, free: 5.578 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.95e-05/0.1183, allocations: 11.94 kB / 448.3 MB, free: 5.566 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.069e-05/0.1183, allocations: 4 kB / 448.3 MB, free: 5.562 MB / 382.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 9.475e-05/0.1184, allocations: 133.8 kB / 448.5 MB, free: 5.422 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.24e-05/0.1184, allocations: 7.953 kB / 448.5 MB, free: 5.414 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.931e-05/0.1185, allocations: 29.11 kB / 448.5 MB, free: 5.383 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-06/0.1185, allocations: 0 / 448.5 MB, free: 5.383 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.1185, allocations: 4 kB / 448.5 MB, free: 5.379 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.348e-06/0.1185, allocations: 8 kB / 448.5 MB, free: 5.371 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006667/0.1192, allocations: 0.5507 MB / 449.1 MB, free: 4.758 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.1192, allocations: 4 kB / 449.1 MB, free: 4.754 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001615/0.1194, allocations: 39.94 kB / 449.1 MB, free: 4.715 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.288e-05/0.1195, allocations: 28.84 kB / 449.1 MB, free: 4.684 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.379e-05/0.1195, allocations: 11.94 kB / 449.2 MB, free: 4.672 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009275/0.1204, allocations: 1.386 MB / 450.5 MB, free: 3.156 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.1204, allocations: 0 / 450.5 MB, free: 3.156 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004555/0.1209, allocations: 348.1 kB / 450.9 MB, free: 2.797 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.581e-05/0.1209, allocations: 85.14 kB / 451 MB, free: 2.695 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.09e-05/0.121, allocations: 8 kB / 451 MB, free: 2.688 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.163e-05/0.1211, allocations: 4 kB / 451 MB, free: 2.684 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.074e-05/0.1211, allocations: 15.97 kB / 451 MB, free: 2.668 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.667e-06/0.1211, allocations: 4 kB / 451 MB, free: 2.664 MB / 382.1 MB Notification: Performance of sorting global known variables: time 6.901e-05/0.1212, allocations: 103.3 kB / 451.1 MB, free: 2.562 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1212, allocations: 0 / 451.1 MB, free: 2.562 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003201/0.1215, allocations: 44 kB / 451.1 MB, free: 2.52 MB / 382.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.0007086/0.1223, allocations: 0.8776 MB / 452 MB, free: 1.613 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004652/0.1227, allocations: 266.6 kB / 452.3 MB, free: 1.34 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.1228, allocations: 4 kB / 452.3 MB, free: 1.336 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002306/0.123, allocations: 186.6 kB / 452.5 MB, free: 1.141 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004058/0.1234, allocations: 23.92 kB / 452.5 MB, free: 1.117 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1514/0.2748, allocations: 2.078 MB / 454.6 MB, free: 47.83 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001348/0.275, allocations: 0.7221 MB / 455.3 MB, free: 47.13 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 5.937e-05/0.2751, allocations: 12.8 kB / 455.3 MB, free: 47.13 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.95e-05/0.2751, allocations: 43.67 kB / 455.3 MB, free: 47.13 MB / 382.1 MB Notification: Performance of SimCode: time 1.001e-06/0.2751, allocations: 0 / 455.3 MB, free: 47.13 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02275/0.2979, allocations: 3.147 MB / 458.5 MB, free: 46.84 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000138/0.2981, allocations: 241.2 kB / 458.7 MB, free: 46.57 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.649/1.947, allocations: 0 / 458.7 MB, free: 46.57 MB / 382.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain.fmu > ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/ForUsersGuide/SimpleDriveTrain/SimpleDriveTrain.csv","../files/ModelicaTest_3.2.3_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.freqHz,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