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.001365/0.001365, allocations: 103.3 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001495/0.001495, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.361/1.361, allocations: 227.4 MB / 246.3 MB, free: 9.062 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3175/0.3175, allocations: 46.11 MB / 343.6 MB, free: 11.61 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00218/0.002181, allocations: 78.06 kB / 416.9 MB, free: 20.1 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1352/0.1374, allocations: 62.44 MB / 479.4 MB, free: 5.641 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.002982/0.1404, allocations: 1.976 MB / 481.4 MB, free: 3.648 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008675/0.1413, allocations: 0.5571 MB / 481.9 MB, free: 3.086 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.652e-05/0.1414, allocations: 4 kB / 481.9 MB, free: 3.082 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001028/0.1415, allocations: 11.86 kB / 481.9 MB, free: 3.07 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 8.638e-05/0.1416, allocations: 39.75 kB / 482 MB, free: 3.031 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000164/0.1418, allocations: 35.91 kB / 482 MB, free: 2.996 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001466/0.1419, allocations: 151.2 kB / 482.2 MB, free: 2.848 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001353/0.1421, allocations: 46 kB / 482.2 MB, free: 2.801 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001277/0.1422, allocations: 63.77 kB / 482.3 MB, free: 2.738 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.288e-05/0.1423, allocations: 63.64 kB / 482.3 MB, free: 2.676 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.932e-05/0.1423, allocations: 8 kB / 482.3 MB, free: 2.668 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.327e-05/0.1424, allocations: 16 kB / 482.3 MB, free: 2.652 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.28e-05/0.1424, allocations: 23.92 kB / 482.4 MB, free: 2.629 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.169e-05/0.1425, allocations: 67.61 kB / 482.4 MB, free: 2.562 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001691/0.1427, allocations: 151.8 kB / 482.6 MB, free: 2.414 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.1427, allocations: 0 / 482.6 MB, free: 2.414 MB / 350.1 MB Notification: Performance of FrontEnd: time 7.71e-07/0.1427, allocations: 0 / 482.6 MB, free: 2.414 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.63e-06/0.1427, allocations: 0 / 482.6 MB, free: 2.414 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.0005258/0.1432, allocations: 438.9 kB / 483 MB, free: 1.938 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.773e-05/0.1433, allocations: 8.875 kB / 483 MB, free: 1.93 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.261e-05/0.1433, allocations: 46.73 kB / 483.1 MB, free: 1.875 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001334/0.1435, allocations: 20.84 kB / 483.1 MB, free: 1.855 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001994/0.1437, allocations: 212 kB / 483.3 MB, free: 1.609 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.223e-05/0.1437, allocations: 8.375 kB / 483.3 MB, free: 1.602 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.011e-05/0.1437, allocations: 16.36 kB / 483.3 MB, free: 1.586 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002517/0.144, allocations: 138 kB / 483.5 MB, free: 1.445 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.463e-05/0.144, allocations: 4 kB / 483.5 MB, free: 1.441 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.389e-05/0.144, allocations: 7.984 kB / 483.5 MB, free: 1.434 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.145e-06/0.1441, allocations: 4 kB / 483.5 MB, free: 1.43 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001759/0.1442, allocations: 79.95 kB / 483.5 MB, free: 1.352 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006824/0.1449, allocations: 468.2 kB / 484 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002632/0.1452, allocations: 126.4 kB / 484.1 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001165/0.1453, allocations: 52.84 kB / 484.2 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.603e-05/0.1454, allocations: 4 kB / 484.2 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.172e-05/0.1454, allocations: 34.56 kB / 484.2 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of pre-optimization done (n=13): time 1.233e-06/0.1454, allocations: 0 / 484.2 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of matching and sorting (n=19): time 0.001727/0.1471, allocations: 0.8091 MB / 485 MB, free: 15.71 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.153e-05/0.1472, allocations: 51.41 kB / 485.1 MB, free: 15.64 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001558/0.1474, allocations: 148.2 kB / 485.2 MB, free: 15.49 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.418e-05/0.1474, allocations: 29.7 kB / 485.3 MB, free: 15.46 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001088/0.1475, allocations: 112.3 kB / 485.4 MB, free: 15.34 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.371e-05/0.1476, allocations: 67 kB / 485.4 MB, free: 15.28 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.563e-05/0.1477, allocations: 33.72 kB / 485.5 MB, free: 15.24 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001507/0.1478, allocations: 326.8 kB / 485.8 MB, free: 14.91 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001167/0.1479, allocations: 43.97 kB / 485.8 MB, free: 14.87 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001343/0.1481, allocations: 78.91 kB / 485.9 MB, free: 14.78 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002353/0.1483, allocations: 143.3 kB / 486 MB, free: 14.63 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.1483, allocations: 0 / 486 MB, free: 14.63 MB / 366.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004046/0.1488, allocations: 214.1 kB / 486.2 MB, free: 14.41 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.344e-05/0.1488, allocations: 7.938 kB / 486.3 MB, free: 14.4 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.953e-06/0.1488, allocations: 0 / 486.3 MB, free: 14.4 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001893/0.149, allocations: 48.86 kB / 486.3 MB, free: 14.35 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001713/0.1492, allocations: 31.92 kB / 486.3 MB, free: 14.32 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001466/0.1507, allocations: 1.554 MB / 487.9 MB, free: 12.63 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.001e-05/0.1507, allocations: 11.94 kB / 487.9 MB, free: 12.62 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.182e-05/0.1508, allocations: 4.25 kB / 487.9 MB, free: 12.62 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 0.0001079/0.1509, allocations: 129.8 kB / 488 MB, free: 12.48 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.553e-05/0.1509, allocations: 11.84 kB / 488 MB, free: 12.47 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.58e-05/0.151, allocations: 21.25 kB / 488.1 MB, free: 12.45 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.236e-06/0.151, allocations: 4 kB / 488.1 MB, free: 12.45 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.815e-06/0.151, allocations: 4 kB / 488.1 MB, free: 12.45 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.419e-06/0.151, allocations: 7.875 kB / 488.1 MB, free: 12.44 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007558/0.1518, allocations: 0.5625 MB / 488.6 MB, free: 11.81 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/0.1518, allocations: 0 / 488.6 MB, free: 11.81 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001604/0.1519, allocations: 35.97 kB / 488.7 MB, free: 11.78 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001017/0.152, allocations: 24.84 kB / 488.7 MB, free: 11.75 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.534e-05/0.1521, allocations: 8 kB / 488.7 MB, free: 11.74 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009953/0.1531, allocations: 1.378 MB / 490.1 MB, free: 10.23 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.1531, allocations: 0 / 490.1 MB, free: 10.23 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005213/0.1536, allocations: 351.4 kB / 490.4 MB, free: 9.863 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.915e-05/0.1537, allocations: 88.95 kB / 490.5 MB, free: 9.758 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.123e-05/0.1537, allocations: 4 kB / 490.5 MB, free: 9.754 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.494e-05/0.1538, allocations: 4 kB / 490.5 MB, free: 9.75 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.07e-05/0.1539, allocations: 15.97 kB / 490.5 MB, free: 9.734 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.387e-06/0.1539, allocations: 4 kB / 490.5 MB, free: 9.73 MB / 366.1 MB Notification: Performance of sorting global known variables: time 8.539e-05/0.154, allocations: 109.5 kB / 490.7 MB, free: 9.625 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.154, allocations: 0 / 490.7 MB, free: 9.625 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003291/0.1543, allocations: 44.06 kB / 490.7 MB, free: 9.582 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.0008039/0.1551, allocations: 0.8777 MB / 491.6 MB, free: 8.672 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005032/0.1556, allocations: 262.6 kB / 491.8 MB, free: 8.402 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.1556, allocations: 0 / 491.8 MB, free: 8.402 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002662/0.1559, allocations: 194.5 kB / 492 MB, free: 8.199 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003923/0.1563, allocations: 22.53 kB / 492 MB, free: 8.18 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002484/0.1588, allocations: 2.098 MB / 494.1 MB, free: 5.965 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002898/0.1591, allocations: 0.7207 MB / 494.9 MB, free: 5.219 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.514e-05/0.1592, allocations: 13.42 kB / 494.9 MB, free: 5.203 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.806e-05/0.1593, allocations: 43.42 kB / 494.9 MB, free: 5.164 MB / 366.1 MB Notification: Performance of SimCode: time 6.11e-07/0.1593, allocations: 0 / 494.9 MB, free: 5.164 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01458/0.1739, allocations: 3.177 MB / 498.1 MB, free: 2.133 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00019/0.1741, allocations: 232.3 kB / 498.3 MB, free: 1.879 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.907/2.081, allocations: 112 / 498.3 MB, free: 1.879 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