Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Rotational.TestSpeed.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(ModelicaTest.Rotational.TestSpeed,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|speed1.phi|speed1.w|speed2.phi|speed3.s|speed3.v|speed4.s",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Rotational.TestSpeed") translateModel(ModelicaTest.Rotational.TestSpeed,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|speed1.phi|speed1.w|speed2.phi|speed3.s|speed3.v|speed4.s",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Rotational.TestSpeed") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00114/0.00114, allocations: 200.7 kB / 16.1 MB, free: 5.578 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.319/1.319, allocations: 226.5 MB / 243.4 MB, free: 8.203 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007142/0.0007143, allocations: 91.92 kB / 295.5 MB, free: 6.859 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3247/0.3247, allocations: 44.83 MB / 392.3 MB, free: 35.66 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002945/0.0002946, allocations: 8 kB / 465.3 MB, free: 12.64 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2981/0.2984, allocations: 62.96 MB / 0.5159 GB, free: 37.15 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestSpeed): time 0.002145/0.3006, allocations: 2.219 MB / 0.518 GB, free: 35.55 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009869/0.3016, allocations: 0.6595 MB / 0.5187 GB, free: 35.07 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001454/0.3017, allocations: 3.094 kB / 0.5187 GB, free: 35.07 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001396/0.3019, allocations: 31.55 kB / 0.5187 GB, free: 35.05 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001265/0.302, allocations: 74.19 kB / 0.5188 GB, free: 35 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000216/0.3022, allocations: 60.14 kB / 0.5188 GB, free: 34.97 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002608/0.3025, allocations: 308.2 kB / 0.5191 GB, free: 34.82 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001752/0.3027, allocations: 74.83 kB / 0.5192 GB, free: 34.78 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001944/0.3029, allocations: 114.3 kB / 0.5193 GB, free: 34.73 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00016/0.3031, allocations: 114.7 kB / 0.5194 GB, free: 34.68 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 3.068e-05/0.3031, allocations: 19.45 kB / 0.5194 GB, free: 34.67 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.451e-05/0.3032, allocations: 14.56 kB / 0.5195 GB, free: 34.67 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 3.603e-05/0.3032, allocations: 42.38 kB / 0.5195 GB, free: 34.64 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001017/0.3033, allocations: 150.2 kB / 0.5196 GB, free: 34.54 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001851/0.3035, allocations: 217.2 kB / 0.5198 GB, free: 34.48 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.3035, allocations: 0 / 0.5198 GB, free: 34.48 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.094e-06/0.3035, allocations: 3.938 kB / 0.5199 GB, free: 34.48 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.32e-06/0.3036, allocations: 3.938 kB / 0.5199 GB, free: 34.48 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0006622/0.3042, allocations: 0.5408 MB / 0.5204 GB, free: 34.02 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.725e-05/0.3043, allocations: 9.625 kB / 0.5204 GB, free: 34.02 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002212/0.3045, allocations: 56.55 kB / 0.5204 GB, free: 34 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002329/0.3047, allocations: 266.3 kB / 0.5207 GB, free: 33.75 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.957e-05/0.3048, allocations: 22.66 kB / 0.5207 GB, free: 33.74 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.395e-05/0.3048, allocations: 36.95 kB / 0.5208 GB, free: 33.73 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003994/0.3052, allocations: 281.9 kB / 0.521 GB, free: 33.57 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.018e-05/0.3052, allocations: 6.906 kB / 0.521 GB, free: 33.57 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.291e-05/0.3053, allocations: 14.73 kB / 0.521 GB, free: 33.56 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.665e-06/0.3053, allocations: 7.031 kB / 0.5211 GB, free: 33.56 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003626/0.3057, allocations: 194.8 kB / 0.5212 GB, free: 33.51 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001289/0.307, allocations: 1.323 MB / 0.5225 GB, free: 32.42 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003536/0.3073, allocations: 263.3 kB / 0.5228 GB, free: 32.25 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001704/0.3075, allocations: 102.8 kB / 0.5229 GB, free: 32.2 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.07e-05/0.3075, allocations: 3.031 kB / 0.5229 GB, free: 32.2 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.768e-05/0.3076, allocations: 45.17 kB / 0.5229 GB, free: 32.15 MB / 378.7 MB Notification: Performance of pre-optimization done (n=26): time 1.803e-06/0.3076, allocations: 0 / 0.5229 GB, free: 32.15 MB / 378.7 MB Notification: Performance of matching and sorting (n=32): time 0.002283/0.3099, allocations: 1.624 MB / 0.5245 GB, free: 30.84 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.035e-05/0.3099, allocations: 131.5 kB / 0.5246 GB, free: 30.68 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001785/0.3101, allocations: 223.4 kB / 0.5249 GB, free: 30.54 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.837e-05/0.3101, allocations: 32.61 kB / 0.5249 GB, free: 30.51 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.268e-05/0.3102, allocations: 189.6 kB / 0.5251 GB, free: 30.34 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.605e-05/0.3103, allocations: 111.3 kB / 0.5252 GB, free: 30.26 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.37e-05/0.3103, allocations: 6.938 kB / 0.5252 GB, free: 30.25 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.931e-05/0.3104, allocations: 335.4 kB / 0.5255 GB, free: 29.93 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002348/0.3106, allocations: 116.1 kB / 0.5256 GB, free: 29.9 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002653/0.3109, allocations: 249.7 kB / 0.5258 GB, free: 29.7 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005547/0.3115, allocations: 385.2 kB / 0.5262 GB, free: 29.44 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.876e-06/0.3115, allocations: 2.312 kB / 0.5262 GB, free: 29.44 MB / 378.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0006611/0.3122, allocations: 417.8 kB / 0.5266 GB, free: 29.27 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.896e-05/0.3122, allocations: 8.312 kB / 0.5266 GB, free: 29.27 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.656e-06/0.3122, allocations: 2.375 kB / 0.5266 GB, free: 29.27 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.122e-05/0.3122, allocations: 14.62 kB / 0.5266 GB, free: 29.27 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000343/0.3126, allocations: 103.3 kB / 0.5267 GB, free: 29.26 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.286e-05/0.3126, allocations: 12.28 kB / 0.5267 GB, free: 29.26 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001879/0.3128, allocations: 38.02 kB / 0.5268 GB, free: 29.24 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.344e-05/0.3128, allocations: 18.38 kB / 0.5268 GB, free: 29.24 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * 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 (48): * Single equations (assignments): 48 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001123/0.3129, allocations: 153.1 kB / 0.5269 GB, free: 29.1 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.93e-05/0.313, allocations: 36.28 kB / 0.527 GB, free: 29.07 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.323e-05/0.3131, allocations: 37.09 kB / 0.527 GB, free: 29.05 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.988e-06/0.3131, allocations: 3.062 kB / 0.527 GB, free: 29.05 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.905e-06/0.3131, allocations: 0 / 0.527 GB, free: 29.05 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.065e-06/0.3131, allocations: 6.406 kB / 0.527 GB, free: 29.05 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001199/0.3143, allocations: 1.007 MB / 0.528 GB, free: 28.34 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.504e-06/0.3144, allocations: 2.594 kB / 0.528 GB, free: 28.34 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003206/0.3147, allocations: 87.36 kB / 0.5281 GB, free: 28.33 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.937e-06/0.3147, allocations: 5.031 kB / 0.5281 GB, free: 28.33 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.193e-05/0.3147, allocations: 10.56 kB / 0.5281 GB, free: 28.32 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.997e-06/0.3147, allocations: 3.25 kB / 0.5281 GB, free: 28.32 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.567e-06/0.3147, allocations: 6.906 kB / 0.5281 GB, free: 28.32 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008262/0.3156, allocations: 0.7595 MB / 0.5289 GB, free: 27.82 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.202e-05/0.3156, allocations: 102.2 kB / 0.529 GB, free: 27.71 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.595e-05/0.3157, allocations: 10.72 kB / 0.529 GB, free: 27.7 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002569/0.3159, allocations: 33.11 kB / 0.529 GB, free: 27.69 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.34e-05/0.316, allocations: 26.17 kB / 0.529 GB, free: 27.68 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.521e-05/0.316, allocations: 9.281 kB / 0.529 GB, free: 27.68 MB / 378.7 MB Notification: Performance of sorting global known variables: time 9.705e-05/0.3161, allocations: 155.3 kB / 0.5292 GB, free: 27.59 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.01e-07/0.3161, allocations: 0 / 0.5292 GB, free: 27.59 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000432/0.3166, allocations: 67.22 kB / 0.5292 GB, free: 27.57 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (speed4.s,speed3.s,speed3.v,speed1.phi,speed1.w,speed2.phi) * 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 (32): * Single equations (assignments): 32 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 9.9e-05/0.3167, allocations: 106.1 kB / 0.5293 GB, free: 27.47 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005403/0.3172, allocations: 299 kB / 0.5296 GB, free: 27.39 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.3172, allocations: 0 / 0.5296 GB, free: 27.39 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002472/0.3175, allocations: 148.4 kB / 0.5298 GB, free: 27.36 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006364/0.3181, allocations: 47.2 kB / 0.5298 GB, free: 27.33 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001212/0.3194, allocations: 1.11 MB / 0.5309 GB, free: 26.54 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000185/0.3196, allocations: 0.7698 MB / 0.5317 GB, free: 25.83 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.131e-05/0.3197, allocations: 25.47 kB / 0.5317 GB, free: 25.82 MB / 378.7 MB Notification: Performance of SimCode: time 2.1e-07/0.3197, allocations: 0 / 0.5317 GB, free: 25.82 MB / 378.7 MB Notification: Performance of Templates: time 0.004279/0.3239, allocations: 3.265 MB / 0.5349 GB, free: 25.53 MB / 378.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Rotational.TestSpeed.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Rotational.TestSpeed.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Rotational.TestSpeed.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Rotational.TestSpeed.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Rotational.TestSpeed.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Rotational.TestSpeed --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Rotational.TestSpeed.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Rotational.TestSpeed_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/TestSpeed/TestSpeed.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Rotational.TestSpeed.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches