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.00114/0.00114, allocations: 100.8 kB / 16.4 MB, free: 6.496 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.001288/0.001288, allocations: 189.5 kB / 17.34 MB, free: 5.77 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.38/1.38, allocations: 205.1 MB / 223.2 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2509/0.2509, allocations: 43.52 MB / 314.1 MB, free: 464 kB / 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.00146/0.00146, allocations: 63.91 kB / 441.3 MB, free: 6.195 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1263/0.1277, allocations: 57.8 MB / 499.1 MB, free: 12.32 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.003043/0.1308, allocations: 1.9 MB / 0.4892 GB, free: 10.41 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008647/0.1317, allocations: 0.5385 MB / 0.4898 GB, free: 9.863 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.83e-05/0.1318, allocations: 8 kB / 0.4898 GB, free: 9.855 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001259/0.1319, allocations: 15.8 kB / 0.4898 GB, free: 9.84 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 8.939e-05/0.132, allocations: 43.62 kB / 0.4898 GB, free: 9.797 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001877/0.1322, allocations: 35.91 kB / 0.4899 GB, free: 9.762 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001887/0.1324, allocations: 147.3 kB / 0.49 GB, free: 9.617 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001894/0.1326, allocations: 69.52 kB / 0.4901 GB, free: 9.547 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001241/0.1328, allocations: 55.84 kB / 0.4901 GB, free: 9.492 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001322/0.1329, allocations: 67.69 kB / 0.4902 GB, free: 9.426 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.699e-05/0.1329, allocations: 12 kB / 0.4902 GB, free: 9.414 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.463e-05/0.133, allocations: 12 kB / 0.4902 GB, free: 9.402 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.366e-05/0.133, allocations: 27.92 kB / 0.4902 GB, free: 9.375 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 7.959e-05/0.1331, allocations: 71.61 kB / 0.4903 GB, free: 9.305 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002023/0.1333, allocations: 143.5 kB / 0.4904 GB, free: 9.164 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.045e-06/0.1333, allocations: 8 kB / 0.4904 GB, free: 9.156 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.497e-06/0.1333, allocations: 0 / 0.4904 GB, free: 9.156 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.085e-06/0.1333, allocations: 3.938 kB / 0.4904 GB, free: 9.152 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.0006416/0.134, allocations: 438.4 kB / 0.4909 GB, free: 8.68 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.565e-05/0.134, allocations: 15.89 kB / 0.4909 GB, free: 8.664 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.557e-05/0.1341, allocations: 46.73 kB / 0.4909 GB, free: 8.609 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.804e-05/0.1341, allocations: 20.75 kB / 0.4909 GB, free: 8.59 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002712/0.1344, allocations: 212 kB / 0.4911 GB, free: 8.344 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.329e-05/0.1344, allocations: 12.38 kB / 0.4912 GB, free: 8.332 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.576e-05/0.1345, allocations: 12.38 kB / 0.4912 GB, free: 8.32 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002752/0.1347, allocations: 133.5 kB / 0.4913 GB, free: 8.184 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.632e-05/0.1348, allocations: 0 / 0.4913 GB, free: 8.184 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.648e-05/0.1348, allocations: 7.938 kB / 0.4913 GB, free: 8.176 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.704e-06/0.1348, allocations: 4 kB / 0.4913 GB, free: 8.172 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000185/0.135, allocations: 83.89 kB / 0.4914 GB, free: 8.09 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006969/0.1357, allocations: 464.2 kB / 0.4918 GB, free: 7.586 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002223/0.1359, allocations: 122.4 kB / 0.4919 GB, free: 7.457 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000109/0.1361, allocations: 56.83 kB / 0.492 GB, free: 7.398 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.064e-05/0.1361, allocations: 0 / 0.492 GB, free: 7.398 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.97e-05/0.1361, allocations: 34.56 kB / 0.492 GB, free: 7.355 MB / 382.1 MB Notification: Performance of pre-optimization done (n=13): time 9.92e-07/0.1361, allocations: 4 kB / 0.492 GB, free: 7.352 MB / 382.1 MB Notification: Performance of matching and sorting (n=19): time 0.001519/0.1376, allocations: 0.7983 MB / 0.4928 GB, free: 6.457 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.516e-05/0.1377, allocations: 63.34 kB / 0.4929 GB, free: 6.383 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001142/0.1378, allocations: 138.1 kB / 0.493 GB, free: 6.234 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.864e-05/0.1379, allocations: 29.7 kB / 0.493 GB, free: 6.199 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.245e-05/0.1379, allocations: 112.3 kB / 0.4931 GB, free: 6.086 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.855e-05/0.138, allocations: 67 kB / 0.4932 GB, free: 6.02 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.613e-05/0.138, allocations: 37.7 kB / 0.4932 GB, free: 5.977 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001265/0.1382, allocations: 322.8 kB / 0.4936 GB, free: 5.648 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.289e-05/0.1383, allocations: 39.98 kB / 0.4936 GB, free: 5.609 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000118/0.1384, allocations: 83.34 kB / 0.4937 GB, free: 5.516 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002159/0.1386, allocations: 135.3 kB / 0.4938 GB, free: 5.371 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.112e-06/0.1386, allocations: 0 / 0.4938 GB, free: 5.371 MB / 382.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003626/0.139, allocations: 206.2 kB / 0.494 GB, free: 5.16 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.607e-05/0.139, allocations: 7.938 kB / 0.494 GB, free: 5.152 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.332e-06/0.139, allocations: 4.047 kB / 0.494 GB, free: 5.148 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001643/0.1392, allocations: 44.81 kB / 0.4941 GB, free: 5.102 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001678/0.1394, allocations: 39.91 kB / 0.4941 GB, free: 5.062 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001627/0.141, allocations: 1.74 MB / 0.4958 GB, free: 3.18 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.539e-05/0.1411, allocations: 4 kB / 0.4958 GB, free: 3.176 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.396e-05/0.1411, allocations: 12.06 kB / 0.4958 GB, free: 3.164 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 0.0001232/0.1413, allocations: 125.8 kB / 0.4959 GB, free: 3.031 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.63e-05/0.1413, allocations: 11.91 kB / 0.4959 GB, free: 3.02 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.259e-05/0.1414, allocations: 25.17 kB / 0.496 GB, free: 2.996 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.906e-06/0.1414, allocations: 7.875 kB / 0.496 GB, free: 2.988 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.991e-06/0.1414, allocations: 0 / 0.496 GB, free: 2.988 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.1414, allocations: 3.938 kB / 0.496 GB, free: 2.984 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007669/0.1422, allocations: 0.5531 MB / 0.4965 GB, free: 2.371 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.1422, allocations: 0 / 0.4965 GB, free: 2.371 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001651/0.1423, allocations: 35.92 kB / 0.4965 GB, free: 2.336 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001024/0.1425, allocations: 32.83 kB / 0.4966 GB, free: 2.301 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.292e-05/0.1425, allocations: 4 kB / 0.4966 GB, free: 2.297 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001109/0.1436, allocations: 1.485 MB / 0.498 GB, free: 0.668 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.1436, allocations: 4.062 kB / 0.498 GB, free: 0.6641 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004813/0.1441, allocations: 352.5 kB / 0.4984 GB, free: 308 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.314e-05/0.1441, allocations: 85.05 kB / 0.4985 GB, free: 204 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.749e-05/0.1442, allocations: 4 kB / 0.4985 GB, free: 200 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.345e-05/0.1443, allocations: 4 kB / 0.4985 GB, free: 196 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.602e-05/0.1443, allocations: 27.88 kB / 0.4985 GB, free: 168 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.37e-05/0.1444, allocations: 8 kB / 0.4985 GB, free: 160 kB / 382.1 MB Notification: Performance of sorting global known variables: time 8.02e-05/0.1444, allocations: 103.3 kB / 0.4986 GB, free: 56 kB / 382.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1444, allocations: 0 / 0.4986 GB, free: 56 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003381/0.1448, allocations: 40 kB / 0.4986 GB, free: 16 kB / 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.0007866/0.1456, allocations: 0.874 MB / 0.4995 GB, free: 15.11 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0004918/0.1461, allocations: 261.9 kB / 0.4997 GB, free: 14.84 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.547e-06/0.1461, allocations: 4.125 kB / 0.4997 GB, free: 14.84 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002771/0.1464, allocations: 194.5 kB / 0.4999 GB, free: 14.64 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003637/0.1468, allocations: 19.98 kB / 0.4999 GB, free: 14.62 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002529/0.1493, allocations: 2.057 MB / 0.502 GB, free: 12.46 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003129/0.1496, allocations: 0.7204 MB / 0.5027 GB, free: 11.71 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 4.949e-05/0.1497, allocations: 5.438 kB / 0.5027 GB, free: 11.7 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.892e-05/0.1498, allocations: 47.36 kB / 0.5027 GB, free: 11.66 MB / 398.1 MB Notification: Performance of SimCode: time 3.41e-07/0.1498, allocations: 0 / 0.5027 GB, free: 11.66 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02539/0.1752, allocations: 3.487 MB / 0.5061 GB, free: 8.16 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.771/9.946, allocations: 8.328 kB / 0.5061 GB, free: 8.152 MB / 398.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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/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