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.0009169/0.0009172, allocations: 103 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009447/0.0009447, allocations: 186.1 kB / 16.92 MB, free: 6.918 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.435/1.435, allocations: 205.4 MB / 223.1 MB, free: 5.746 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.3474/0.3474, allocations: 43.58 MB / 315 MB, free: 8.699 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.0004716/0.0004716, allocations: 12.33 kB / 384.7 MB, free: 7.566 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1164/0.1169, allocations: 58.86 MB / 443.5 MB, free: 12.6 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.002041/0.119, allocations: 1.617 MB / 445.2 MB, free: 10.97 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007967/0.1198, allocations: 0.5191 MB / 445.7 MB, free: 10.45 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.635e-05/0.1199, allocations: 4 kB / 445.7 MB, free: 10.44 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001114/0.12, allocations: 19.84 kB / 445.7 MB, free: 10.42 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 8.173e-05/0.1201, allocations: 27.77 kB / 445.7 MB, free: 10.39 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001751/0.1203, allocations: 31.91 kB / 445.8 MB, free: 10.36 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000166/0.1205, allocations: 155.2 kB / 445.9 MB, free: 10.21 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001613/0.1207, allocations: 49.97 kB / 446 MB, free: 10.15 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001024/0.1208, allocations: 51.84 kB / 446 MB, free: 10.1 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.584e-05/0.1209, allocations: 51.7 kB / 446.1 MB, free: 10.05 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.756e-05/0.1209, allocations: 8 kB / 446.1 MB, free: 10.04 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.131e-05/0.1209, allocations: 8 kB / 446.1 MB, free: 10.04 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.045e-05/0.121, allocations: 23.86 kB / 446.1 MB, free: 10.01 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 7.65e-05/0.1211, allocations: 93.31 kB / 446.2 MB, free: 9.914 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001465/0.1212, allocations: 139.7 kB / 446.3 MB, free: 9.777 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.1212, allocations: 0 / 446.3 MB, free: 9.777 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.1212, allocations: 0 / 446.3 MB, free: 9.777 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.109e-06/0.1212, allocations: 0 / 446.3 MB, free: 9.777 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.0004783/0.1217, allocations: 407.1 kB / 446.7 MB, free: 9.332 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.347e-05/0.1218, allocations: 8.031 kB / 446.7 MB, free: 9.324 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.042e-05/0.1218, allocations: 54.73 kB / 446.8 MB, free: 9.262 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.204e-05/0.1219, allocations: 16.69 kB / 446.8 MB, free: 9.246 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001856/0.1221, allocations: 200.1 kB / 447 MB, free: 9.012 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.581e-05/0.1221, allocations: 16.38 kB / 447 MB, free: 8.996 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.905e-05/0.1221, allocations: 12.38 kB / 447 MB, free: 8.984 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002584/0.1224, allocations: 133.5 kB / 447.1 MB, free: 8.848 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.543e-05/0.1224, allocations: 3.906 kB / 447.2 MB, free: 8.844 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.518e-05/0.1224, allocations: 4 kB / 447.2 MB, free: 8.84 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.213e-06/0.1224, allocations: 4 kB / 447.2 MB, free: 8.836 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001862/0.1226, allocations: 95.88 kB / 447.3 MB, free: 8.742 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006311/0.1233, allocations: 476.1 kB / 447.7 MB, free: 8.227 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002037/0.1235, allocations: 130.4 kB / 447.8 MB, free: 8.09 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001074/0.1236, allocations: 56.83 kB / 447.9 MB, free: 8.031 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.371e-05/0.1236, allocations: 7.938 kB / 447.9 MB, free: 8.023 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.126e-05/0.1237, allocations: 38.56 kB / 447.9 MB, free: 7.977 MB / 382.1 MB Notification: Performance of pre-optimization done (n=13): time 1.202e-06/0.1237, allocations: 0 / 447.9 MB, free: 7.977 MB / 382.1 MB Notification: Performance of matching and sorting (n=19): time 0.001379/0.125, allocations: 0.8102 MB / 448.8 MB, free: 7.074 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.281e-05/0.1251, allocations: 59.34 kB / 448.8 MB, free: 7.004 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001201/0.1252, allocations: 145.4 kB / 449 MB, free: 6.855 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.721e-05/0.1252, allocations: 29.7 kB / 449 MB, free: 6.82 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.034e-05/0.1253, allocations: 112.3 kB / 449.1 MB, free: 6.707 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.552e-05/0.1254, allocations: 67.08 kB / 449.2 MB, free: 6.641 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.957e-05/0.1254, allocations: 21.72 kB / 449.2 MB, free: 6.613 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.641e-05/0.1255, allocations: 326.8 kB / 449.5 MB, free: 6.285 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.372e-05/0.1256, allocations: 43.97 kB / 449.5 MB, free: 6.242 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001136/0.1257, allocations: 83.34 kB / 449.6 MB, free: 6.148 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002082/0.1259, allocations: 135.4 kB / 449.8 MB, free: 6.004 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.102e-06/0.1259, allocations: 3.938 kB / 449.8 MB, free: 6 MB / 382.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003487/0.1263, allocations: 210.2 kB / 450 MB, free: 5.785 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.576e-05/0.1263, allocations: 15.97 kB / 450 MB, free: 5.77 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.929e-06/0.1263, allocations: 0 / 450 MB, free: 5.77 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001483/0.1265, allocations: 40.83 kB / 450 MB, free: 5.727 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001608/0.1267, allocations: 35.92 kB / 450.1 MB, free: 5.691 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001221/0.1279, allocations: 1.557 MB / 451.6 MB, free: 4.004 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.849e-05/0.128, allocations: 8.031 kB / 451.6 MB, free: 3.996 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.247e-05/0.128, allocations: 7.938 kB / 451.6 MB, free: 3.988 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.945e-05/0.1281, allocations: 133.9 kB / 451.8 MB, free: 3.848 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.32e-05/0.1281, allocations: 11.91 kB / 451.8 MB, free: 3.836 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.313e-05/0.1282, allocations: 17.19 kB / 451.8 MB, free: 3.816 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.827e-06/0.1282, allocations: 4 kB / 451.8 MB, free: 3.812 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.1282, allocations: 0 / 451.8 MB, free: 3.812 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.666e-06/0.1282, allocations: 0 / 451.8 MB, free: 3.812 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000695/0.1289, allocations: 0.5697 MB / 452.4 MB, free: 3.184 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.597e-06/0.1289, allocations: 0 / 452.4 MB, free: 3.184 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001564/0.1291, allocations: 43.84 kB / 452.4 MB, free: 3.141 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.641e-05/0.1292, allocations: 28.84 kB / 452.4 MB, free: 3.109 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.175e-05/0.1292, allocations: 8.031 kB / 452.4 MB, free: 3.102 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009368/0.1302, allocations: 1.374 MB / 453.8 MB, free: 1.598 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.867e-06/0.1302, allocations: 12.03 kB / 453.8 MB, free: 1.586 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004501/0.1306, allocations: 344.9 kB / 454.2 MB, free: 1.227 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.272e-05/0.1307, allocations: 88.95 kB / 454.3 MB, free: 1.121 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.916e-05/0.1307, allocations: 12.12 kB / 454.3 MB, free: 1.109 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.199e-05/0.1308, allocations: 4 kB / 454.3 MB, free: 1.105 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.6e-05/0.1309, allocations: 19.97 kB / 454.3 MB, free: 1.086 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.396e-06/0.1309, allocations: 4 kB / 454.3 MB, free: 1.082 MB / 382.1 MB Notification: Performance of sorting global known variables: time 6.57e-05/0.131, allocations: 107.2 kB / 454.4 MB, free: 0.9766 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.131, allocations: 0 / 454.4 MB, free: 0.9766 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003108/0.1313, allocations: 40 kB / 454.4 MB, free: 0.9375 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.0007174/0.132, allocations: 0.8851 MB / 455.3 MB, free: 24 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.2012/0.3332, allocations: 263.6 kB / 455.6 MB, free: 45.91 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.356e-06/0.3333, allocations: 0 / 455.6 MB, free: 45.91 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002333/0.3335, allocations: 200.6 kB / 455.8 MB, free: 45.8 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004418/0.334, allocations: 26.58 kB / 455.8 MB, free: 45.8 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001952/0.3359, allocations: 2.136 MB / 457.9 MB, free: 44.41 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001398/0.3361, allocations: 0.7206 MB / 458.7 MB, free: 43.71 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 4.954e-05/0.3362, allocations: 10.23 kB / 458.7 MB, free: 43.71 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.358e-05/0.3362, allocations: 43.67 kB / 458.7 MB, free: 43.71 MB / 382.1 MB Notification: Performance of SimCode: time 8.11e-07/0.3362, allocations: 1.312 kB / 458.7 MB, free: 43.71 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01367/0.3499, allocations: 3.066 MB / 461.8 MB, free: 43.39 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001336/0.3501, allocations: 233.7 kB / 462 MB, free: 43.13 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.78/2.13, allocations: 0 / 462 MB, free: 43.13 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