Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.conf.json 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 4.0.0+maint.om/package.mo", uses=false) 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/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) Running command: translateModel(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") translateModel(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J2.phi|J2.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001241/0.001241, allocations: 186.9 kB / 17.97 MB, free: 3.797 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.399/1.399, allocations: 222.9 MB / 241.6 MB, free: 11 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001041/0.001041, allocations: 109.5 kB / 291.9 MB, free: 10.96 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.4379/0.4379, allocations: 44.13 MB / 386.1 MB, free: 37.99 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001006/0.001006, allocations: 51.92 kB / 457.7 MB, free: 2.316 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3201/0.3211, allocations: 60.81 MB / 0.5064 GB, free: 38.23 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain): time 0.003195/0.3244, allocations: 1.953 MB / 0.5083 GB, free: 36.89 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007476/0.3251, allocations: 0.4944 MB / 0.5088 GB, free: 36.54 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.558e-05/0.3252, allocations: 3.938 kB / 0.5088 GB, free: 36.54 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001374/0.3254, allocations: 18.61 kB / 0.5088 GB, free: 36.52 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 8.37e-05/0.3255, allocations: 29.88 kB / 0.5088 GB, free: 36.5 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000175/0.3257, allocations: 37.34 kB / 0.5089 GB, free: 36.48 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001648/0.3259, allocations: 143.7 kB / 0.509 GB, free: 36.41 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001686/0.326, allocations: 52.17 kB / 0.509 GB, free: 36.38 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001049/0.3261, allocations: 60.3 kB / 0.5091 GB, free: 36.35 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.487e-05/0.3262, allocations: 52.69 kB / 0.5092 GB, free: 36.32 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 2.541e-05/0.3263, allocations: 11.97 kB / 0.5092 GB, free: 36.32 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.495e-05/0.3263, allocations: 9.906 kB / 0.5092 GB, free: 36.32 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 2.888e-05/0.3263, allocations: 34.45 kB / 0.5092 GB, free: 36.3 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 6.255e-05/0.3264, allocations: 59.52 kB / 0.5093 GB, free: 36.26 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001598/0.3266, allocations: 141.6 kB / 0.5094 GB, free: 36.21 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.791e-06/0.3266, allocations: 0 / 0.5094 GB, free: 36.21 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.102e-06/0.3266, allocations: 3.938 kB / 0.5094 GB, free: 36.2 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.568e-06/0.3266, allocations: 0 / 0.5094 GB, free: 36.2 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.0005773/0.3272, allocations: 435.7 kB / 0.5098 GB, free: 35.79 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.407e-05/0.3272, allocations: 11.62 kB / 0.5098 GB, free: 35.79 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.178e-05/0.3273, allocations: 14.38 kB / 0.5098 GB, free: 35.79 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001655/0.3275, allocations: 203.1 kB / 0.51 GB, free: 35.57 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.431e-05/0.3275, allocations: 10.03 kB / 0.51 GB, free: 35.56 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.38e-05/0.3275, allocations: 17.34 kB / 0.5101 GB, free: 35.55 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002594/0.3278, allocations: 131.8 kB / 0.5102 GB, free: 35.48 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.459e-05/0.3278, allocations: 0 / 0.5102 GB, free: 35.48 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.584e-05/0.3278, allocations: 5.125 kB / 0.5102 GB, free: 35.48 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.237e-06/0.3278, allocations: 3.469 kB / 0.5102 GB, free: 35.48 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001714/0.328, allocations: 85.89 kB / 0.5103 GB, free: 35.45 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006149/0.3286, allocations: 471.6 kB / 0.5107 GB, free: 35.09 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002017/0.3289, allocations: 119.8 kB / 0.5108 GB, free: 35.02 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.814e-05/0.329, allocations: 58.36 kB / 0.5109 GB, free: 35 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.289e-05/0.329, allocations: 4 kB / 0.5109 GB, free: 35 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.769e-05/0.329, allocations: 37.22 kB / 0.5109 GB, free: 34.95 MB / 378.7 MB Notification: Performance of pre-optimization done (n=13): time 1.173e-06/0.329, allocations: 0 / 0.5109 GB, free: 34.95 MB / 378.7 MB Notification: Performance of matching and sorting (n=19): time 0.00137/0.3304, allocations: 0.81 MB / 0.5117 GB, free: 34.34 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.695e-05/0.3305, allocations: 62.25 kB / 0.5118 GB, free: 34.27 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001217/0.3306, allocations: 135.2 kB / 0.5119 GB, free: 34.16 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.201e-05/0.3306, allocations: 28.61 kB / 0.5119 GB, free: 34.12 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.228e-05/0.3307, allocations: 117.5 kB / 0.5121 GB, free: 34.02 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.965e-05/0.3307, allocations: 68.48 kB / 0.5121 GB, free: 33.96 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.761e-05/0.3308, allocations: 36.97 kB / 0.5122 GB, free: 33.93 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.133e-05/0.3309, allocations: 321 kB / 0.5125 GB, free: 33.62 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.014e-05/0.331, allocations: 46.73 kB / 0.5125 GB, free: 33.6 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.96e-05/0.3311, allocations: 76.98 kB / 0.5126 GB, free: 33.55 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002004/0.3313, allocations: 143 kB / 0.5127 GB, free: 33.46 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.422e-06/0.3313, allocations: 0 / 0.5127 GB, free: 33.46 MB / 378.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003187/0.3316, allocations: 203.5 kB / 0.5129 GB, free: 33.36 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.753e-05/0.3316, allocations: 9 kB / 0.5129 GB, free: 33.36 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.641e-06/0.3316, allocations: 4.031 kB / 0.5129 GB, free: 33.35 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001705/0.3318, allocations: 43.97 kB / 0.513 GB, free: 33.33 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001639/0.332, allocations: 38.59 kB / 0.513 GB, free: 33.33 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001102/0.3331, allocations: 1.556 MB / 0.5145 GB, free: 31.84 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.065e-05/0.3332, allocations: 5 kB / 0.5145 GB, free: 31.84 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.382e-05/0.3332, allocations: 13 kB / 0.5145 GB, free: 31.84 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 (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 9.412e-05/0.3333, allocations: 123.3 kB / 0.5147 GB, free: 31.71 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.463e-05/0.3333, allocations: 12.31 kB / 0.5147 GB, free: 31.71 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.947e-05/0.3334, allocations: 20.67 kB / 0.5147 GB, free: 31.69 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.996e-06/0.3334, allocations: 2.719 kB / 0.5147 GB, free: 31.69 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.056e-06/0.3334, allocations: 2.906 kB / 0.5147 GB, free: 31.69 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.396e-06/0.3334, allocations: 3.938 kB / 0.5147 GB, free: 31.69 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006181/0.334, allocations: 0.5607 MB / 0.5152 GB, free: 31.25 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.3341, allocations: 0 / 0.5152 GB, free: 31.25 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001529/0.3342, allocations: 41.77 kB / 0.5153 GB, free: 31.24 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.443e-05/0.3343, allocations: 31.34 kB / 0.5153 GB, free: 31.23 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.359e-05/0.3343, allocations: 6.438 kB / 0.5153 GB, free: 31.23 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008367/0.3352, allocations: 1.369 MB / 0.5167 GB, free: 29.88 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.3352, allocations: 3.938 kB / 0.5167 GB, free: 29.87 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002402/0.3376, allocations: 2.942 MB / 0.5195 GB, free: 27.2 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.269e-05/0.3377, allocations: 88.2 kB / 0.5196 GB, free: 27.1 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.84e-05/0.3377, allocations: 6.219 kB / 0.5196 GB, free: 27.09 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.026e-05/0.3378, allocations: 5.578 kB / 0.5196 GB, free: 27.09 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.474e-05/0.3378, allocations: 13.16 kB / 0.5196 GB, free: 27.09 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.059e-05/0.3379, allocations: 8.219 kB / 0.5197 GB, free: 27.09 MB / 378.7 MB Notification: Performance of sorting global known variables: time 6.687e-05/0.3379, allocations: 108.2 kB / 0.5198 GB, free: 27 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.01e-07/0.3379, allocations: 3.938 kB / 0.5198 GB, free: 27 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004277/0.3384, allocations: 54.56 kB / 0.5198 GB, free: 26.99 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 (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.0001161/0.3385, allocations: 107.4 kB / 0.5199 GB, free: 26.89 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005196/0.339, allocations: 259.5 kB / 0.5202 GB, free: 26.74 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.339, allocations: 0 / 0.5202 GB, free: 26.74 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002138/0.3393, allocations: 198.2 kB / 0.5204 GB, free: 26.6 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003862/0.3397, allocations: 17.33 kB / 0.5204 GB, free: 26.59 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009015/0.3406, allocations: 0.7886 MB / 0.5211 GB, free: 25.93 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001784/0.3408, allocations: 0.7264 MB / 0.5218 GB, free: 25.23 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 5.083e-05/0.3408, allocations: 10.52 kB / 0.5219 GB, free: 25.23 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.374e-05/0.3409, allocations: 16.09 kB / 0.5219 GB, free: 25.22 MB / 378.7 MB Notification: Performance of SimCode: time 2.3e-07/0.3409, allocations: 0 / 0.5219 GB, free: 25.22 MB / 378.7 MB Notification: Performance of Templates: time 0.005322/0.3462, allocations: 1.865 MB / 0.5237 GB, free: 25.07 MB / 378.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & ./ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/SimpleDriveTrain/SimpleDriveTrain.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches