Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,fileNamePrefix="ModelicaTest_4_0_0_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.0009833/0.0009834, allocations: 91.78 kB / 17.35 MB, free: 6.031 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.001219/0.001219, allocations: 173.3 kB / 18.26 MB, free: 5.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.298/1.298, allocations: 223.3 MB / 242.3 MB, free: 60 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1739/0.1739, allocations: 44.25 MB / 337.7 MB, free: 2.613 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003339/0.0003339, allocations: 8.688 kB / 410.4 MB, free: 27.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.101/0.1014, allocations: 61.91 MB / 472.4 MB, free: 13.22 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.002182/0.1036, allocations: 1.609 MB / 474 MB, free: 11.6 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007796/0.1044, allocations: 498.8 kB / 474.4 MB, free: 11.11 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.3e-05/0.1045, allocations: 0 / 474.4 MB, free: 11.11 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.879e-05/0.1046, allocations: 15.86 kB / 474.5 MB, free: 11.09 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 8.348e-05/0.1047, allocations: 31.77 kB / 474.5 MB, free: 11.06 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001579/0.1048, allocations: 39.89 kB / 474.5 MB, free: 11.02 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001566/0.105, allocations: 131.4 kB / 474.7 MB, free: 10.89 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001557/0.1052, allocations: 57.91 kB / 474.7 MB, free: 10.82 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.888e-05/0.1053, allocations: 55.72 kB / 474.8 MB, free: 10.77 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.801e-05/0.1054, allocations: 55.77 kB / 474.8 MB, free: 10.71 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.869e-05/0.1054, allocations: 4 kB / 474.8 MB, free: 10.71 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.967e-05/0.1054, allocations: 8 kB / 474.8 MB, free: 10.7 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.599e-05/0.1055, allocations: 27.86 kB / 474.9 MB, free: 10.68 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.68e-05/0.1055, allocations: 85.31 kB / 474.9 MB, free: 10.59 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001683/0.1057, allocations: 147.7 kB / 475.1 MB, free: 10.44 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.1057, allocations: 0 / 475.1 MB, free: 10.44 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.1057, allocations: 0 / 475.1 MB, free: 10.44 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.708e-06/0.1057, allocations: 0 / 475.1 MB, free: 10.44 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.0005067/0.1063, allocations: 407.1 kB / 475.5 MB, free: 9.996 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.537e-05/0.1063, allocations: 12.03 kB / 475.5 MB, free: 9.984 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.821e-05/0.1064, allocations: 50.73 kB / 475.6 MB, free: 9.926 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.344e-05/0.1064, allocations: 16.75 kB / 475.6 MB, free: 9.91 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001773/0.1066, allocations: 200.1 kB / 475.8 MB, free: 9.676 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.681e-05/0.1066, allocations: 16.38 kB / 475.8 MB, free: 9.66 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.917e-05/0.1066, allocations: 12.38 kB / 475.8 MB, free: 9.648 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002477/0.1069, allocations: 134.1 kB / 475.9 MB, free: 9.512 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.139e-05/0.1069, allocations: 0 / 475.9 MB, free: 9.512 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.054e-05/0.1069, allocations: 8 kB / 475.9 MB, free: 9.504 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.809e-06/0.107, allocations: 0 / 475.9 MB, free: 9.504 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00019/0.1072, allocations: 91.89 kB / 476 MB, free: 9.414 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006664/0.1078, allocations: 480.2 kB / 476.5 MB, free: 8.895 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002189/0.1081, allocations: 118.4 kB / 476.6 MB, free: 8.77 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001148/0.1082, allocations: 64.83 kB / 476.7 MB, free: 8.703 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.892e-05/0.1082, allocations: 0 / 476.7 MB, free: 8.703 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.442e-05/0.1082, allocations: 38.56 kB / 476.7 MB, free: 8.656 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 9.52e-07/0.1083, allocations: 0 / 476.7 MB, free: 8.656 MB / 350.1 MB Notification: Performance of matching and sorting (n=19): time 0.001442/0.1097, allocations: 0.8191 MB / 477.5 MB, free: 7.746 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.474e-05/0.1097, allocations: 51.41 kB / 477.6 MB, free: 7.684 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001158/0.1099, allocations: 145.2 kB / 477.7 MB, free: 7.535 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.816e-05/0.1099, allocations: 29.7 kB / 477.7 MB, free: 7.5 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.821e-05/0.11, allocations: 112.2 kB / 477.9 MB, free: 7.387 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.663e-05/0.11, allocations: 70.98 kB / 477.9 MB, free: 7.316 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.34e-05/0.1101, allocations: 29.72 kB / 478 MB, free: 7.281 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001158/0.1102, allocations: 322.8 kB / 478.3 MB, free: 6.957 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.666e-05/0.1103, allocations: 43.98 kB / 478.3 MB, free: 6.914 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001236/0.1104, allocations: 79.34 kB / 478.4 MB, free: 6.824 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002263/0.1107, allocations: 143.3 kB / 478.5 MB, free: 6.672 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.123e-06/0.1107, allocations: 0 / 478.5 MB, free: 6.672 MB / 350.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003866/0.1111, allocations: 210.1 kB / 478.7 MB, free: 6.457 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.724e-05/0.1111, allocations: 10.59 kB / 478.7 MB, free: 6.449 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.17e-06/0.1111, allocations: 4.031 kB / 478.7 MB, free: 6.445 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001713/0.1113, allocations: 44.83 kB / 478.8 MB, free: 6.398 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001594/0.1114, allocations: 31.98 kB / 478.8 MB, free: 6.367 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001352/0.1128, allocations: 1.561 MB / 480.4 MB, free: 4.676 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.347e-05/0.1129, allocations: 12.02 kB / 480.4 MB, free: 4.664 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.607e-05/0.1129, allocations: 11.94 kB / 480.4 MB, free: 4.652 MB / 350.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.0001197/0.113, allocations: 125.9 kB / 480.5 MB, free: 4.52 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.447e-05/0.1131, allocations: 15.84 kB / 480.5 MB, free: 4.504 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.177e-05/0.1131, allocations: 21.19 kB / 480.6 MB, free: 4.484 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.974e-06/0.1131, allocations: 0 / 480.6 MB, free: 4.484 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.1132, allocations: 0 / 480.6 MB, free: 4.484 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.019e-06/0.1132, allocations: 3.984 kB / 480.6 MB, free: 4.48 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007515/0.1139, allocations: 0.5583 MB / 481.1 MB, free: 3.859 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.389e-06/0.1139, allocations: 3.984 kB / 481.1 MB, free: 3.855 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001684/0.1141, allocations: 35.92 kB / 481.2 MB, free: 3.82 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001038/0.1142, allocations: 36.88 kB / 481.2 MB, free: 3.781 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.428e-05/0.1142, allocations: 8.031 kB / 481.2 MB, free: 3.773 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00108/0.1153, allocations: 1.37 MB / 482.6 MB, free: 2.27 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.115e-06/0.1154, allocations: 8 kB / 482.6 MB, free: 2.262 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004991/0.1159, allocations: 350.7 kB / 482.9 MB, free: 1.898 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.99e-05/0.1159, allocations: 88.95 kB / 483 MB, free: 1.793 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.225e-05/0.1159, allocations: 12.12 kB / 483 MB, free: 1.781 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.44e-05/0.116, allocations: 8 kB / 483 MB, free: 1.773 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.486e-05/0.1161, allocations: 15.97 kB / 483.1 MB, free: 1.758 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.606e-06/0.1161, allocations: 4 kB / 483.1 MB, free: 1.754 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.479e-05/0.1162, allocations: 107.3 kB / 483.2 MB, free: 1.648 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1162, allocations: 0 / 483.2 MB, free: 1.648 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000318/0.1165, allocations: 40 kB / 483.2 MB, free: 1.609 MB / 350.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.0007913/0.1173, allocations: 0.8727 MB / 484.1 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004566/0.1178, allocations: 266.5 kB / 484.3 MB, free: 440 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.115e-06/0.1178, allocations: 3.938 kB / 484.3 MB, free: 436 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002501/0.1181, allocations: 206.4 kB / 484.5 MB, free: 216 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003361/0.1184, allocations: 24.06 kB / 484.6 MB, free: 192 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002372/0.1208, allocations: 2.147 MB / 486.7 MB, free: 13.93 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002779/0.1211, allocations: 0.7246 MB / 487.4 MB, free: 13.18 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.258e-05/0.1211, allocations: 13.42 kB / 487.5 MB, free: 13.17 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.624e-05/0.1212, allocations: 39.42 kB / 487.5 MB, free: 13.13 MB / 366.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1212, allocations: 0 / 487.5 MB, free: 13.13 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01721/0.1384, allocations: 3.06 MB / 490.5 MB, free: 10.25 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001809/0.1386, allocations: 226.2 kB / 490.8 MB, free: 9.996 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.754/1.892, allocations: 4.062 kB / 490.8 MB, free: 9.992 MB / 366.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Rotational_ForUsersGuide_SimpleDriveTrain.fmu > ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_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.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