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.0008931/0.000893, allocations: 174.8 kB / 16.72 MB, free: 5.082 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.286/1.286, allocations: 205.4 MB / 222.9 MB, free: 9.031 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.0007738/0.0007738, allocations: 89.41 kB / 271.2 MB, free: 8.254 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.2945/0.2945, allocations: 43.57 MB / 363.1 MB, free: 52.1 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003901/0.0003902, allocations: 12 kB / 432 MB, free: 5.832 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1023/0.1027, allocations: 58.84 MB / 490.8 MB, free: 10.9 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.001821/0.1046, allocations: 1.582 MB / 492.4 MB, free: 9.309 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006645/0.1052, allocations: 0.5038 MB / 492.9 MB, free: 8.797 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.228e-05/0.1053, allocations: 7.938 kB / 492.9 MB, free: 8.789 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 9.964e-05/0.1054, allocations: 11.92 kB / 492.9 MB, free: 8.777 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 7.888e-05/0.1055, allocations: 35.69 kB / 493 MB, free: 8.742 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001463/0.1057, allocations: 27.98 kB / 493 MB, free: 8.715 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001561/0.1058, allocations: 131.3 kB / 493.1 MB, free: 8.586 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001595/0.106, allocations: 57.97 kB / 493.2 MB, free: 8.52 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.101e-05/0.1061, allocations: 47.78 kB / 493.2 MB, free: 8.473 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.311e-05/0.1062, allocations: 55.77 kB / 493.3 MB, free: 8.418 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 2.276e-05/0.1062, allocations: 8 kB / 493.3 MB, free: 8.41 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.117e-05/0.1063, allocations: 4 kB / 493.3 MB, free: 8.406 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 2.38e-05/0.1063, allocations: 19.86 kB / 493.3 MB, free: 8.387 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 7.207e-05/0.1064, allocations: 89.38 kB / 493.4 MB, free: 8.293 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001164/0.1065, allocations: 111.9 kB / 493.5 MB, free: 8.184 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.943e-06/0.1065, allocations: 0 / 493.5 MB, free: 8.184 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.924e-06/0.1065, allocations: 4 kB / 493.5 MB, free: 8.18 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.994e-06/0.1065, allocations: 0 / 493.5 MB, free: 8.18 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.0005106/0.1071, allocations: 407.1 kB / 493.9 MB, free: 7.734 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.763e-05/0.1071, allocations: 12.03 kB / 493.9 MB, free: 7.723 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.852e-05/0.1071, allocations: 20.69 kB / 493.9 MB, free: 7.703 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001826/0.1073, allocations: 196.2 kB / 494.1 MB, free: 7.473 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.606e-05/0.1074, allocations: 12.38 kB / 494.1 MB, free: 7.461 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.438e-05/0.1074, allocations: 24.3 kB / 494.2 MB, free: 7.438 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002523/0.1077, allocations: 141.7 kB / 494.3 MB, free: 7.293 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.672e-05/0.1077, allocations: 0 / 494.3 MB, free: 7.293 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.583e-05/0.1077, allocations: 4 kB / 494.3 MB, free: 7.289 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.462e-06/0.1077, allocations: 4 kB / 494.3 MB, free: 7.285 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001801/0.1079, allocations: 83.94 kB / 494.4 MB, free: 7.203 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006439/0.1086, allocations: 484 kB / 494.9 MB, free: 6.68 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001948/0.1088, allocations: 118.4 kB / 495 MB, free: 6.555 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001113/0.1089, allocations: 64.83 kB / 495 MB, free: 6.488 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.917e-05/0.1089, allocations: 3.984 kB / 495 MB, free: 6.484 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.211e-05/0.1089, allocations: 34.56 kB / 495.1 MB, free: 6.441 MB / 378.7 MB Notification: Performance of pre-optimization done (n=13): time 1.203e-06/0.109, allocations: 0 / 495.1 MB, free: 6.441 MB / 378.7 MB Notification: Performance of matching and sorting (n=19): time 0.001319/0.1103, allocations: 0.8093 MB / 495.9 MB, free: 5.543 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.194e-05/0.1103, allocations: 67.41 kB / 495.9 MB, free: 5.465 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001001/0.1104, allocations: 138.1 kB / 496.1 MB, free: 5.32 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.801e-05/0.1105, allocations: 25.7 kB / 496.1 MB, free: 5.289 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.411e-05/0.1105, allocations: 116.3 kB / 496.2 MB, free: 5.168 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.129e-05/0.1106, allocations: 63.09 kB / 496.3 MB, free: 5.105 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.945e-06/0.1106, allocations: 4 kB / 496.3 MB, free: 5.102 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.223e-05/0.1107, allocations: 322.8 kB / 496.6 MB, free: 4.777 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.017e-05/0.1108, allocations: 43.98 kB / 496.6 MB, free: 4.734 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000106/0.1109, allocations: 83.28 kB / 496.7 MB, free: 4.641 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000207/0.1111, allocations: 139.2 kB / 496.9 MB, free: 4.492 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.002e-06/0.1111, allocations: 4 kB / 496.9 MB, free: 4.488 MB / 378.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003404/0.1115, allocations: 214.2 kB / 497.1 MB, free: 4.27 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.361e-05/0.1115, allocations: 4 kB / 497.1 MB, free: 4.266 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.193e-06/0.1115, allocations: 3.938 kB / 497.1 MB, free: 4.262 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001419/0.1116, allocations: 40.84 kB / 497.1 MB, free: 4.219 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001787/0.1118, allocations: 52 kB / 497.2 MB, free: 4.168 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001184/0.113, allocations: 1.553 MB / 498.7 MB, free: 2.484 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.372e-05/0.1131, allocations: 8.031 kB / 498.7 MB, free: 2.477 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.169e-05/0.1131, allocations: 4 kB / 498.7 MB, free: 2.473 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.0001019/0.1132, allocations: 137.7 kB / 498.9 MB, free: 2.328 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.218e-05/0.1133, allocations: 11.91 kB / 498.9 MB, free: 2.316 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.592e-05/0.1133, allocations: 21.11 kB / 498.9 MB, free: 2.293 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.096e-06/0.1133, allocations: 4 kB / 498.9 MB, free: 2.289 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.274e-06/0.1133, allocations: 4.062 kB / 498.9 MB, free: 2.285 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.1133, allocations: 0 / 498.9 MB, free: 2.285 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006725/0.114, allocations: 0.5583 MB / 499.5 MB, free: 1.664 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.185e-06/0.114, allocations: 0 / 499.5 MB, free: 1.664 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000153/0.1142, allocations: 35.98 kB / 499.5 MB, free: 1.629 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.333e-05/0.1143, allocations: 32.83 kB / 499.5 MB, free: 1.594 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.249e-05/0.1143, allocations: 4.188 kB / 499.5 MB, free: 1.59 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009069/0.1152, allocations: 1.378 MB / 0.4892 GB, free: 84 kB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.1152, allocations: 3.938 kB / 0.4892 GB, free: 80 kB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1808/0.296, allocations: 353.8 kB / 0.4895 GB, free: 42.75 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.708e-05/0.2961, allocations: 89.08 kB / 0.4896 GB, free: 42.66 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.055e-05/0.2961, allocations: 5.688 kB / 0.4896 GB, free: 42.66 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.097e-05/0.2962, allocations: 4.25 kB / 0.4896 GB, free: 42.66 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.906e-05/0.2963, allocations: 14.42 kB / 0.4896 GB, free: 42.66 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.939e-06/0.2963, allocations: 4.688 kB / 0.4896 GB, free: 42.66 MB / 378.7 MB Notification: Performance of sorting global known variables: time 5.546e-05/0.2964, allocations: 109 kB / 0.4897 GB, free: 42.58 MB / 378.7 MB Notification: Performance of sort global known variables: time 8.42e-07/0.2964, allocations: 1.219 kB / 0.4897 GB, free: 42.58 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003446/0.2967, allocations: 44.59 kB / 0.4898 GB, free: 42.58 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.072e-05/0.2968, allocations: 98.95 kB / 0.4899 GB, free: 42.5 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.000452/0.2973, allocations: 259.5 kB / 0.4901 GB, free: 42.39 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.2973, allocations: 1.031 kB / 0.4901 GB, free: 42.39 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002153/0.2975, allocations: 199.9 kB / 0.4903 GB, free: 42.28 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003288/0.2978, allocations: 27.28 kB / 0.4903 GB, free: 42.28 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006633/0.2985, allocations: 0.5356 MB / 0.4909 GB, free: 41.99 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001398/0.2987, allocations: 0.7224 MB / 0.4916 GB, free: 41.29 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.091e-05/0.2987, allocations: 16.03 kB / 0.4916 GB, free: 41.28 MB / 378.7 MB Notification: Performance of SimCode: time 5.61e-07/0.2987, allocations: 0 / 0.4916 GB, free: 41.28 MB / 378.7 MB Notification: Performance of Templates: time 0.004098/0.3028, allocations: 2.394 MB / 0.4939 GB, free: 41.14 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