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.001012/0.001012, allocations: 96.83 kB / 15.69 MB, free: 480 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001036/0.001036, allocations: 174.5 kB / 16.57 MB, free: 6.391 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.498/1.498, allocations: 205.4 MB / 222.7 MB, free: 5.668 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.4104/0.4104, allocations: 43.55 MB / 314.5 MB, free: 8.777 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.0005712/0.0005713, allocations: 12 kB / 383.9 MB, free: 8.035 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1496/0.1502, allocations: 58.86 MB / 442.7 MB, free: 13.07 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.002386/0.1526, allocations: 1.525 MB / 444.3 MB, free: 11.54 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00103/0.1537, allocations: 0.5078 MB / 444.8 MB, free: 11.02 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00018/0.1539, allocations: 7.938 kB / 444.8 MB, free: 11.01 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 5.711e-05/0.154, allocations: 11.86 kB / 444.8 MB, free: 11 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002178/0.1542, allocations: 47.89 kB / 444.8 MB, free: 10.95 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002408/0.1544, allocations: 27.97 kB / 444.9 MB, free: 10.93 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002875/0.1547, allocations: 103.7 kB / 445 MB, free: 10.82 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001694/0.1549, allocations: 45.73 kB / 445 MB, free: 10.77 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000147/0.1551, allocations: 47.84 kB / 445.1 MB, free: 10.72 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001361/0.1552, allocations: 55.77 kB / 445.1 MB, free: 10.67 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.76e-05/0.1553, allocations: 7.984 kB / 445.1 MB, free: 10.66 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.84e-05/0.1553, allocations: 15.94 kB / 445.1 MB, free: 10.64 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.224e-05/0.1553, allocations: 19.92 kB / 445.2 MB, free: 10.62 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 7.006e-05/0.1554, allocations: 49.64 kB / 445.2 MB, free: 10.57 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001401/0.1556, allocations: 107.9 kB / 445.3 MB, free: 10.46 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.1556, allocations: 0 / 445.3 MB, free: 10.46 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.1556, allocations: 0 / 445.3 MB, free: 10.46 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.987e-06/0.1556, allocations: 4 kB / 445.3 MB, free: 10.46 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.0006366/0.1562, allocations: 410.9 kB / 445.7 MB, free: 10.01 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.746e-05/0.1563, allocations: 16.02 kB / 445.7 MB, free: 9.996 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.688e-05/0.1564, allocations: 15.81 kB / 445.8 MB, free: 9.98 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003108/0.1567, allocations: 202.8 kB / 445.9 MB, free: 9.742 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.726e-05/0.1567, allocations: 8 kB / 446 MB, free: 9.734 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.91e-05/0.1567, allocations: 12 kB / 446 MB, free: 9.723 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003142/0.1571, allocations: 125.6 kB / 446.1 MB, free: 9.594 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.842e-05/0.1571, allocations: 0 / 446.1 MB, free: 9.594 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.007e-05/0.1571, allocations: 11.89 kB / 446.1 MB, free: 9.582 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.183e-06/0.1571, allocations: 4 kB / 446.1 MB, free: 9.578 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001989/0.1573, allocations: 91.89 kB / 446.2 MB, free: 9.488 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007947/0.1582, allocations: 476.2 kB / 446.7 MB, free: 8.973 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002265/0.1584, allocations: 118.5 kB / 446.8 MB, free: 8.848 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.225e-05/0.1584, allocations: 4 kB / 446.8 MB, free: 8.844 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.484e-05/0.1585, allocations: 30.56 kB / 446.8 MB, free: 8.805 MB / 382.1 MB Notification: Performance of pre-optimization done (n=13): time 2.495e-06/0.1585, allocations: 0 / 446.8 MB, free: 8.805 MB / 382.1 MB Notification: Performance of matching and sorting (n=19): time 0.001594/0.1601, allocations: 0.8147 MB / 447.6 MB, free: 7.895 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.849e-05/0.1601, allocations: 51.41 kB / 447.7 MB, free: 7.832 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001348/0.1603, allocations: 145.5 kB / 447.8 MB, free: 7.684 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.084e-05/0.1603, allocations: 37.58 kB / 447.9 MB, free: 7.641 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.71e-05/0.1604, allocations: 116.3 kB / 448 MB, free: 7.523 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.48e-05/0.1605, allocations: 63.02 kB / 448 MB, free: 7.461 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.105e-05/0.1605, allocations: 4 kB / 448 MB, free: 7.457 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001781/0.1607, allocations: 326.8 kB / 448.4 MB, free: 7.129 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001363/0.1608, allocations: 44.36 kB / 448.4 MB, free: 7.086 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001235/0.1609, allocations: 80.14 kB / 448.5 MB, free: 6.996 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001152/0.1611, allocations: 52 kB / 448.5 MB, free: 6.945 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.302e-06/0.1611, allocations: 4 kB / 448.5 MB, free: 6.941 MB / 382.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004197/0.1615, allocations: 214.1 kB / 448.7 MB, free: 6.723 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.117e-05/0.1615, allocations: 8 kB / 448.7 MB, free: 6.715 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.294e-06/0.1616, allocations: 48 / 448.7 MB, free: 6.715 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002014/0.1618, allocations: 40.83 kB / 448.8 MB, free: 6.672 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002021/0.162, allocations: 47.94 kB / 448.8 MB, free: 6.625 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001545/0.1635, allocations: 1.561 MB / 450.4 MB, free: 4.934 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.96e-05/0.1636, allocations: 8.469 kB / 450.4 MB, free: 4.926 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.635e-05/0.1637, allocations: 8 kB / 450.4 MB, free: 4.918 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001725/0.1638, allocations: 129.7 kB / 450.5 MB, free: 4.781 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.787e-05/0.1639, allocations: 19.8 kB / 450.6 MB, free: 4.762 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.295e-05/0.164, allocations: 13.19 kB / 450.6 MB, free: 4.746 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.615e-05/0.164, allocations: 8 kB / 450.6 MB, free: 4.738 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.566e-06/0.164, allocations: 4.062 kB / 450.6 MB, free: 4.734 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.735e-06/0.164, allocations: 0 / 450.6 MB, free: 4.734 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00103/0.1651, allocations: 0.5656 MB / 451.1 MB, free: 4.109 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.326e-06/0.1651, allocations: 0 / 451.1 MB, free: 4.109 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001732/0.1653, allocations: 35.97 kB / 451.2 MB, free: 4.074 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001173/0.1654, allocations: 28.84 kB / 451.2 MB, free: 4.043 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.507e-05/0.1654, allocations: 4 kB / 451.2 MB, free: 4.039 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00115/0.1666, allocations: 1.386 MB / 452.6 MB, free: 2.523 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/0.1666, allocations: 4.031 kB / 452.6 MB, free: 2.52 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005212/0.1671, allocations: 359 kB / 453 MB, free: 2.141 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.659e-05/0.1672, allocations: 85.05 kB / 453 MB, free: 2.039 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.095e-05/0.1672, allocations: 8 kB / 453 MB, free: 2.031 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.989e-05/0.1673, allocations: 4 kB / 453 MB, free: 2.027 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.543e-05/0.1674, allocations: 20.03 kB / 453.1 MB, free: 2.008 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.118e-05/0.1674, allocations: 7.953 kB / 453.1 MB, free: 2 MB / 382.1 MB Notification: Performance of sorting global known variables: time 8.691e-05/0.1675, allocations: 107.9 kB / 453.2 MB, free: 1.895 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1675, allocations: 0 / 453.2 MB, free: 1.895 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003304/0.1678, allocations: 44 kB / 453.2 MB, free: 1.852 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001206/0.1679, allocations: 103.1 kB / 453.3 MB, free: 1.742 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005137/0.1685, allocations: 274 kB / 453.6 MB, free: 1.465 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.1685, allocations: 0 / 453.6 MB, free: 1.465 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002622/0.1687, allocations: 198.4 kB / 453.8 MB, free: 1.258 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002884/0.169, allocations: 16.48 kB / 453.8 MB, free: 1.242 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008758/0.1699, allocations: 0.518 MB / 454.3 MB, free: 0.6992 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2165/0.3864, allocations: 0.724 MB / 455 MB, free: 45.73 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 9.944e-05/0.3866, allocations: 10.06 kB / 455.1 MB, free: 45.73 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.731e-05/0.3866, allocations: 14.97 kB / 455.1 MB, free: 45.73 MB / 382.1 MB Notification: Performance of SimCode: time 1.032e-06/0.3866, allocations: 0.9375 kB / 455.1 MB, free: 45.73 MB / 382.1 MB Notification: Performance of Templates: time 0.00406/0.3907, allocations: 1.433 MB / 456.5 MB, free: 45.7 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat","/var/lib/jenkins/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) Reference file matches