Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_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_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001034/0.001034, allocations: 176.2 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.354/1.354, allocations: 205.4 MB / 222.5 MB, free: 9.109 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008799/0.0008798, allocations: 94 kB / 270.9 MB, free: 8.355 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3041/0.3041, allocations: 43.56 MB / 362.7 MB, free: 51.81 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003433/0.0003433, allocations: 15.98 kB / 431.4 MB, free: 5.934 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1096/0.1099, allocations: 58.85 MB / 490.2 MB, free: 11 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.001879/0.1119, allocations: 1.574 MB / 491.8 MB, free: 9.414 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006725/0.1125, allocations: 0.4999 MB / 492.3 MB, free: 8.906 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.407e-05/0.1126, allocations: 8 kB / 492.3 MB, free: 8.898 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 9.829e-05/0.1127, allocations: 15.86 kB / 492.3 MB, free: 8.883 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 7.127e-05/0.1128, allocations: 35.7 kB / 492.4 MB, free: 8.848 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000148/0.113, allocations: 23.97 kB / 492.4 MB, free: 8.824 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001494/0.1131, allocations: 139.3 kB / 492.5 MB, free: 8.688 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001344/0.1133, allocations: 53.73 kB / 492.6 MB, free: 8.625 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.888e-05/0.1134, allocations: 51.77 kB / 492.6 MB, free: 8.574 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.717e-05/0.1135, allocations: 51.78 kB / 492.7 MB, free: 8.523 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 2.969e-05/0.1135, allocations: 11.94 kB / 492.7 MB, free: 8.512 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.069e-05/0.1135, allocations: 4 kB / 492.7 MB, free: 8.508 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 2.248e-05/0.1136, allocations: 19.92 kB / 492.7 MB, free: 8.488 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 4.878e-05/0.1136, allocations: 49.64 kB / 492.8 MB, free: 8.434 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001309/0.1138, allocations: 112 kB / 492.9 MB, free: 8.324 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.129e-06/0.1138, allocations: 0 / 492.9 MB, free: 8.324 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.844e-06/0.1138, allocations: 0 / 492.9 MB, free: 8.324 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.102e-06/0.1138, allocations: 7.938 kB / 492.9 MB, free: 8.316 MB / 378.7 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.00054/0.1144, allocations: 414.8 kB / 493.3 MB, free: 7.863 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.521e-05/0.1144, allocations: 16.02 kB / 493.3 MB, free: 7.848 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.749e-05/0.1144, allocations: 11.81 kB / 493.3 MB, free: 7.836 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001852/0.1146, allocations: 206.8 kB / 493.5 MB, free: 7.594 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.473e-05/0.1147, allocations: 12 kB / 493.5 MB, free: 7.582 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.129e-05/0.1147, allocations: 12 kB / 493.5 MB, free: 7.57 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002586/0.115, allocations: 129.6 kB / 493.7 MB, free: 7.438 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.086e-05/0.115, allocations: 0 / 493.7 MB, free: 7.438 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.665e-05/0.115, allocations: 7.953 kB / 493.7 MB, free: 7.43 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.031e-06/0.115, allocations: 4 kB / 493.7 MB, free: 7.426 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001831/0.1152, allocations: 83.95 kB / 493.8 MB, free: 7.344 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006607/0.1159, allocations: 472.2 kB / 494.2 MB, free: 6.832 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002256/0.1161, allocations: 118.5 kB / 494.3 MB, free: 6.707 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001105/0.1162, allocations: 60.83 kB / 494.4 MB, free: 6.645 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.536e-05/0.1162, allocations: 0 / 494.4 MB, free: 6.645 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.677e-05/0.1163, allocations: 38.5 kB / 494.4 MB, free: 6.598 MB / 378.7 MB Notification: Performance of pre-optimization done (n=13): time 1.152e-06/0.1163, allocations: 0 / 494.4 MB, free: 6.598 MB / 378.7 MB Notification: Performance of matching and sorting (n=19): time 0.001502/0.1178, allocations: 0.8213 MB / 495.2 MB, free: 5.684 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.8e-05/0.1178, allocations: 59.41 kB / 495.3 MB, free: 5.613 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001077/0.118, allocations: 138.1 kB / 495.4 MB, free: 5.469 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.729e-05/0.118, allocations: 29.7 kB / 495.5 MB, free: 5.434 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.393e-05/0.1181, allocations: 116.3 kB / 495.6 MB, free: 5.316 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.428e-05/0.1181, allocations: 67 kB / 495.6 MB, free: 5.25 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.182e-06/0.1181, allocations: 4 kB / 495.7 MB, free: 5.246 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001095/0.1182, allocations: 322.8 kB / 496 MB, free: 4.922 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.369e-05/0.1183, allocations: 44.36 kB / 496 MB, free: 4.879 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001093/0.1184, allocations: 84.03 kB / 496.1 MB, free: 4.785 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001084/0.1186, allocations: 63.86 kB / 496.2 MB, free: 4.723 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.52e-07/0.1186, allocations: 4 kB / 496.2 MB, free: 4.719 MB / 378.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003651/0.1189, allocations: 214.1 kB / 496.4 MB, free: 4.5 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.328e-05/0.119, allocations: 4 kB / 496.4 MB, free: 4.496 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.322e-06/0.119, allocations: 7.938 kB / 496.4 MB, free: 4.488 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001574/0.1191, allocations: 36.84 kB / 496.4 MB, free: 4.449 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000168/0.1193, allocations: 40.03 kB / 496.5 MB, free: 4.41 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001314/0.1206, allocations: 1.549 MB / 498 MB, free: 2.73 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.899e-05/0.1207, allocations: 8.031 kB / 498 MB, free: 2.723 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.098e-05/0.1208, allocations: 8.062 kB / 498 MB, free: 2.715 MB / 378.7 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.0001175/0.1209, allocations: 129.8 kB / 498.1 MB, free: 2.578 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.523e-05/0.1209, allocations: 15.81 kB / 498.2 MB, free: 2.562 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.016e-05/0.121, allocations: 21.17 kB / 498.2 MB, free: 2.539 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.995e-06/0.121, allocations: 7.938 kB / 498.2 MB, free: 2.531 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.838e-06/0.121, allocations: 0 / 498.2 MB, free: 2.531 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.865e-06/0.121, allocations: 0 / 498.2 MB, free: 2.531 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007554/0.1218, allocations: 0.5656 MB / 498.8 MB, free: 1.906 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.295e-06/0.1218, allocations: 0 / 498.8 MB, free: 1.906 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001727/0.1219, allocations: 39.95 kB / 498.8 MB, free: 1.867 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001023/0.1221, allocations: 32.83 kB / 498.8 MB, free: 1.832 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.32e-05/0.1221, allocations: 4.188 kB / 498.8 MB, free: 1.828 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000991/0.1231, allocations: 1.378 MB / 0.4885 GB, free: 328 kB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.1231, allocations: 0 / 0.4885 GB, free: 328 kB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.181/0.3041, allocations: 353.6 kB / 0.4888 GB, free: 42.84 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.618e-05/0.3043, allocations: 85.75 kB / 0.4889 GB, free: 42.74 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.327e-05/0.3043, allocations: 4.781 kB / 0.4889 GB, free: 42.74 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001219/0.3044, allocations: 6.062 kB / 0.4889 GB, free: 42.74 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.314e-05/0.3045, allocations: 14.78 kB / 0.4889 GB, free: 42.74 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.246e-05/0.3045, allocations: 5.188 kB / 0.4889 GB, free: 42.74 MB / 378.7 MB Notification: Performance of sorting global known variables: time 7.646e-05/0.3046, allocations: 109.7 kB / 0.489 GB, free: 42.67 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3046, allocations: 0 / 0.489 GB, free: 42.67 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004271/0.305, allocations: 43.25 kB / 0.4891 GB, free: 42.67 MB / 378.7 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 9.98e-05/0.3051, allocations: 95.64 kB / 0.4892 GB, free: 42.58 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005647/0.3057, allocations: 260.4 kB / 0.4894 GB, free: 42.48 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.3057, allocations: 2 kB / 0.4894 GB, free: 42.48 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002593/0.306, allocations: 196.2 kB / 0.4896 GB, free: 42.36 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003626/0.3064, allocations: 24.88 kB / 0.4896 GB, free: 42.36 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007878/0.3072, allocations: 0.5396 MB / 0.4902 GB, free: 42.07 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001589/0.3073, allocations: 0.7194 MB / 0.4909 GB, free: 41.38 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.652e-05/0.3074, allocations: 15.73 kB / 0.4909 GB, free: 41.37 MB / 378.7 MB Notification: Performance of SimCode: time 4.21e-07/0.3074, allocations: 0 / 0.4909 GB, free: 41.37 MB / 378.7 MB Notification: Performance of Templates: time 0.004819/0.3122, allocations: 2.392 MB / 0.4932 GB, free: 41.23 MB / 378.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_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_cpp_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches