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: translateModel(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") translateModel(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001174/0.001174, allocations: 120 kB / 17.09 MB, free: 5.988 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.001111/0.001111, allocations: 198.9 kB / 18.01 MB, free: 5.07 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.415/1.415, allocations: 205.1 MB / 223.9 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.2175/0.2175, allocations: 43.52 MB / 314.8 MB, free: 460 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.001456/0.001456, allocations: 71.89 kB / 442.5 MB, free: 5.668 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1272/0.1286, allocations: 57.78 MB / 0.4885 GB, free: 11.81 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.003494/0.1322, allocations: 1.897 MB / 0.4904 GB, free: 9.898 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009363/0.1331, allocations: 0.5463 MB / 0.4909 GB, free: 9.344 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001086/0.1333, allocations: 0 / 0.4909 GB, free: 9.344 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000137/0.1334, allocations: 19.8 kB / 0.4909 GB, free: 9.324 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001035/0.1336, allocations: 39.64 kB / 0.491 GB, free: 9.285 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000214/0.1338, allocations: 35.89 kB / 0.491 GB, free: 9.25 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002441/0.134, allocations: 155.2 kB / 0.4911 GB, free: 9.098 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001942/0.1342, allocations: 65.56 kB / 0.4912 GB, free: 9.031 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001507/0.1344, allocations: 63.83 kB / 0.4913 GB, free: 8.969 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001247/0.1345, allocations: 63.7 kB / 0.4913 GB, free: 8.906 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.303e-05/0.1346, allocations: 12 kB / 0.4913 GB, free: 8.895 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.96e-05/0.1346, allocations: 12 kB / 0.4914 GB, free: 8.883 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.675e-05/0.1346, allocations: 31.86 kB / 0.4914 GB, free: 8.852 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 8.611e-05/0.1347, allocations: 63.67 kB / 0.4914 GB, free: 8.789 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002058/0.135, allocations: 147.5 kB / 0.4916 GB, free: 8.645 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.55e-06/0.135, allocations: 0 / 0.4916 GB, free: 8.645 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.767e-06/0.135, allocations: 0 / 0.4916 GB, free: 8.645 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.324e-06/0.135, allocations: 3.938 kB / 0.4916 GB, free: 8.641 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.0006458/0.1356, allocations: 443 kB / 0.492 GB, free: 8.16 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.579e-05/0.1357, allocations: 11.89 kB / 0.492 GB, free: 8.148 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.835e-05/0.1358, allocations: 20.75 kB / 0.492 GB, free: 8.129 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003187/0.1361, allocations: 204.1 kB / 0.4922 GB, free: 7.891 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.623e-05/0.1361, allocations: 8.375 kB / 0.4922 GB, free: 7.883 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.525e-05/0.1361, allocations: 16.38 kB / 0.4923 GB, free: 7.867 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003001/0.1365, allocations: 129.7 kB / 0.4924 GB, free: 7.734 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.562e-05/0.1365, allocations: 0 / 0.4924 GB, free: 7.734 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.167e-05/0.1365, allocations: 16 kB / 0.4924 GB, free: 7.719 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.013e-06/0.1365, allocations: 0 / 0.4924 GB, free: 7.719 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001921/0.1367, allocations: 87.89 kB / 0.4925 GB, free: 7.633 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007285/0.1375, allocations: 456.2 kB / 0.4929 GB, free: 7.137 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002211/0.1377, allocations: 130.3 kB / 0.493 GB, free: 7 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001044/0.1378, allocations: 52.84 kB / 0.4931 GB, free: 6.945 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.063e-05/0.1378, allocations: 4 kB / 0.4931 GB, free: 6.941 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.173e-05/0.1379, allocations: 34.55 kB / 0.4931 GB, free: 6.898 MB / 382.1 MB Notification: Performance of pre-optimization done (n=13): time 1.733e-06/0.1379, allocations: 0 / 0.4931 GB, free: 6.898 MB / 382.1 MB Notification: Performance of matching and sorting (n=19): time 0.001506/0.1394, allocations: 0.8172 MB / 0.4939 GB, free: 5.988 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.174e-05/0.1394, allocations: 51.41 kB / 0.494 GB, free: 5.926 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001346/0.1396, allocations: 138.2 kB / 0.4941 GB, free: 5.777 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.777e-05/0.1396, allocations: 29.7 kB / 0.4941 GB, free: 5.742 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.651e-05/0.1397, allocations: 108.3 kB / 0.4942 GB, free: 5.633 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.39e-05/0.1398, allocations: 78.92 kB / 0.4943 GB, free: 5.555 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.027e-05/0.1398, allocations: 33.72 kB / 0.4943 GB, free: 5.516 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001314/0.14, allocations: 326.8 kB / 0.4947 GB, free: 5.188 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.676e-05/0.1401, allocations: 43.97 kB / 0.4947 GB, free: 5.145 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001256/0.1402, allocations: 75.34 kB / 0.4948 GB, free: 5.059 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002394/0.1405, allocations: 135.3 kB / 0.4949 GB, free: 4.914 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.1405, allocations: 4 kB / 0.4949 GB, free: 4.91 MB / 382.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003755/0.1409, allocations: 202.2 kB / 0.4951 GB, free: 4.703 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.134e-05/0.1409, allocations: 11.94 kB / 0.4951 GB, free: 4.691 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.172e-06/0.1409, allocations: 0 / 0.4951 GB, free: 4.691 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001775/0.1411, allocations: 44.86 kB / 0.4952 GB, free: 4.645 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001683/0.1413, allocations: 35.92 kB / 0.4952 GB, free: 4.609 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001584/0.1428, allocations: 1.74 MB / 0.4969 GB, free: 2.727 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.082e-05/0.143, allocations: 8.031 kB / 0.4969 GB, free: 2.719 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.36e-05/0.143, allocations: 4 kB / 0.4969 GB, free: 2.715 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.0001258/0.1431, allocations: 129.8 kB / 0.497 GB, free: 2.578 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.974e-05/0.1432, allocations: 7.969 kB / 0.497 GB, free: 2.57 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.058e-05/0.1432, allocations: 21.19 kB / 0.497 GB, free: 2.551 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.645e-06/0.1432, allocations: 11.92 kB / 0.4971 GB, free: 2.539 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/0.1432, allocations: 0 / 0.4971 GB, free: 2.539 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.4e-06/0.1432, allocations: 0 / 0.4971 GB, free: 2.539 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007873/0.144, allocations: 0.557 MB / 0.4976 GB, free: 1.922 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.015e-06/0.144, allocations: 4.031 kB / 0.4976 GB, free: 1.918 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000181/0.1442, allocations: 35.92 kB / 0.4976 GB, free: 1.883 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001216/0.1444, allocations: 32.86 kB / 0.4977 GB, free: 1.848 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.549e-05/0.1444, allocations: 8 kB / 0.4977 GB, free: 1.84 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001152/0.1456, allocations: 1.481 MB / 0.4991 GB, free: 220 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.469e-06/0.1456, allocations: 7.969 kB / 0.4991 GB, free: 212 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004949/0.1461, allocations: 348.5 kB / 0.4995 GB, free: 15.85 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.318e-05/0.1461, allocations: 93.03 kB / 0.4996 GB, free: 15.74 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.834e-05/0.1462, allocations: 0 / 0.4996 GB, free: 15.74 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.373e-05/0.1463, allocations: 8 kB / 0.4996 GB, free: 15.73 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.475e-05/0.1463, allocations: 11.92 kB / 0.4996 GB, free: 15.72 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.005e-05/0.1463, allocations: 8 kB / 0.4996 GB, free: 15.71 MB / 398.1 MB Notification: Performance of sorting global known variables: time 7.947e-05/0.1464, allocations: 107.2 kB / 0.4997 GB, free: 15.61 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1464, allocations: 4.062 kB / 0.4997 GB, free: 15.6 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003281/0.1468, allocations: 40 kB / 0.4997 GB, free: 15.56 MB / 398.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.0001193/0.1469, allocations: 99.19 kB / 0.4998 GB, free: 15.46 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005373/0.1474, allocations: 266.5 kB / 0.5001 GB, free: 15.18 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.806e-06/0.1474, allocations: 0 / 0.5001 GB, free: 15.18 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002865/0.1477, allocations: 194.6 kB / 0.5003 GB, free: 14.98 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003902/0.1481, allocations: 19.98 kB / 0.5003 GB, free: 14.96 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009983/0.1491, allocations: 479.2 kB / 0.5007 GB, free: 14.46 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003575/0.1495, allocations: 0.7126 MB / 0.5014 GB, free: 13.72 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.063e-05/0.1496, allocations: 19.42 kB / 0.5015 GB, free: 13.7 MB / 398.1 MB Notification: Performance of SimCode: time 7.31e-07/0.1496, allocations: 4 kB / 0.5015 GB, free: 13.7 MB / 398.1 MB Notification: Performance of Templates: time 0.004838/0.1544, allocations: 2.438 MB / 0.5038 GB, free: 11.26 MB / 398.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.makefile (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 & ./ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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) Reference file matches