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.001191/0.001191, allocations: 102.7 kB / 15.98 MB, free: 6.352 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.00112/0.00112, allocations: 199.9 kB / 16.91 MB, free: 6.188 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.489/1.489, allocations: 205.1 MB / 222.8 MB, free: 4.703 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.366/0.366, allocations: 43.49 MB / 313.6 MB, free: 8.508 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.00139/0.00139, allocations: 67.91 kB / 382.3 MB, free: 8.527 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1314/0.1328, allocations: 57.78 MB / 440.1 MB, free: 14.65 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.003716/0.1366, allocations: 1.964 MB / 442.1 MB, free: 12.67 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001033/0.1376, allocations: 0.5191 MB / 442.6 MB, free: 12.14 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001442/0.1378, allocations: 11.88 kB / 442.6 MB, free: 12.13 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001669/0.138, allocations: 11.92 kB / 442.6 MB, free: 12.12 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001462/0.1382, allocations: 43.69 kB / 442.7 MB, free: 12.08 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001992/0.1384, allocations: 23.98 kB / 442.7 MB, free: 12.05 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002155/0.1386, allocations: 151.3 kB / 442.8 MB, free: 11.91 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001828/0.1388, allocations: 69.62 kB / 442.9 MB, free: 11.83 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001324/0.1389, allocations: 55.78 kB / 442.9 MB, free: 11.78 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001177/0.1391, allocations: 67.69 kB / 443 MB, free: 11.71 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.48e-05/0.1391, allocations: 12 kB / 443 MB, free: 11.7 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.698e-05/0.1391, allocations: 12 kB / 443 MB, free: 11.69 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.113e-05/0.1392, allocations: 27.92 kB / 443.1 MB, free: 11.66 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 7.393e-05/0.1392, allocations: 63.67 kB / 443.1 MB, free: 11.6 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001884/0.1394, allocations: 147.7 kB / 443.3 MB, free: 11.45 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.092e-05/0.1395, allocations: 3.984 kB / 443.3 MB, free: 11.45 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.814e-06/0.1395, allocations: 0 / 443.3 MB, free: 11.45 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.596e-06/0.1395, allocations: 4 kB / 443.3 MB, free: 11.45 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.000635/0.1401, allocations: 434.9 kB / 443.7 MB, free: 10.97 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.003e-05/0.1402, allocations: 19.83 kB / 443.7 MB, free: 10.95 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.108e-05/0.1402, allocations: 46.73 kB / 443.8 MB, free: 10.9 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.662e-05/0.1403, allocations: 16.75 kB / 443.8 MB, free: 10.88 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002344/0.1405, allocations: 204.1 kB / 444 MB, free: 10.64 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.568e-05/0.1406, allocations: 8.375 kB / 444 MB, free: 10.64 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.347e-05/0.1406, allocations: 12.38 kB / 444 MB, free: 10.62 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002916/0.1409, allocations: 133.6 kB / 444.1 MB, free: 10.49 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.76e-05/0.1409, allocations: 3.984 kB / 444.1 MB, free: 10.48 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.563e-05/0.1409, allocations: 4 kB / 444.1 MB, free: 10.48 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.111e-06/0.141, allocations: 4 kB / 444.1 MB, free: 10.48 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001884/0.1412, allocations: 83.94 kB / 444.2 MB, free: 10.39 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007281/0.1419, allocations: 476.1 kB / 444.7 MB, free: 9.879 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002379/0.1421, allocations: 126.5 kB / 444.8 MB, free: 9.746 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000103/0.1423, allocations: 52.84 kB / 444.9 MB, free: 9.691 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.578e-05/0.1423, allocations: 4 kB / 444.9 MB, free: 9.688 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.442e-05/0.1423, allocations: 42.44 kB / 444.9 MB, free: 9.637 MB / 382.1 MB Notification: Performance of pre-optimization done (n=13): time 1.453e-06/0.1423, allocations: 0 / 444.9 MB, free: 9.637 MB / 382.1 MB Notification: Performance of matching and sorting (n=19): time 0.0015/0.1438, allocations: 0.7989 MB / 445.7 MB, free: 8.742 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.051e-05/0.1439, allocations: 51.41 kB / 445.8 MB, free: 8.68 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001879/0.1441, allocations: 141.4 kB / 445.9 MB, free: 8.535 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.494e-05/0.1441, allocations: 33.7 kB / 445.9 MB, free: 8.496 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.157e-05/0.1442, allocations: 112.3 kB / 446 MB, free: 8.379 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.54e-05/0.1443, allocations: 63.02 kB / 446.1 MB, free: 8.316 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.364e-05/0.1444, allocations: 37.7 kB / 446.1 MB, free: 8.273 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001398/0.1445, allocations: 330.8 kB / 446.5 MB, free: 7.941 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001034/0.1446, allocations: 47.97 kB / 446.5 MB, free: 7.895 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001195/0.1448, allocations: 79.28 kB / 446.6 MB, free: 7.805 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002084/0.145, allocations: 131.3 kB / 446.7 MB, free: 7.664 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.413e-06/0.145, allocations: 0 / 446.7 MB, free: 7.664 MB / 382.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003663/0.1454, allocations: 210.2 kB / 446.9 MB, free: 7.449 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.971e-05/0.1454, allocations: 11.94 kB / 446.9 MB, free: 7.438 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.602e-06/0.1454, allocations: 0 / 446.9 MB, free: 7.438 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001741/0.1456, allocations: 40.83 kB / 447 MB, free: 7.395 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001654/0.1458, allocations: 31.98 kB / 447 MB, free: 7.363 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001482/0.1472, allocations: 1.74 MB / 448.7 MB, free: 5.488 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.045e-05/0.1473, allocations: 11.98 kB / 448.8 MB, free: 5.477 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.242e-05/0.1474, allocations: 4 kB / 448.8 MB, free: 5.473 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.0001122/0.1475, allocations: 129.8 kB / 448.9 MB, free: 5.336 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.757e-05/0.1475, allocations: 11.89 kB / 448.9 MB, free: 5.324 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.843e-05/0.1476, allocations: 21.19 kB / 448.9 MB, free: 5.301 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.527e-06/0.1476, allocations: 8 kB / 448.9 MB, free: 5.293 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.051e-06/0.1476, allocations: 4 kB / 448.9 MB, free: 5.289 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.1476, allocations: 3.984 kB / 448.9 MB, free: 5.285 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007427/0.1483, allocations: 0.5546 MB / 449.5 MB, free: 4.668 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/0.1484, allocations: 8.031 kB / 449.5 MB, free: 4.66 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001593/0.1485, allocations: 31.98 kB / 449.5 MB, free: 4.629 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001025/0.1486, allocations: 28.78 kB / 449.6 MB, free: 4.598 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.68e-05/0.1487, allocations: 11.98 kB / 449.6 MB, free: 4.586 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001335/0.15, allocations: 1.473 MB / 451 MB, free: 2.977 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.15, allocations: 0 / 451 MB, free: 2.977 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004895/0.1505, allocations: 348.4 kB / 451.4 MB, free: 2.617 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.23e-05/0.1506, allocations: 96.89 kB / 451.5 MB, free: 2.504 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.087e-05/0.1506, allocations: 3.984 kB / 451.5 MB, free: 2.5 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.878e-05/0.1507, allocations: 12.14 kB / 451.5 MB, free: 2.488 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.067e-05/0.1508, allocations: 15.91 kB / 451.5 MB, free: 2.473 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.164e-05/0.1508, allocations: 8.062 kB / 451.5 MB, free: 2.465 MB / 382.1 MB Notification: Performance of sorting global known variables: time 7.346e-05/0.1509, allocations: 111.2 kB / 451.6 MB, free: 2.355 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1509, allocations: 3.938 kB / 451.6 MB, free: 2.352 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003193/0.1512, allocations: 40 kB / 451.7 MB, free: 2.312 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.0007695/0.152, allocations: 0.8773 MB / 452.5 MB, free: 1.406 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005063/0.1525, allocations: 266.4 kB / 452.8 MB, free: 1.133 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.1525, allocations: 0 / 452.8 MB, free: 1.133 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002471/0.1528, allocations: 194.7 kB / 453 MB, free: 0.9297 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004208/0.1532, allocations: 20.48 kB / 453 MB, free: 0.9102 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2436/0.3968, allocations: 2.086 MB / 455.1 MB, free: 47.41 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001986/0.3971, allocations: 0.7207 MB / 455.8 MB, free: 46.71 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 7.233e-05/0.3972, allocations: 10.81 kB / 455.8 MB, free: 46.71 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.655e-05/0.3972, allocations: 50.97 kB / 455.9 MB, free: 46.7 MB / 382.1 MB Notification: Performance of SimCode: time 1.392e-06/0.3973, allocations: 0 / 455.9 MB, free: 46.7 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01877/0.416, allocations: 3.241 MB / 459.1 MB, free: 46.39 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001627/0.4162, allocations: 238.5 kB / 459.4 MB, free: 46.12 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.921/2.337, allocations: 0 / 459.4 MB, free: 46.12 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